This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.cloud import aiplatform | |
import os | |
import openai | |
import httpx | |
import tempfile | |
import shutil | |
import vertexai | |
import logging | |
from fastapi import FastAPI, Request, status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use server"; | |
import { Magic } from "@magic-sdk/admin"; | |
import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs"; | |
import { headers, cookies } from "next/headers"; | |
import { NextResponse } from "next/server"; | |
const mAdmin = new Magic(process.env.MAGIC_SECRET_KEY); | |
export async function POST() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import random | |
with open("./w.txt", "r") as f: | |
a1 = f.readlines() | |
a1 = [w.strip() for w in a1] | |
a2 = [random.randint(0,2047) for i in range(0, 11)] | |
a3 = [n - 1 for n in a2] | |
a4 = [a1[n] for n in a3] | |
a6 = "".join([format(n, "011b") for n in a3]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.9; | |
/** | |
* @title Tribal Lending Pool contract Interface | |
* | |
* @note You will find a term *WAD* reading this documentation. It is an integer representation 1 WAD = 1*10**18. | |
* for example, 0.2% = 0.002f = 0.002 * 10**18 = 2 * 10**15 | |
*/ | |
interface ILendingPool { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
import time | |
RUNPOD_API_ID = '0ghslhh025pwkc' | |
RUNPOD_API_KEY = 'IWR8SFXIKW3BXHK5VSADD3IPPXURBDNM9EDC8EX6' | |
SLEEP_INTERVAL = 1 | |
RUNPOD_API_BASE = 'https://api.runpod.ai/v1/' + RUNPOD_API_ID | |
URL = 'https://storage.googleapis.com/elis-prototype/audio-video-content/PBS_News_Hour_Nov_17.m4a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import math | |
import sys | |
from datetime import timedelta | |
def format_ms(ms): | |
remainder, milliseconds = divmod(ms, 1000) | |
remainder, seconds = divmod(remainder, 60) | |
hours, minutes = divmod(remainder, 60) | |
return '{:02}:{:02}:{:02}.{:03}'.format(int(hours), int(minutes), int(seconds), int(milliseconds)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
contract XNFT is ERC721URIStorage, Ownable { | |
using Strings for uint256; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const redirects = [ | |
[ | |
"65110-what-is-mobilize", | |
"https://support.mobilize.io/hc/en-us/categories/360002451571-What-is-Mobilize-" | |
], | |
[ | |
"1340411-what-is-mobilize", | |
"https://support.mobilize.io/hc/en-us/articles/360037598492-What-is-Mobilize-" | |
], | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trial_start_date = current_provider.created_at | |
if free_trial_completed?(trial_start_date) | |
current_provider.update(in_free_trial: false) | |
elsif in_sixty_day_trial?(trial_start_date) | |
current_provider.update(in_free_trial: true) | |
elsif in_thirty_day_trial?(trial_start_date) | |
current_provider.update(in_free_trial: true) | |
end |
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connecting to memcache url: "memcached-main.swi5ut.0001.usw2.cache.amazonaws.com:11211" | |
number,sms,mms,total | |
+17877640000,5,0,5 | |
+17875351985,5,0,5 | |
+17877602038,4,0,4 | |
+17878324040,5,0,5 | |
+17879159424,8,0,8 | |
+17877671652,4,0,4 | |
+17879923200,4,0,4 | |
+17877582525,3,0,3 |
NewerOlder