Project moved to its own respository: http://github.com/d11e9/avatar
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
import "owned"; | |
contract Archive is owned { | |
struct Content { | |
bool exists; | |
address OP; | |
bytes32[] archives; | |
} |
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
import "owned"; | |
contract RevokableOwned is owned { | |
address previousOwner; | |
uint8 revokableV; | |
bytes32 revokableR; | |
bytes32 revokableS; | |
// In order to make a contracts ownership revokeable you must |
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 OwnedAttributeStore { | |
struct Attribute { | |
address owner; | |
address writer; | |
address revoker; | |
bytes32 value; | |
} | |
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 count = parseInt(localStorage.getItem('count')) || 0; | |
var interval; | |
function tick (){ | |
simply.vibe('short'); | |
} | |
function render(){ | |
simply.text({ title: 'Test App', subtitle: "Vibrating every " + count + " seconds."}); | |
} |
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
// @title: Datagotchi | |
// @author: Doug A <d11e9@turkd.net> | |
// @desc: distributed data modeling | |
contract datagotchi { | |
struct Challenge { | |
bytes32 challenge; | |
bytes32 hashedResponse; |
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
___ __ __ | |
/\_ \ /\ \ __/\ \__ | |
____ ___\//\ \ __ \_\ \/\_\ \ ,_\ ___ _ __ | |
/',__\ / __`\\ \ \ /'__`\ /'_` \/\ \ \ \/ / __`\/\`'__\ | |
/\__, `\/\ \L\ \\_\ \_/\ __//\ \L\ \ \ \ \ \_/\ \L\ \ \ \/ | |
\/\____/\ \____//\____\ \____\ \___,_\ \_\ \__\ \____/\ \_\ | |
\/___/ \/___/ \/____/\/____/\/__,_ /\/_/\/__/\/___/ \/_/ | |
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 byteme { | |
struct Val { | |
bool hex; | |
bytes data; | |
} | |
mapping (bytes32 => Val) public data; | |
event Log(address indexed, string, bytes32 indexed, bytes); |
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 owned { | |
address owner; | |
function owned() { owner = msg.sender; } | |
function transfer(address to) returns (bool success){ | |
if (isOwner()) { | |
owner = to; | |
return true; | |
} else { | |
return false; |
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 owned { | |
address owner; | |
function owned() { owner = msg.sender; } | |
function transfer(address to) onlyowner returns (bool success){ | |
owner = to; | |
return true; | |
} | |
function isOwner (address addr) returns(bool) { |
NewerOlder