- Dawson Botsford
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
//taken from "Example single address request" on https://chain.com/docs/v2/node/#bitcoin-address | |
var chain = require('chain-node'); | |
chain.getAddress('17x23dNjXJLzGMev6R63uyRhMWP1VHawKc', function(err, resp) { | |
console.log(resp); | |
}); |
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
from selenium import webdriver | |
driver = webdriver.Chrome() | |
driver.get('http://google.com') | |
#Get I"m feeling lucky text | |
element = driver.find_element_by_xpath('//*[@id="gbqfbb"]') | |
print element.get_attribute('value') | |
driver.close() |
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
Bitcoin backdrop1: http://bit.ly/1E3NSQs | |
Twilio Logo: https://www.drupal.org/files/project-images/10525524-twilio-logo.png | |
Heroku Logo: https://blog.sparkpost.com/wp-content/uploads/2015/06/HerokuLogo.png | |
Node.js Logo: http://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2015/07/1436439824nodejs-logo.png | |
MongoDB Logo: http://bit.ly/1NkOfLC | |
Satoshi Quote backdrop: http://www.wallpaperseries.com/more/bitcoins-golden-coins-wallpaper.html | |
Bitcoin “what everyone thinks” meme: http://www.littlevisuals.com/bitcoin-owners.png |
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
{ | |
FTP: 21, | |
SSH: 22, | |
Telnet: 23, | |
SMTP: 25, | |
DNS: 53, | |
HTTP: 80, | |
POP3: 110, | |
IMAP: 143 | |
} |
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
sudo apt-get update | |
sudo apt-get install node | |
sudo apt-get install npm | |
which node | |
which npm |
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
//Testing to come soon | |
var md5 = require('md5'); | |
function table() { | |
//Implement the hash table with one array | |
this.arr = []; | |
//Use a hack of md5 to implement a number 0 <= encoded <= 9 | |
this.encode = function (toEncode){ |
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 dawsonbotsford on github. | |
* I am dawsonbotsford (https://keybase.io/dawsonbotsford) on keybase. | |
* I have a public key whose fingerprint is CE08 29CD 6A08 7DDD E581 7E7E FB08 BEA1 17BB AB81 | |
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
var express = require('express'); | |
var http = require('https'); | |
var app = express(); | |
function getUSD(callback) { | |
http.get('https://blockchain.info/ticker', function(res) { | |
var body = ''; | |
res.setEncoding('utf8'); | |
res.on('data', function(data) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title></title> | |
<!-- jQuery --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> |
OlderNewer