Skip to content

Instantly share code, notes, and snippets.

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 () {
if (Meteor.isServer) {
Messages.allow({
'insert': function (userId, doc) {
return true;
}
});
}
function unixTimestampSeconds() {
return Math.floor(Date.now() / 1000);
}
Template.joinedRoomsList.helpers({
joinedRooms: function () {
return Rooms.find({joinedUsers: Meteor.user().username});
}
});
Meteor.publish("user", function () {
return Meteor.users.find({_id: Meteor.userId()}, {fields: {'status.online': 1, username: 1, joinedRooms: 1}});
});
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
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.
execute pathogen#infect()
filetype plugin indent on
syntax on
colorscheme tropikos
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
[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)