A Pen by Sean Esteva on CodePen.
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
var tickers = ['BTC-USD', 'ETH-USD', 'LTC-USD', 'XMR-USD', 'IOTA-USD']; | |
var bag = {}; | |
tickers.forEach(function(pairs){ | |
bag[pairs] = {}; | |
}); |
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
#!/bin/bash | |
# composure - by seane | |
# light-<3'd shell functions for intuitive programming | |
# version: 1.3.1 | |
# latest source available at http://git.io/composure | |
# install: source this script in your ~/.profile or ~/.${SHELL}rc script | |
# known to work on bash, zsh, and ksh93 |
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
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
// Generic hmac digest creation to prove authenticity | |
var crypto = require('crypto'); | |
function createSignature(timestamp, apiKey, apiSecret){ | |
var hmac = crypto.createHmac('sha256', apiSecret ); | |
hmac.update( timestamp + apiKey ); | |
return hmac.digest('hex'); | |
} | |
function createAuthRequest(apiKey, apiSecret ){ | |
var timestamp = Math.floor(Date.now() / 1000); // Note: java and javascript timestamp presented in miliseconds |
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
#!/bin/bash | |
sleep 2 | |
echo "\n\nThese are fantastic DNS Servers hailing all the way from Denmark! Yipee\n\n" | |
sleep 2 | |
dnsv4=91.239.100.100 | |
dnsv6=2001:67c:28a4:: | |
dnsv4_2=89.233.43.71 | |
dnsv6_2=2a01:3a0:53:53:: | |
function givemednsorgivemedeath () { |
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
91.239.100.100 | |
2001:67c:28a4:: | |
89.233.43.71 | |
2a01:3a0:53:53:: |
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
var crypto = require('crypto'); | |
var plainText = '8a30e4ee9a592acdce626d0f3caccd020deb9b1fa1d5996bbf8908860ea5aa68'; | |
var chooseCipher = crypto.getCiphers(); | |
try | |
{ | |
var cipher = crypto.createCipher(chooseCipher[32], 'password'); | |
var cipherText2 = Buffer.concat([cipher.update(new Buffer(plainText)), cipher.final()]); |
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
var crypto = require('crypto'); | |
var plainText = '8a30e4ee9a592acdce626d0f3caccd020deb9b1fa1d5996bbf8908860ea5aa68'; | |
var chooseCipher = crypto.getCiphers(); | |
try | |
{ | |
var cipher = crypto.createCipher(chooseCipher[32], 'password'); | |
var cipherText2 = Buffer.concat([cipher.update(new Buffer(plainText)), cipher.final()]); |
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
t1S7BWuvAwuE67APeFiCW6GVSAfk31j5XED |