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! |
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
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
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
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
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 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
var helloEthereum = 'contract testContract { function go() constant returns (string) { return "ETHEREUM!"; }}' | |
var helloEthereumCompiled = web3.eth.compile.solidity(helloEthereum) | |
var ethereumContract = web3.eth.contract(helloEthereumCompiled.testContract.info.abiDefinition); | |
var ethereum = ethereumContract.new(null, {from:eth.coinbase, data: helloEthereumCompiled.testContract.code, gas: 34000}, function(e, contract){ | |
if(!e) { | |
if(!contract.address) { | |
console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined..."); |
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 helloEthereumContract = 'contract testContract { function go() constant returns (string) { return "Hello Ethereum!"; }}' | |
var helloEthereumCompiled = web3.eth.compile.solidity(helloEthereumContract) | |
var ethereumContract = web3.eth.contract(helloEthereumCompiled.testContract.info.abiDefinition); | |
var helloEthereum = ethereumContract.new({from:eth.coinbase, data: helloEthereumCompiled.testContract.code, gas: 199352}, function(e, contract){ | |
console.log("CALLBACK!"); | |
if(!e) { | |
if(!contract.address) { | |
console.log("Contract transaction send: TransactionHash: " + contract.transactionHash + " waiting to be mined..."); | |
} else { | |
console.log("Contract mined! Address: " + contract.address); |
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
~/mist/mist$ electron ./ | |
[9365:0810/082250:ERROR:browser_main_loop.cc(173)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on. | |
pci id for fd 16: 80ee:beef, driver (null) | |
libGL error: core dri or dri2 extension not found | |
libGL error: failed to load driver: vboxvideo | |
[9397:0810/082252:INFO:renderer_main.cc(200)] Renderer process started | |
[9365:0810/082252:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command | |
[9365:0810/082252:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command | |
[9365:0810/082252:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command | |
[9365:0810/082252:WARNING:accelerator_util.cc(185)] Invalid accelerator token: command |
OlderNewer