Skip to content

Instantly share code, notes, and snippets.


RJ Catalano VoR0220

  • Chicagoland area
View GitHub Profile
View agreement.sol
contract C {
address person1;
address person2;
bool person1Agreement = false;
bool person2Agreement = false;
function doWeAgree() constant returns (bool) {
if (person1Agreement == true && person2Agreement == true)
return true;
View billsSolidity.sol
contract TicTacToe {
address player_one;
address player_two;
address public next_player;
address public winner;
mapping (uint => address) game_board;
uint total_moves;
bool public game_in_progress;
/// @notice Creates a tictactoe game for first player (first up) and second player
View ValentinesDay.sol
contract owned {
function owned() { owner = msg.sender; }
address owner;
modifier onlyowner { if (msg.sender != owner) throw; _ }
contract forDiana is owned {
event getPoem(string indexed message);
string[18] poem;
function forDiana() {
VoR0220 / SolidityNameAndTypeResolution.cpp
Last active Jan 24, 2016
Documentation for Solidity Default Parameters in Function and Return calls
View SolidityNameAndTypeResolution.cpp
//These are the current name and type resolution tests and what we should be checking for whenever default arguments are invoked
char const* text = R"(
contract C {
function def(uint x = 123, string b = "Hello") returns (uint, string, string a = "World") {
return (x, b, a); //maybe make it so we can leave a off? That might be getting ahead of ourselves
function check() {
You can’t perform that action at this time.