Skip to content

Instantly share code, notes, and snippets.

View CodingFu's full-sized avatar
🌴
Bali

Seva Rybakov CodingFu

🌴
Bali
View GitHub Profile
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
"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() {
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])
// 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 {
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'
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))
// 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;
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-"
],
[
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.
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