Skip to content

Instantly share code, notes, and snippets.

Will Franzen wtfaremyinitials

Block or report user

Report or block wtfaremyinitials

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View deno-fifio.js
async function* openFifo(path) {
while(true) {
let file = await, 'r')
let data = await Deno.readAll(file)
yield data
View hyperz.js
import React from 'react'
import hyperx from 'hyperx'
export const h = function hyperz() {
let scope = this
if (!Array.isArray(arguments[0])) {
let newScope = arguments[0]
return hyperz.bind(Object.assign({}, scope, newScope))
View vimchat
command! w w>>chat|enew!
cabbrev w <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'W' : 'w')<CR>
# run at login with `sudo defaults write LoginHook path/to/`
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000039,"HIDKeyboardModifierMappingDst":0x700000029}]}' > /dev/null 2>&1
# must be run as root
scutil --set ComputerName $COMPUTER_NAME
scutil --set HostName $COMPUTER_NAME
scutil --set LocalHostName $COMPUTER_NAME
defaults write /Library/Preferences/SystemConfiguration/ NetBIOSName -string $COMPUTER_NAME
View erc20-balance.js
// from:
let tokenAddress = "REPLACE_WITH_ERC20_TOKEN_ADDRESS";
let walletAddress = "REPLACE_WITH_WALLET_ADDRESS";
// The minimum ABI to get ERC20 Token balance
let minABI = [
// balanceOf
View suspense.js
import React, {
unstable_ConcurrentMode as ConcurrentMode,
unstable_Suspense as Suspense,
} from 'react'
import { createFetcher } from './cache';
import logo from './logo.svg'
import './App.css'
const URL = ''
View foo.json
"message": "Hello, world!"
You can’t perform that action at this time.