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
contract testContract { | |
function go() constant returns (string) { | |
return "ETHEREUM!"; | |
} | |
} | |
bytecode = "606060405260a38060116000396000f300606060405260e060020a60003504630f59f83a8114601a575b005b600060605260c0604052600960809081527f455448455245554d21000000000000000000000000000000000000000000000060a052602060c0908152600960e081905281906101009060a09080838184600060046012f15050815176ffffffffffffffffffffffffffffffffffffffffffffff1916909152505060405161012081900392509050f3" | |
ABI = '[{"constant":true,"inputs":[],"name":"go","outputs":[{"name":"","type":"string"}],"type":"function"}]' | |
Creation: 63 + 32600 gas |
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
contract testContract { | |
function testContract() { } | |
} | |
bytecode = "60606040525b5b600a8060136000396000f30060606040526008565b00" | |
ABI = '[{"inputs":[],"type":"constructor"}]' | |
Creation: 41 + 2000 |
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
contract testContract { | |
function testContract() { } | |
} |
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
var start = 5000; | |
var end = 21000; | |
var position = 5072; | |
var percentThere = (position-start)/(end-start); | |
var count = 300; | |
var mark = percentThere * count; | |
var a = "["; | |
for (var x = 0; x <= count; x++) { | |
if (x < mark) { | |
a += "*" |
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
var start = 5000; var end = 21000; var position = 5072; var percentThere = (position-start)/(end-start); var count = 300; var mark = percentThere * count; var a = "["; for (var x = 0; x <= count; x++) { if (x < mark) { a += "*" } else { a += "-"; }} a += "]"; console.log(a); |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use YAML; | |
my $line = "08/15/2013, 15:58:47: (1234-567890) Changes made: Service end changed to 9999-12-31 (was 2013-10-12), Payment end changed to 9999-12-31 (was 2013-09-15), Renewal changed to 2013-09-12 (was 9999-12-31), srvid#=33324 modified by: Someguy Testuser (TST)"; | |
my $re = qr|(?x) | |
(?<date> ^\d\d/\d\d/\d{4}),\s+ |
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
This is the second test gist. Revised! |
NewerOlder