I hereby claim:
- I am jashmenn on github.
- I am eigenjoy (https://keybase.io/eigenjoy) on keybase.
- I have a public key whose fingerprint is 1788 8F0E 2E14 207F 54A2 9CFC CAFA 3035 D99F 10A4
To claim this, I am signing this object:
a = { | |
"annotations" => [ | |
{ | |
"x" => 19, | |
"y" => 20, | |
"w" => 50, | |
"h" => 50, | |
"predictions" => { | |
"green" => 0.2, |
function sum (fn, xs) { | |
var toRet = 0; | |
for (var i = 0, ii = xs.length; i < ii; i++) { | |
toRet += fn(xs[i], i, xs); | |
} | |
return toRet; | |
} | |
function update(t, o) { | |
for (var k in o) { |
I hereby claim:
To claim this, I am signing this object:
// This gist is an OSX Playground to draw parabola-like lines. | |
// If you'd like to get lessons like this in your inbox, sign up at https://fullstackedu.com | |
// Preview results image: http://i.imgur.com/h2VeRDv.png | |
import Cocoa | |
import XCPlayground | |
// create a place to view the image we're going to draw | |
var view = NSImageView(frame: | |
NSRect(x: 0, y: 0, width: 300, height: 300)) |
BTCmsg Protocol v1 (2011-09-18) | |
=============================== | |
Each message is represented by multiple payment which is calculated by | |
the following algorithm: | |
1. Two first chars for message type ('01' for md5, '02' for ascii). | |
2. Then the message in hex (python binascii.hexlify). | |
3. Split the long string to groups of 4 hex digits. | |
4. Each group of 4 hex (e.g. 2 ascii letters from the message) is | |
represented by a payment in satoshi (maximum 0xffff=65535). |
FROM: https://people.xiph.org/~greg/signdemo.txt | |
With Bitcoin 0.7 it's possible to keep your private keys | |
entirely offline without third party software. | |
In this example we have two hosts [offline] which is | |
totally offline and without a copy of the blockchain | |
and [online] which is a regular online node, both | |
running bitcoin 0.7. |
FROM: https://people.xiph.org/~greg/escrowexample.txt | |
2-of-2 escrow example | |
Carbide81 wants to pay carbide80 50tnbtc but prevent carebide80 from cheating him. | |
First each party creates a new address, and then shares them. Then uses the | |
resulting addresses to make a p2sh address (begins with '3' for bitcoin, | |
'2' for testnet) that requires both parties to sign to release: |
# Raw transaction API example work-through | |
# Send coins to a 2-of-3 multisig, then spend them. | |
# | |
# For this example, I'm using these three keypairs (public/private) | |
# 0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86 / 5JaTXbAUmfPYZFRwrYaALK48fN6sFJp4rHqq2QSXs8ucfpE4yQU | |
# 04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874 / 5Jb7fCeh1Wtm4yBBg3q3XbT6B525i17kVhy3vMC9AqfR6FH2qGk | |
# 048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213 / 5JFjmGo5Fww9p8gvx48qBYDJNAzR9pmH5S389axMtDyPT8ddqmw | |
# First: combine the three keys into a multisig address: | |
./bitcoind createmultisig 2 '["0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86","04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a9 |
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional, | |
# Only full ruby name is supported here, for short names use: | |
# echo "rvm use 1.9.3" > .rvmrc | |
environment_id="ruby-1.9.3-p194@ios" |
/* | |
* Author: Nate Murray | |
* URL: http://fullstack.io | |
* Project Name: This is the CSS file for Popcorn! The best way to learn AngularJS and Ruby on Rails | |
* | |
*/ | |
/* We start by loading the blocktie.co bootstrap 3 "Bolt" */ | |
/* |