Skip to content

Instantly share code, notes, and snippets.

@zach-is-my-name
zach-is-my-name / relayer.js
Created March 6, 2024 03:00 — forked from austintgriffith/relayer.js
A super simple meta transaction relayer.
"use strict";
const express = require('express');
const helmet = require('helmet');
const app = express();
const fs = require('fs');
const ContractLoader = function(contractList,web3){
let contracts = []
for(let c in contractList){
try{
let abi = require("./src/contracts/"+contractList[c]+".abi.js")
@zach-is-my-name
zach-is-my-name / .env
Created November 28, 2023 06:23 — forked from Destaq/.env
Graphically analyzes the most commonly learned language combinations on r/languagelearning based on user flairs
{
"username": "Reddit username",
"client_id": "Register a developer script on Reddit",
"client_secret": "See the above",
"password": "Your Reddit password"
}
[
{
"id": 1,
"name": "Afghanistan",
"iso3": "AFG",
"iso2": "AF",
"numeric_code": "004",
"phone_code": "93",
"capital": "Kabul",
"currency": "AFN",
[
{
"id": 1,
"name": "Afghanistan",
"iso3": "AFG",
"iso2": "AF",
"numeric_code": "004",
"phone_code": "93",
"capital": "Kabul",
"currency": "AFN",
@zach-is-my-name
zach-is-my-name / rfc5646-language-tags.js
Created November 21, 2023 06:12 — forked from msikma/rfc5646-language-tags.js
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',
_prompt_executing=""
function __prompt_precmd() {
local ret="$?"
if [[ "$_prompt_executing" != "1" ]]; then
_PROMPT_SAVE_PS1="$PS1"
_PROMPT_SAVE_PS2="$PS2"
PS1=$'%{\e]133;P;k=i\a%}'$PS1$'%{\e]133;B\a\e]122;> \a%}'
PS2=$'%{\e]133;P;k=s\a%}'$PS2$'%{\e]133;B\a%}'
fi
@zach-is-my-name
zach-is-my-name / init.el
Created July 22, 2023 00:45 — forked from Gavinok/init.el
A minimal emacs configuration using evil mode and use-package
;;; Startup
;;; PACKAGE LIST
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("elpa" . "https://elpa.gnu.org/packages/")))
;;; BOOTSTRAP USE-PACKAGE
(package-initialize)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
TMUX(1) BSD General Commands Manual TMUX(1)
NAME
tmux — terminal multiplexer
SYNOPSIS
tmux [-2CDluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [-T features]
[command [flags]]
DESCRIPTION
" Vim color file
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "1989"
":set termguicolors
set notermguicolors
set noshowmode
" Appearence
set guicursor=n:blinkwait0-blinkon0-blinkoff0
set guicursor=n-v-c:block,i-ci-ve:block-Cursor/lCursor
set shell=/usr/bin/zsh
filetype plugin indent on " required
"color default
"set t_Co=256