Skip to content

Instantly share code, notes, and snippets.

0x65c5752cca98e09ec3e1177e7ffe37910f372d41
0x8FbD1f56a68415D7cA75A63393Ff566aB8Bc07d2
@2-am-zzz
2-am-zzz / ethjs-token-example.js
Last active January 28, 2017 08:28 — forked from danfinlay/ethjs-token-example.js
ethjs token example
var Eth = require('ethjs')
var tokenAbi = require('human-standard-token-abi')
var tokenAddress = '0x48ff0cbac0acefedf152281ee80e9a0a01d5da63'
var secondAddress = '0xC5b8dBAc4c1d3F152cDeb400E2313F309c410aCb'
var eth, token
window.addEventListener('load', function() {
if (typeof window.web3 !== 'undefined') {
eth = new Eth(web3.currentProvider)
// Now enjoy! Use it!
@2-am-zzz
2-am-zzz / javascript_compare.js
Last active December 12, 2016 20:23
Comparing JavaScript and Ruby
// Functions
function hello() {
console.log("Hello World")
}
// Calling a function
hello // function
hello() // "Hello World"
// Returning from functions
@2-am-zzz
2-am-zzz / conversion-endpoints.md
Created November 14, 2016 22:56
Describing the API required to make conversions happen.

Introduction for MVP

For MetaMask, the minimum basic functionality we'd want from a conversion API is as follows:

One endpoint for converting Ether into a fiat currency

  • GET ethconversion/:symbol

Where :symbol indicates the abbreviated symbol used to represent the target fiat, such as USD, EUR, JPY, etc.

The JSON output would have to have these fields:

@2-am-zzz
2-am-zzz / notes.md
Created May 21, 2016 23:42
Notes for Sinatra

Sinatra Part 1 Notes

Sinatra in General

What is it?

Sinatra is a web framework with an emphasis of getting a working prototype quickly.

What IS a web framework?

A group of related technologies packaged together to speed up and enhance web development. Basically, an environment of tools that work together to get things on the web.

Keybase proof

I hereby claim:

  • I am zanibas on github.
  • I am kgserrano (https://keybase.io/kgserrano) on keybase.
  • I have a public key whose fingerprint is 0FD3 E3A6 7523 A6CE 6794 C0BD 0944 A516 C726 1DDE

To claim this, I am signing this object: