# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony. | |
The following are my contribution signatures: | |
Circuit: semaphore16 | |
Contributor # 85 | |
Hash: d545af57 83ad024e e0710f9f 622cdf84 | |
9b4c3c57 af249c24 405fcf11 af1f5fd6 | |
53ca6737 46092f75 9203be93 ab44e991 | |
48051dab 09678842 fb528174 dce220ad | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreif5cgttygibnalhnupkypppjalanfkip7vdyoit3hojhgs5tsh7im ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/blevesearch/bleve" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"time" | |
"github.com/gdamore/tcell" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using github.com/gomodule/redigo v2.0.0+incompatible | |
func TestMiniRedisScan(t *testing.T) { | |
/* | |
redis> ZADD idx 0 "ccc" | |
(integer) 1 | |
redis> ZRANGEBYLEX idx "[d" "[e" | |
(empty list or set) | |
redis> ZRANGEBYLEX idx "[c" "[d" | |
1) "ccc" | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Bug screenshot: https://tmp.shazow.net/screenshots/screenshot_2019-04-26_dd60.png | |
Output paste: | |
$ go run *.go | |
echo: "test" | |
echo: "foo" | |
echo: "bar" | |
echo: "😼" | |
echo: "why do emojis break the echo indent?" | |
echo: "" |
NewerOlder