Skip to content

Instantly share code, notes, and snippets.

View ggomaeng's full-sized avatar
🤖
beep boop

undefined ggomaeng

🤖
beep boop
View GitHub Profile
import { privateKeyToAccount } from 'viem/accounts';
import { createWalletClient, http } from 'viem';
import { base } from 'viem/chains';
import { wei } from '../../utils'; // import { wei } from 'mintclub' if you are using npm package
import { mintclub } from '../../../dist'; // import mintclub from 'mintclub' if you are using npm package
// 1. set up your private key
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
// 2. minimal abi
import { sleep } from 'bun';
import { BANNED } from '../src/constants/banned';
import { neynarClient } from '../src/services/neynar-service';
const cast = {
reactions: {
likes_count: 637,
recasts_count: 222,
likes: [
{
@ggomaeng
ggomaeng / farcaster.ts
Last active February 28, 2024 15:15
Reliable way to retrieve Farcaster user data using fid
import ky from 'ky';
import { getUserDataForFid } from 'frames.js';
export const HUBS = [
{
shortname: 'nemes',
url: 'nemes.farcaster.xyz:2281',
ssl: true,
fid: 9152,
version: '1.10.0',
@ggomaeng
ggomaeng / GIF-Screencast-OSX.md
Created February 27, 2017 09:39 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: