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
[Audio] | |
allowHardwareStreams=1 ; DirectSound: try to use hardware streams if available | |
channelMaskToStereo=1 ; Promote mono sounds to stereo when particular speaker is selected | |
devLFEAPI=1 ; 0 = None, 1 = DirectSound | |
devMicrophoneAPI=1 ; 0 = None, 1 = DirectSound | |
devSPCCAPI=1 ; 0 = None, 1 = DirectSound | |
devSPCCDefault=0 ; 0 = use specified device, 1 = use default device | |
devSPCCId={6C4401C9-7D55-467D-A1BD-3B88E7859C06} ; Identifier for the selected sound device | |
devSPCCName=Headphones (High Definition Audio Device) ; Name of the sound device |
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
[AutoCfg] | |
AutoCfgCompleted=1 ; 0=need to run 3D autocfg at startup | |
Version=1 ; Version of this file | |
[Graphics Options] | |
AllowTSOSelfShadows=0 ; 0=off, 1=more self-shadowing objects when shadow mapping | |
DNSMFilter=2 ; 0= none 1= Fetch4 2= PCF4 3= PCF4P 4= PCF8P 5= PCF16P | |
DNSMShadowFade=25 ; 0 to # = time to fade in night shadows in 100ths of a sec (25 default) | |
DNSMNumLights=3 ; 0 to 128 = Max number of shadow mapped lights at night | |
DNSMHeadlightsCastShadows=0 ; 0=off 1=car headlights cast shadows |
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 | |
brew update | |
brew upgrade | |
brew tap ethereum/ethereum | |
brew install ethereum | |
brew install ethereum/ethereum/solidity | |
wget https://gist.githubusercontent.com/mcveat/6ddbc73d1dde311c3ff46e7ec9bcf456/raw/48dc522a571642a4d42f6eb31424b1bcd482197c/genesis.json | |
mkdir scripts | |
wget https://gist.githubusercontent.com/mcveat/583a5296d6f69a1838571f47ab2b99f2/raw/abf419908f582d57542dba357dcdaa6c156ebd36/all.js -O scripts/all.js |
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
bob = personal.newAccount("bobs password") | |
john = personal.newAccount("johns password") | |
miner.setEtherbase(bob) | |
miner.start(1) | |
admin.sleepBlocks(2) // halts script execution until 2 blocks are mined | |
miner.stop() | |
abi = [{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"}],"payable":false,"type":"constructor"}] | |
contract = eth.contract(abi) | |
code = "0x6060604052341561000f57600080fd5b604051602080610310833981016040528080519060200190919050505b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505b61028f806100816000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806370a08 |
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
john = eth.accounts[1] | |
KrugerToken = contract.at(receipt.contractAddress) | |
KrugerToken.transfer.sendTransaction(john, 10, {from: bob}) | |
miner.start(1) | |
admin.sleepBlocks(2) | |
miner.stop() |
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
bob = eth.accounts[0] | |
abi = [{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"}],"payable":false,"type":"constructor"}] | |
contract = eth.contract(abi) | |
code = "0x6060604052341561000f57600080fd5b604051602080610310833981016040528080519060200190919050505b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b505b61028f806100816000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806370a0823114610049578063a9059cbb14610096575b600080fd5b341561005457600080fd5b610080600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506100d8565b604051808281526020019150506040518 |
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
pragma solidity ^0.4.14; | |
contract KrugerToken { | |
/* This creates an array with all balances */ | |
mapping (address => uint256) public balanceOf; | |
/* Initializes contract with initial supply tokens to the creator of the contract */ | |
function KrugerToken(uint256 initialSupply) { | |
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens | |
} |
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
{ | |
"config": { | |
"chainId": 15, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"difficulty": "400", | |
"gasLimit": "2100000", | |
"alloc": { |
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
bob = personal.newAccount("bobs password") | |
john = personal.newAccount("johns password") | |
miner.setEtherbase(bob) | |
miner.start(1) | |
admin.sleepBlocks(2) // halts script execution until 2 blocks are mined | |
miner.stop() |
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
{ | |
"config": { | |
"chainId": 15, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"difficulty": "400", | |
"gasLimit": "2100000", | |
"alloc": {} |
NewerOlder