Skip to content

Instantly share code, notes, and snippets.

var source = 'contract metaCoin { mapping (address => uint) public balances; function metaCoin() { balances[msg.sender] = 10000; } function sendCoin(address receiver, uint amount) returns(bool sufficient) { if (balances[msg.sender] < amount) return false; balances[msg.sender] -= amount; balances[receiver] += amount; return true; } }';
@smulube
smulube / example_lambda_function.js
Created September 3, 2015 14:23
Example function to run on AWS lambda
var https = require('https');
/**
* Pass the Github user login as `event.login`.
* For more information see the HTTPS module documentation
* at https://nodejs.org/api/https.html.
*
* Will succeed with a custom body containing just the user's name and public repos
*/
exports.handler = function(event, context) {
@smulube
smulube / graphite.md
Created September 5, 2016 10:18 — forked from relaxdiego/graphite.md
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.

Prerequisites

  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

Keybase proof

I hereby claim:

  • I am smulube on github.
  • I am smulube (https://keybase.io/smulube) on keybase.
  • I have a public key ASBKAGAtyIuqq8ySBIoUphPanSbLQkTbokFIvpMgqTy7gwo

To claim this, I am signing this object:

@smulube
smulube / tenancy.go
Created November 2, 2021 10:36 — forked from glerchundi/tenancy.go
tenancy
package tenancy
import (
"context"
"database/sql"
"database/sql/driver"
"errors"
"fmt"
"github.com/lib/pq"