I hereby claim:
- I am tynes on github.
- I am tynes (https://keybase.io/tynes) on keybase.
- I have a public key ASAVvc3HHzL9Bo-ONgHr5kPLb36EBcQWsmsgLL1y0jMPaAo
To claim this, I am signing this object:
#!/usr/bin/env node | |
/* | |
* write.js | |
* | |
* usage: writes a string to a file | |
* | |
* $ ./write.js <path to file> <contents of file> | |
*/ |
# set an env var to the path to a config | |
export REGTEST_CONFIG=$HOME/.config/hsd/regtest.conf | |
# this assumes you have git cloned and npm installed handshake | |
# be sure to start your handshake node with the same config | |
# ./bin/hsd --config=$REGTEST_CONFIG | |
# the cli tools live in node_modules/.bin | |
# also depends on jq |
# usage: | |
# dexec <cmd> | |
# uses fzf to select running container then runs | |
# $ docker run [selected] <cmd> | |
# with /bin/bash as the default cmd | |
# TODO: add some pretty printing | |
function dexec() { | |
local selected_image |
I hereby claim:
To claim this, I am signing this object:
Verifying that "_tynes.id" is my Blockstack ID. https://onename.com/_tynes |
-------------------------------------------------------------------------------- | |
-- CONSTANTS | |
-------------------------------------------------------------------------------- | |
local cmd_alt_shift = {"cmd", "alt", "shift"} | |
local cmd_alt_ctrl = {"cmd", "alt", "ctrl"} | |
local cmd_alt_ctrl_shift = {"cmd", "alt", "ctrl", "shift"} | |
-------------------------------------------------------------------------------- | |
-- CONFIGURATIONS | |
-------------------------------------------------------------------------------- |
#!/bin/bash | |
cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | aplay -c 2 -f S32_LE -r 16000 |
const BinaryTree = class { | |
constructor(value) { | |
this.value = value; | |
this.left = null; | |
this.right = null; | |
} | |
addLeftChild(value) { | |
if (this.left) { | |
console.log('Left child being overwritten'); | |
} |