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 Mediator = require('./mediator.js'); | |
var Chat = require('./chat.js'); | |
var Player = require('./player.js'); | |
var mediator = new Mediator; | |
var chat = new Chat({ | |
el: '#chat', | |
mediator: mediator, | |
}); |
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
define( ['vendor/jquery.js'], function( $ ){ | |
var chat = function( el ){ | |
// just in case this is run before DOM is loaded | |
$(function(){ | |
var $el = $( el ); | |
var $message_form = $el.find('form'); | |
var $new_message = $el.find(':input.message'); |
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 orm = require('orm'); | |
var db = orm.connect({ | |
database: 'test', | |
protocol: 'mysql', | |
host: '127.0.0.1', | |
user: 'root', | |
password: null | |
}); | |
var pos_cursor = 0; |
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 fetchResource = function( resource_url, callback ){ | |
var parsed_url = url.parse( resource_url ); | |
var response = ''; | |
var req = http.request({ | |
host: parsed_url.host, | |
hostname: parsed_url.hostname, | |
port: 80, | |
path: parsed_url.path, | |
method: 'GET', | |
rejectUnauthorized: 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
npm http 200 https://github.com/SparkartGroupInc/express-expose.git | |
npm ERR! not a package /var/folders/m0/z6tt0f9n0g37lwsmrv2l45d40000gn/T/npm-10739/1373330731220-0.09528671065345407/tmp.tgz | |
npm ERR! Error: ENOENT, open '/var/folders/m0/z6tt0f9n0g37lwsmrv2l45d40000gn/T/npm-10739/1373330731220-0.09528671065345407/package/package.json' | |
npm ERR! If you need help, you may report this log at: | |
npm ERR! <http://github.com/isaacs/npm/issues> | |
npm ERR! or email it to: | |
npm ERR! <npm-@googlegroups.com> | |
npm ERR! System Darwin 11.4.2 | |
npm ERR! command "node" "/usr/local/bin/npm" "install" "solidus" |
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
else if( order === 'shuffle' ){ | |
next_item_id = Math.floor( Math.random() * items.length ); | |
} |
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 url(http://fonts.googleapis.com/css?family=Roboto:400,700); | |
body { | |
padding: 30px; | |
font-family: 'Roboto', sans-serif; | |
font-size: 13px; | |
line-height: 22px; | |
color: rgb( 25, 25, 25 ); | |
} |
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> | |
<title>Boku in Heat</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Fusion Tables styling</title> | |
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCu0KqDrN-FYvzwTCzec_EakWQlcPeoPC8&sensor=false"></script> | |
</head> | |
<body> |
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> | |
<title>Boku in Heat</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Fusion Tables styling</title> | |
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCu0KqDrN-FYvzwTCzec_EakWQlcPeoPC8&sensor=false"></script> | |
</head> | |
<body> |