Skip to content

Instantly share code, notes, and snippets.

cslarson

Block or report user

Report or block cslarson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View addresses
0xFdF500D77363369A0b3277dd1cAE8BB298921bfe
@cslarson
cslarson / Description.md
Last active Aug 29, 2015
BaseId - Anti-sybil accounts with Basic Income
View Description.md

#BaseId

###Summary

  • A collection of Ethereum accounts where each account maps to one, and only one, living person.
  • Members are entitled to distributions of Ether from returns accrued via a fund administered and maintained by members, in proportion to their holdings of a token "Base".
  • New "Base" is distributed, monthly*, on an equal basis to all members, in line with an annual inflation rate of 20%*.

###Registration

@cslarson
cslarson / description.md
Last active Aug 29, 2015
test markdown
View description.md

My Awesome Project

Please fund me

I have no food to eat

I am very hungry a burger

View exportjson.js
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
View tinyxhr.js
// tinyxhr by Shimon Doodkin - licanse: public doamin - https://gist.github.com/4706967
//
// tinyxhr("http://site.com/ajaxaction",function (err,data,xhr){ if (err) console.log("goterr ",err,'status='+xhr.status); console.log(data) });
// tinyxhr("http://site.com/ajaxaction",function (err,data,xhr){ if (err) console.log("goterr ",err,'status='+xhr.status); console.log(data) },'POST','value1=1&value2=2');
// tinyxhr("http://site.com/ajaxaction.json",function (err,data,xhr){ if (err) console.log("goterr ",err,'status='+xhr.status); console.log(data); console.log(JSON.parse(data)) },'POST',JSON.stringify({value:1}),'application/javascript');
// cb - a callback function like: function (err,data,XMLHttpRequestObject){ if (err) throw err; }
//
function tinyxhr(url,cb,method,post,contenttype)
{
You can’t perform that action at this time.