#####Prerequisites:
- Ruby
- Rails
- HTML
- CSS
- git
- pivotal tracker
// Ch2 from Pro JavaScript Design Patterns | |
// Interfaces in JS!! | |
/* | |
interface Composite { | |
function add(child); | |
function remove(child); | |
function getChild(index); | |
} | |
interface FormItem { |
Use the Bulletproof Git Workflow, and before code review:
Publish a pre-release version of the package:
#!/bin/bash | |
# Deploy script for Meteor.js to Heroku | |
# | |
# Author: Martin A. Midtsund / martin@iterate.no | |
# | |
# Before running this script, you need to have these tools in your path: | |
# meteor - To install: $ curl https://install.meteor.com | sh | |
# heroku - Install Heroku toolbelt and log in to your user: https://toolbelt.heroku.com/ | |
# git - You'll get this in the Heroku toolbelt, if you don't already have it. | |
# |
var fs = require('fs'); | |
var http = require('http'), | |
httpProxy = require('http-proxy'); | |
httpProxy.createProxyServer( | |
{ | |
target:'http://localhost:8081', | |
ssl: { | |
key: fs.readFileSync('key.pem', 'utf8'), | |
cert: fs.readFileSync('cert.pem', 'utf8'), |
#!/bin/sh | |
# Pre-commit hook for git which removes trailing whitespace, converts tabs to spaces, and enforces a max line length. | |
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi |
All of this is prefaced on having Go installed: https://golang.org/doc/install
Go is properly installed if echo $GOPATH
returns something that makes sense.
First, install Ethermint. Normally I'd do this:
$ go get -u -d github.com/tendermint/ethermint
$ cd $GOPATH/src/github.com/tendermint/ethermint
import collections | |
import random | |
import json | |
import hashlib | |
def hexhash(x): | |
return '0x' + hashlib.sha224(str(x)).hexdigest()[:6] | |
defmodule URL do | |
def to_query(input, namespace) do | |
Enum.map(input, fn({key, value}) -> parse("#{namespace}[#{key}]",value)end) | |
|> Enum.join("&") | |
end | |
def to_query(input) do | |
Enum.map(input, fn({key, value}) -> parse(key,value) end) | |
|> Enum.join("&") | |
end |
""" | |
Module directly collated from | |
http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Importing%20Notebooks.html | |
""" | |
import io, os, sys, types | |
from IPython import get_ipython | |
from nbformat import read | |
from IPython.core.interactiveshell import InteractiveShell | |
def find_notebook(fullname, path=None): |