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 | |
git clone -b zeronet https://gitlab.com/tezos/tezos.git | |
cd tezos | |
curl https://gist.githubusercontent.com/cayblood/329d24a099555e9a436f55a1cb8eb541/raw/c120c025465edfc8fa6bf4bbdbbef1ac79181da6/dictator-key.patch | patch -p1 | |
sudo add-apt-repository ppa:avsm/ppa | |
sudo apt-get update | |
sudo apt-get install ocaml-nox opam | |
opam init | |
opam update |
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
{ | |
"bootstrap_accounts": [ | |
["edpkuBknW28nW72KG6RoHtYW7p12T6GKc7nAbwYX5m8Wd9sDVC9yav", "4000000000000"], | |
["edpktzNbDAUjUk697W7gYg2CRuBQjyPxbEg8dLccYYwKSKvkPvjtV9", "4000000000000"], | |
["edpkuTXkJDGcFd5nh6VvMz8phXxU3Bi7h6hqgywNFi1vZTfQNnS1RV", "4000000000000"], | |
["edpkuFrRoDSEbJYgxRtLx2ps82UdaYc1WwfS9sE11yhauZt5DgCHbU", "4000000000000"], | |
["edpkv8EUUH68jmo3f7Um5PezmfGrRF24gnfLpH3sVNwJnV5bVCxL2n", "4000000000000"] | |
], | |
"dictator_pubkey": "edpkuSLWfVU1Vq7Jg9FucPyKmma6otcMHac9zG4oU1KMHSTBpJuGQ2" | |
} |
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
diff --git a/src/proto_alpha/lib_protocol/src/constants_repr.ml b/src/proto_alpha/lib_protocol/src/constants_repr.ml | |
index edf3007..c34f23d 100644 | |
--- a/src/proto_alpha/lib_protocol/src/constants_repr.ml | |
+++ b/src/proto_alpha/lib_protocol/src/constants_repr.ml | |
@@ -81,7 +81,7 @@ let default = { | |
Int64.(sub (shift_left 1L 56) 1L) ; | |
dictator_pubkey = | |
Signature.Public_key.of_b58check_exn | |
- "edpkugeDwmwuwyyD3Q5enapgEYDxZLtEUFFSrvVwXASQMVEqsvTqWu" ; | |
+ "edpkuSLWfVU1Vq7Jg9FucPyKmma6otcMHac9zG4oU1KMHSTBpJuGQ2" ; |
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
python -m SimpleHTTPServer 8000 |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
carl@Carls-MacBook-Pro ~/Source/work/divvy/candidate-homework/DavidCox/divvy [git:master] ruby-2.1.5 | |
∴ cat README.md | |
divvy | |
This app enables fast searching of the baby name dataset found at `http://catalog.data.gov/dataset/2012-baby-names-ac0a2` | |
At startup, the app read the dataset from its source and loads it into a in-memory sqlite database. A single endpoint is then exposed to enable querying for sets of names that match a given string. A web interface is provided to aid in that querying. | |
Must have node and npm installed, with bower installed globally. |
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
iex(1)> alias Decimal, as: D | |
Decimal | |
iex(2)> D.set_context(%D.Context{D.get_context | precision: 2}) | |
:ok | |
iex(3)> D.new("15.620000") | |
#Decimal<15.620000> | |
iex(4)> D.round(D.new("15.620000"), 2) | |
#Decimal<16> |
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
defmodule Juno.Factory do | |
use ExMachina.Ecto, repo: Juno.Repo | |
# import GoodTimes | |
# import GoodTimes.Convert | |
alias Juno.Transaction | |
alias Juno.VirtualCard | |
def transaction_factory do | |
%Transaction { | |
description: "Description", |
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
page_path GET / Juno.PageController :index | |
virtual_card_path GET /api/virtual_cards Juno.VirtualCardController :index | |
virtual_card_path GET /api/virtual_cards/new Juno.VirtualCardController :new | |
virtual_card_path GET /api/virtual_cards/:id Juno.VirtualCardController :show | |
virtual_card_path POST /api/virtual_cards Juno.VirtualCardController :create | |
virtual_card_path PATCH /api/virtual_cards/:id Juno.VirtualCardController :update | |
PUT /api/virtual_cards/:id Juno.VirtualCardController :update | |
virtual_card_path DELETE /api/virtual_cards/:id Juno.VirtualCardController :delete | |
virtual_card_t |
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
alert(window.twtPluginOptions); |