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
pragma solidity ^0.4.24; | |
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol"; | |
contract TicTacToe is Ownable { | |
uint gameCount = 0; | |
mapping(uint => Game) games; | |
mapping(address => Game) latestGame; |
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
pragma solidity ^0.4.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
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 fs = require('fs'); | |
var _ = require('underscore'); | |
var line, user, page; | |
var userPath = {}; | |
fs.readFile('./input2.txt', 'utf8', function(err, data){ | |
if (err) throw err; | |
var array = data.toString().split("\n"); | |
for (i in array){ |
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
db.js | |
var redis = require("redis"); | |
var config; | |
module.exports = function() { | |
client = redis.createClient(6379,'127.0.0.1'); | |
client.flushdb(); | |
// client = redis.createClient(6379,'nodejitsudb6625264643.redis.irstack.com'); | |
// client.auth("nodejitsudb6625264643.redis.irstack.com:f327cfe980c971946e80b8e975fbebb4"); |
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
<div class="row"> | |
<div class="span12 offset1"> | |
<h1>Monumentos</h1> | |
<div class="row"> | |
<div class="span9">{{> worldMap }}</div> | |
<div class="span2"> | |
{{> currentUser}} | |
<h4>Leaderboard</h4> | |
{{> currentPlayers}} | |
</div> |
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
Players = new Meteor.Collection("owut"); | |
// HTMLttpsreport.deny({ | |
// update: function(userId, docs, fields, modifier){ | |
// return _.contains(fields, 'score'); | |
// } | |
// }) | |
// HTMLttpsreport.remove({}); | |
CurrentGame = new Meteor.Collection("currentgame"); | |
CurrentPoints = new Meteor.Collection("points"); | |
HTMLttpsreport = new Meteor.Collection("players"); |
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
<head> | |
<title>monumentos</title> | |
<style>#map { width: 880px; height: 600px; }</style> | |
</head> | |
<body> | |
<div class="row"> | |
<div class="span12 offset1"> | |
<h1>Monumentos</h1> | |
<div class="row"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://chatbuilder.hackreactor.com/ChatBuilder.js"></script> | |
</head> | |
<body> | |
<script> | |
/* |