Skip to content

Instantly share code, notes, and snippets.

View jakehemmerle's full-sized avatar
💭
🤖

jake hemmerle jakehemmerle

💭
🤖
View GitHub Profile
### Keybase proof
I hereby claim:
* I am jakehemmerle on github.
* I am jakehemmerle (https://keybase.io/jakehemmerle) on keybase.
* I have a public key whose fingerprint is C3AA 89FE 42B9 7125 4FEA 03EE ACD6 30AC 0C03 98B6
To claim this, I am signing this object:
@jakehemmerle
jakehemmerle / launch.json
Last active January 28, 2021 20:34
Debug React with Brave in VSCode
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Brave against localhost",
"runtimeExecutable": "/Applications/Brave Browser Dev.app/Contents/MacOS/Brave Browser Dev",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
@jakehemmerle
jakehemmerle / launch.json
Last active January 29, 2021 19:46
vscode node debug
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch via yarn",
"type": "node",
"request": "launch",
// https://dev.to/rogertorres/debugging-rust-with-vs-code-11dj
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'yourprogram'",
"cargo": {
@jakehemmerle
jakehemmerle / test-subkey-seed-restoration.sh
Created May 28, 2021 20:38
tests to make sure that subkey keygen generates same keys from the same seedphrase
#!/bin/bash
compare_strings() {
if [ "$1" == "$2" ]; then
:
else
echo "wtf! some values that should match dont match"
echo "values:"
echo $1
echo $2
let inputVal = 512;
let x = [0];
let value = 1;
let step = 1;
let nextBase = 10;
while (value < inputVal) {
x.push(value);
value += step;
if (value === nextBase) {