This file contains hidden or 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
if (Meteor.isClient) { | |
function joinRoom (roomName) { | |
// Update joinedRooms on successful subscription. | |
var publishCallbacks = { | |
onReady: function () { | |
Meteor.call("updateRoomsJoined", roomName); | |
Session.set('currentRoom', roomName); | |
$('#joined-rooms').val(roomName); | |
}, | |
onError: function () { |
This file contains hidden or 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
if (Meteor.isServer) { | |
Messages.allow({ | |
'insert': function (userId, doc) { | |
return true; | |
} | |
}); | |
} |
This file contains hidden or 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
function unixTimestampSeconds() { | |
return Math.floor(Date.now() / 1000); | |
} |
This file contains hidden or 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
Template.joinedRoomsList.helpers({ | |
joinedRooms: function () { | |
return Rooms.find({joinedUsers: Meteor.user().username}); | |
} | |
}); |
This file contains hidden or 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
Meteor.publish("user", function () { | |
return Meteor.users.find({_id: Meteor.userId()}, {fields: {'status.online': 1, username: 1, joinedRooms: 1}}); | |
}); |
This file contains hidden or 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
06-10 13:48:50.586 1220-1267/system_process W/AudioTrack﹕ AUDIO_OUTPUT_FLAG_FAST denied by client | |
06-10 13:48:50.903 1220-1239/system_process I/BootReceiver﹕ Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE) | |
06-10 13:48:50.910 1220-1252/system_process W/InputDispatcher﹕ channel '2fb2eaee cf.bitdigital.kanji/cf.bitdigital.kanji.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 | |
06-10 13:48:50.912 1220-1252/system_process E/InputDispatcher﹕ channel '2fb2eaee cf.bitdigital.kanji/cf.bitdigital.kanji.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! | |
06-10 13:48:50.912 1220-1252/system_process W/InputDispatcher﹕ channel 'b81c695 cf.bitdigital.kanji/cf.bitdigital.kanji.GameActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9 | |
06-10 13:48:50.912 1220-1252/system_process E/InputDispatcher﹕ channel 'b81c695 cf.bitdigital.kanji/cf.bitdigital.kanji.GameActivity (server)' ~ Channel is unrec |
This file contains hidden or 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
Jul 6 23:45:53 devbox mongod[1604]: Starting database: mongod failed! | |
Jul 6 23:45:53 devbox systemd[1]: mongod.service: control process exited, code=exited status=1 | |
Jul 6 23:45:53 devbox systemd[1]: Failed to start LSB: An object/document-oriented database. | |
Jul 6 23:45:53 devbox systemd[1]: Unit mongod.service entered failed state. |
This file contains hidden or 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
execute pathogen#infect() | |
filetype plugin indent on | |
syntax on | |
colorscheme tropikos |
This file contains hidden or 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
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures |
This file contains hidden or 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
[blaine@archlinux cljbot]$ lein repl | |
nREPL server started on port 59372 on host 127.0.0.1 - nrepl://127.0.0.1:59372 | |
REPL-y 0.3.7, nREPL 0.2.10 | |
Clojure 1.7.0 | |
OpenJDK 64-Bit Server VM 1.8.0_51-b16 | |
Docs: (doc function-name-here) | |
(find-doc "part-of-name-here") | |
Source: (source function-name-here) | |
Javadoc: (javadoc java-object-or-class-here) | |
Exit: Control+D or (exit) or (quit) |