This file contains hidden or 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
{ | |
"notifications": [ | |
{ | |
"object": "notification", | |
"most_recent_timestamp": "2025-01-23T03:28:21.000Z", | |
"type": "likes", | |
"seen": false, | |
"cast": { | |
"object": "cast", | |
"hash": "0xa56155343bc6a25f65407b449125499b813e8d60", |
This file contains hidden or 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 {encodeAbiParameters, getContract, parseAbiParameters, createWalletClient, custom} from 'viem'; | |
import {contract1155ImplementationAbi} from '../abi/generated'; | |
const FIXED_PRICE_SALE_STRATEGY = '0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21'; | |
const mint = async () => { | |
// embedded is the embedded wallet from useWallets | |
const provider = await embedded.getEthereumProvider(); | |
const [account] = await provider.request({ | |
method: "eth_requestAccounts", |
This file contains hidden or 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 { createClient, RedisClientType } from "redis"; | |
// Define a variable to hold the client instance | |
let client: RedisClientType | null = null; | |
export async function getRedisClient() { | |
if (client) { | |
// Return the existing client if it's already initialized | |
return client; | |
} |
This file contains hidden or 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
package DDG::Spice::Crunchbase; | |
# ABSTRACT: Write an abstract here | |
# Start at https://duck.co/duckduckhack/spice_overview if you are new | |
# to instant answer development |
This file contains hidden or 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
var express = require('express'); | |
var morgan = require('morgan'); | |
var compression = require('compression') | |
var app = express(); | |
app.use(compression()); | |
app.use(morgan('dev')); | |
// this is in milliseconds, because javascript -_- | |
var oneDay = 86400000; |
This file contains hidden or 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
http://www.ncbi.nlm.nih.gov/Structure/mmdb/mmdbsrv.cgi?uid=17320 |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Receives a file via mock TCP over UDP | |
""" | |
import select | |
import socket | |
import sys | |
import struct | |
import hashlib |
This file contains hidden or 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
while [ 0 ] | |
do | |
echo "Meow" | |
sleep 1 | |
echo "Zzzz" | |
sleep 1 | |
echo "JEN I CAN'T BELIEVE YOU WATCHED DEXTER WITHOUT ME AGAIN?!" | |
sleep 1 | |
echo "guize, what if I left hackNY to be with my cats?" | |
sleep 1 |
This file contains hidden or 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 datetime import datetime | |
import urllib2 | |
import urllib | |
import json | |
import os | |
def ajaxRequest(url=None): | |
""" | |
Makes an ajax get request. | |
url - endpoint(string) |
This file contains hidden or 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 random import choice | |
optionList = ["ice cream", "ice cream", "ice cream", "burrito", "banana", "ice cream"] | |
print choice(optionList) |
NewerOlder