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
# Do this thing in order | |
# First, you should set up your ssh keys for github. If not, then you'll have to type a usenrame and password every time | |
# https://help.github.com/articles/generating-ssh-keys | |
# CD into where you want to store this project | |
# Adding the repository for the first time | |
# With ssh keys | |
git clone [email protected]:irisli/61b-network.git |
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
### Keybase proof | |
I hereby claim: | |
* I am irisli on github. | |
* I am irisli (https://keybase.io/irisli) on keybase. | |
* I have a public key whose fingerprint is 45DC 82FC 43C3 4C0B FAA4 940A B9CA 72E7 09C3 A153 | |
To claim this, I am signing this object: |
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
// Ways to use this: | |
// node stellarCurrencyDetector.js | sh | |
// node stellarCurrencyDetector.js | sh > stellarCurrencyDetectorOutput.txt | |
// Test results can be seen here: https://www.stellar.org/viewer/#test/gHQbh2U1CzPo4kH93CCmL5oxK79SqcT7mm | |
var hexes = []; | |
for (var i = 0; i <= 255; i++) { | |
hexes.push(i.toString(16).toUpperCase()); | |
} |
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 WebSocket = require('ws') | |
, ws = new WebSocket('ws://live.stellar.org:9001'); | |
var start = null; | |
var accounts = ['gDSSa75HPagWcvQmwH7D51dT5DPmvsKL4q']; | |
ws.on('open', function() { | |
console.log('WebSocket connection opened.'); | |
start = new Date(); | |
setInterval(function() { |
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 | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |
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 originally hacked together this script to scrape links from this bundlr page: http://bundlr.com/b/stellar-press | |
(function(){ | |
result = ""; | |
$("#bundle-clips-list > li").each(function(k,v) { | |
title = $(v).find(".clip-title").text().trim(); | |
url = $(v).attr('data-clip-url'); | |
result += '<p><a href="' + url + '">' + title + '</a></p>\n'; | |
}); |
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 formats dates like how Twitter does on their tweets I originally wrote | |
// this because I did not want to add an external dependency (such as moment) to | |
// my project for something so insignificant (date format). I couldn't have | |
// easily generated it on the server side since the dates are relative to the | |
// end user's browser's timezone (and I specifically wrote this to run on the | |
// client). | |
// | |
// Usage: twitterDateFormat(time) | |
// time can be anything JS' Date can understand |
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
"use strict"; | |
var stackTrace = (new Error()).stack; // Only tested in latest FF and Chrome | |
var callerName = stackTrace.replace(/^Error\s+/, ''); // Sanitize Chrome | |
callerName = callerName.split("\n")[1]; // 1st item is this, 2nd item is caller | |
callerName = callerName.replace(/^\s+at Object./, ''); // Sanitize Chrome | |
callerName = callerName.replace(/ \(.+\)$/, ''); // Sanitize Chrome | |
callerName = callerName.replace(/\@.+/, ''); // Sanitize Firefox | |
console.log(callerName) |
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
2099 gsg | |
2074 gsp | |
2063 gsX | |
2058 gsZ | |
2055 gsB | |
2046 gsj | |
2038 gsD | |
2035 gst | |
2035 gsh | |
2033 gsE |
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
First two characters. Total in data set is 220768 | |
108914 gs | |
2088 g3 | |
2067 g6 | |
2056 gG | |
2055 go | |
2052 gy | |
2050 gd | |
2050 gV |
OlderNewer