Skip to content

Instantly share code, notes, and snippets.

@tymat
tymat / population2020.json
Created March 23, 2020 01:13
world population by country
{
"data": [
{
"cca2": "CN",
"name": "China",
"pop2020": "1439323.7760",
"area": 9706961,
"Density": "148.2775",
"GrowthRate": "1.0039",
"WorldPercentage": "0.1847",
@tymat
tymat / compiled.asm
Created May 30, 2017 14:04
EtcRedemption Comparison between deployed version and my local build
PUSH1 0x60
PUSH1 0x40
MSTORE
CALLDATASIZE
ISZERO
PUSH2 0x0131
JUMPI
PUSH1 0x00
CALLDATALOAD
PUSH29 0x0100000000000000000000000000000000000000000000000000000000
@tymat
tymat / vm.log
Created October 22, 2016 01:49
VM.log Example
[START] From: 0x4d8d476b7b381676eaf0f2fc68f49e09d67a6fbc To: 0x Gas Price: 100000000000 Gas Limit: 4712388 Nonce: 0x
[VMSTEP] c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470:0
[OPCODE] PUSH1
[GAS] 4640668
[STACK]
[MEMORY]
[VMSTEP] c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470:2
[OPCODE] PUSH1
[GAS] 4640665
[STACK] 60
@tymat
tymat / GoldContract.json
Last active June 1, 2016 14:47
Gold Contract
[
{
"constant":false,
"inputs":[
],
"name":"getFeeInfo",
"outputs":[
{
"name":"",
@tymat
tymat / Badge.json
Last active April 26, 2016 19:55
DigixDAO Tokens and Badges - Simple
[
{
"constant":false,
"inputs":[
{
"name":"_spender",
"type":"address"
},
{
"name":"_value",
@tymat
tymat / Badge.json
Last active April 26, 2016 19:48
DigixDAO Tokens and Badge - Advanced
[
{
"constant":false,
"inputs":[
{
"name":"_spender",
"type":"address"
},
{
"name":"_value",
@tymat
tymat / TokenSales.json
Created March 25, 2016 12:49
JSON ABI interface
[
{
"constant": false,
"inputs": [
{
"name": "_eth",
"type": "uint256"
}
],
"name": "setEthToCents",
@tymat
tymat / README.md
Created March 21, 2016 03:12 — forked from timcheadle/README.md
Make /robots.txt aware of the Rails environment

Make /robots.txt aware of the Rails environment

You probably don't want Google crawling your development staging app. Here's how to fix that.

$ mv public/robots.txt config/robots.production.txt
$ cp config/robots.production.txt config/robots.development.txt

Now edit config/routes.rb to add a route for /robots.txt, and add the controller code.

@tymat
tymat / gist:d7d475a7d8c87f9be120
Created December 31, 2015 18:00
Maxima - Proper use of Dirac bra-ket notation.
declare(bra, nonscalar);
declare(ket, nonscalar);
dotscrules:true;
matchdeclare(m,lambda([t],featurep(t,integer)));
matchdeclare(n,lambda([t],featurep(t,integer)));
tellsimp(bra(m).ket(n), kron_delta(m,n));
simp:false;
matchdeclare(aa, true);