Skip to content

Instantly share code, notes, and snippets.

class Bank {
int[] balances = {0, 100, 0};
void send(int from, int to, int amount) {
if (balances[from] >= amount) {
balances[from] -= amount;
balances[to] += amount;
}
}
class Bank {
int[] balances = {0, 100, 0};
void send(int from, int to, int amount) {
if (balances[from] >= amount) {
balances[from] -= amount;
balances[to] += amount;
}
var bitcore = require('bitcore');
var request = require('request');
var utxo = {
'txId' : '0c5d827a24b0822abbff73f1adbfd2be7efaf4e368b4baac7e280865eb13f497',
'outputIndex' : 1,
'script' : 'a91431f2ae5b333c56a4f01df6209382ec8f892e4f3687',
'satoshis' : 1000000
};

Keybase proof

I hereby claim:

  • I am kobigurk on github.
  • I am kobigurk (https://keybase.io/kobigurk) on keybase.
  • I have a public key whose fingerprint is BED0 4536 0F50 4BEF EB8C A51D E0D6 DB62 59ED DFAD

To claim this, I am signing this object:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x739ca9]
goroutine 11 [running]:
github.com/Gustav-Simonsson/go-opencl/cl.(*CommandQueue).EnqueueWriteBuffer(0x0, 0x0, 0x0, 0x0, 0x20, 0xc2080d7c28, 0x0, 0x0, 0x0, 0x0, ...)
/home/kobigurk/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/Gustav-Simonsson/go-opencl/cl/queue.go:99 +0x99
github.com/ethereum/ethash.(*OpenCL).Search(0xc20817e3c0, 0x7fbdc3283d38, 0xc20817e480, 0xc208068720, 0x1, 0x0, 0x0, 0x0)
/home/kobigurk/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/ethereum/ethash/ethash_opencl.go:397 +0x25a
created by github.com/ethereum/go-ethereum/miner.GPUBench
/home/kobigurk/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/miner/miner.go:164 +0x458
[OPENCL]:OpenCL device Tahiti has insufficient GPU memory.1819279360 bytes of memory found < 2000000000 bytes of memory required
[OPENCL]:OpenCL device Tahiti has insufficient GPU memory.1947205632 bytes of memory found < 2000000000 bytes of memory required
[OPENCL]:OpenCL device Tahiti has insufficient GPU memory.1945108480 bytes of memory found < 2000000000 bytes of memory required
[OPENCL]:OpenCL device Tahiti has insufficient GPU memory.1947205632 bytes of memory found < 2000000000 bytes of memory required
[OPENCL]:Found suitable OpenCL device [Tahiti] with 3179282432 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tahiti(OpenCL 1.2 AMD-APP (1642.5))
[OPENCL]:Printing program log
[OPENCL]:
[OPENCL]:Loading chunk kernels
import "owned";
contract NameReg is owned {
event AddressRegistered(address indexed account);
event AddressDeregistered(address indexed account);
function NameReg() {
toName[this] = "NameReg";
toAddress["NameReg"] = this;
AddressRegistered(this);
@kobigurk
kobigurk / app.json
Created May 3, 2015 20:53
net intelligence api
[
{
"name" : "node-app",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
contract multisig {
function multisig() {
// when a contract has a function with the same name as itself,
// then that function is run at startup
m_numOwners = 1;
m_required = m_numOwners;
m_owners[msg.sender] = m_numOwners;
}
function transact(address _to, uint _value) external onlyowner {
contract token {
mapping (address => uint) balances;
// Initializes contract with 10 000 tokens to the creator of the contract
function token() {
balances[msg.sender] = 10000;