People I want to be more like at this point in my life, in ambition, style, or personality.
- gaben
- @BillNye
- @snowden
- @jessfraz
- @vitalikbuterin
#!/usr/bin/bash | |
# Convert *.gif into *.mp4, skip if already exists. | |
outdir="." | |
for path in *.gif; do | |
out="${outdir}/${path/.gif/}.mp4" | |
[[ -f "$out" ]] && continue | |
ffmpeg -f gif -i "${path}" "${out}" | |
done |
"""SQLAlchemy Metadata and Session object""" | |
import datetime | |
import json | |
import time | |
from sqlalchemy import MetaData | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
__all__ = ['Session', 'metadata', 'Model', 'SchemaEncoder'] |
import { BigNumber, providers, Wallet } from "https://esm.sh/ethers"; | |
import { FlashbotsBundleProvider, FlashbotsBundleResolution } from "https://esm.sh/@flashbots/ethers-provider-bundle"; | |
const FLASHBOTS_AUTH_KEY = Deno.env.get('FLASHBOTS_AUTH_KEY'); | |
const WALLET_PRIVATE_KEY = Deno.env.get('WALLET_PRIVATE_KEY'); | |
const GWEI = BigNumber.from(10).pow(9); | |
const PRIORITY_FEE = GWEI.mul(3); | |
const LEGACY_GAS_PRICE = GWEI.mul(12); | |
const BLOCKS_IN_THE_FUTURE = 2; |
{ | |
inputs = { | |
utils.url = "github:numtide/flake-utils"; | |
nixpkgs.url = "/home/shazow/local/src/github.com/NixOS/nixpkgs"; | |
}; | |
outputs = { self, nixpkgs, utils }: | |
utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = import nixpkgs { |
#!/usr/bin/env nix-shell | |
#!nix-shell -i bash -p jq curl | |
set -e | |
prefix() { | |
declare token="${1}" | |
while read line; do | |
echo "${token}${line}" | |
done |
class Secp256k1 < Formula | |
desc "Optimized C library for EC operations on curve secp256k1" | |
homepage "https://github.com/bitcoin/secp256k1" | |
url "https://github.com/bitcoin/secp256k1.git" | |
depends_on "autoconf" => :build | |
depends_on "automake" => :build | |
depends_on "libtool" => :build | |
def install |
REQUIREMENTS_FILE=requirements.txt | |
REQUIREMENTS_OUT=requirements.txt.log | |
SETUP_OUT=*.egg-info | |
all: setup requirements | |
requirements: $(REQUIREMENTS_OUT) | |
$(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE) | |
pip install -r $(REQUIREMENTS_FILE) | tee $(REQUIREMENTS_OUT) |
from sqlalchemy import types | |
class Enum(types.TypeDecorator): | |
impl = types.Integer | |
def __init__(self, value_map, strict=True, *args, **kw): | |
"""Emulate Enum type with integer-based indexing. | |
value_map: |