Sidebar:
- Cmd-Shift-F: search
- Cmd-Shift-E: files
Navigating in current editor:
| let mnemonic = ''; | |
| let seed = BITBOX.Mnemonic.mnemonicToSeedBuffer(mnemonic); | |
| let master = BITBOX.HDNode.fromSeedBuffer(seed, 'bitcoincash'); | |
| let byteCount = BITBOX.BitcoinCash.getByteCount({ P2PKH: 1 }, { P2PKH: 1000 }); | |
| let node = master.derivePath(`m/44'/145'/0'/0/0`); |
| // This line ads a alert sound to be played when your target exchange has been met | |
| $('body').append('<audio id="audio" src="https://www.soundjay.com/button/beep-07.wav" autostart="false" ></audio>'); | |
| // This line puts the sound into a variable to be used later | |
| var sound = document.getElementById("audio"); | |
| // This is where the user enters the target exchange rate they wish to receive from those coins | |
| var targetExchangeAmount = prompt("Please enter the target exchange rate you wish to receive at a minimum", "0"); | |
| // setInterval creates a loop that will check the price every 5 seconds. |
| # One-time setup | |
| git config --global --add remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" | |
| git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # This is the important one | |
| # Make sure there aren't duplicate configs | |
| git config --global --list | |
| # Checkout someone else's PR! | |
| git fetch origin | |
| git checkout pr/20 |
| #!/usr/bin/env node | |
| console.log('yay gist') |
See https://github.com/romainl/vim-devdocs for an up-to-date version.
Use :DD without argument to look up the word under the cursor, scoped with the current filetype:
| #!/usr/bin/env bash | |
| # based on https://gist.github.com/schacon/942899 | |
| # list | |
| git branch -r --merged | grep origin | grep -v '>' | grep -v master\* | grep -v release-\* | xargs -L1 | |
| # delete | |
| git branch -r --merged | grep origin | grep -v '>' | grep -v master\* | grep -v release-\* | xargs -L1 | awk '{sub(/origin\//,"");print}' | xargs git push origin --delete |
| const serialize = uri => decodeURIComponent(uri).split('&').map(uri => ({ [uri.split('=')[0]]: uri.split('=')[1] })).reduce((a,b) => Object.assign(a,b)) | |
| console.log(serialize("_id%3D58c43d995cb9191a2f676b25%26index%3D0%26guid%3D798ebd68-22d5-4465-9d34-d4717891901d%26isActive%3Dfalse%26balance%3D%242%2C569.51%26picture%3Dhttp%3A%2F%2Fplacehold.it%2F32x32%26age%3D33%26eyeColor%3Dgreen%26name%3DDesiree%20Cervantes%26gender%3Dfemale%26company%3DSYNKGEN%26email%3Ddesireecervantes%40synkgen.com%26phone%3D%2B1%20(975)%20536-2019%26address%3D855%20Hendrickson%20Street%2C%20Libertytown%2C%20Marshall%20Islands%2C%205292%26about%3DElit%20anim%20occaecat%20proident%20consectetur%20veniam%20et%20deserunt%20irure.%20Sint%20aliquip%20fugiat%20aute%20tempor%20veniam%20eu%20duis%20mollit%20eiusmod%20aliquip%20ipsum%20enim%20do%20in.%20Pariatur%20nisi%20proident%20commodo%20duis%20nisi%20id%20ut%20commodo%20aute%20irure.%20Minim%20ut%20tempor%20in%20tempor%20dolor%20ex%20veniam%20fugiat.%20Sint%20cillum%20non%20qui%20elit%20a |
| /*USAGE: | |
| npm install ws lodash async moment crc-32 | |
| mkdir logs | |
| node bfx_test_book.js BTCUSD | |
| */ | |
| const WS = require('ws') | |
| const _ = require('lodash') | |
| const async = require('async') | |
| const fs = require('fs') |