Skip to content

Instantly share code, notes, and snippets.

View jin10086's full-sized avatar
🏠
Working from home

gaojin jin10086

🏠
Working from home
View GitHub Profile
import { readFileSync } from "fs"
import { fromHex } from "@cosmjs/encoding"
import { DirectSecp256k1Wallet, OfflineDirectSigner } from "@cosmjs/proto-signing"
import { SigningStargateClient, StargateClient } from "@cosmjs/stargate"
import { MsgSend } from "cosmjs-types/cosmos/bank/v1beta1/tx"
import { Tx } from "cosmjs-types/cosmos/tx/v1beta1/tx"
const rpc = "https://public-celestia-rpc.numia.xyz"
// 其他 rpc https://docs.celestia.org/nodes/mainnet
#define uint32_t uint
#define uint64_t ulong
#define uint8_t uchar
#define NULL 0
static void memset(uchar *str, int c, size_t n){
for(int i=0;i<n;i++){
str[i] = c;
}
}
@jin10086
jin10086 / hidden_twitter_ads.js
Created March 14, 2024 03:06
hidden twitter ads
// ==UserScript==
// @name 去除 tiwtter 广告.
// @namespace http://tampermonkey.net/
// @version 2024-03-14
// @description try to take over the world!
// @author jin
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==