I hereby claim:
- I am stevenleeg on github.
- I am stevenleeg (https://keybase.io/stevenleeg) on keybase.
- I have a public key whose fingerprint is 9016 4BFA 469B 88C7 C101 31A8 63AA 05F3 A2A7 D081
To claim this, I am signing this object:
Error: Cannot find module 'websocket' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) | |
at Object.<anonymous> (/srv/http/grooveboat/buoy/groovebuoy.js:1:85) | |
at Module._compile (module.js:456:26) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) |
I hereby claim:
To claim this, I am signing this object:
window.App = {} | |
get_template = (el, tpl, callback, context = {}) -> | |
$(el).html(_.template("hello", context)); | |
callback(); | |
class App.IndexView extends Backbone.View | |
template: "index" | |
el: $("#container") |
#!/bin/bash | |
# git.sh - Interactive Git Shell | |
# store command history here | |
HISTFILE=~/.gitsh_history | |
control_c() { | |
# save history before exiting | |
history -a | |
# i can't figure out how to make this just break out of the read command |
SELECT | |
musicbrainz.release_group.gid AS release_mbid, | |
musicbrainz.release_group.type AS primary_type, | |
musicbrainz.release_group_secondary_type_join.secondary_type AS secondary_type, | |
musicbrainz.release_name.name AS release_name | |
FROM | |
musicbrainz.artist | |
INNER JOIN musicbrainz.artist_credit_name | |
ON musicbrainz.artist_credit_name.artist = musicbrainz.artist.id |
SELECT | |
musicbrainz.release.gid AS release_mbid, | |
musicbrainz.release_meta.amazon_asin AS asin, | |
musicbrainz.release_meta.cover_art_presence AS art | |
FROM | |
musicbrainz.release_group | |
INNER JOIN musicbrainz.release | |
ON musicbrainz.release.release_group = musicbrainz.release_group.id |
#include <pthread.h> | |
#include <stdio.h> | |
void count() { | |
int i = 0; | |
for(i = 0; i < 10; i++) { | |
usleep(1); | |
printf("Counting: %d\n", i); | |
} | |
} |
diff --git a/static/application.js b/static/application.js | |
index b4dc334..e83086b 100644 | |
--- a/static/application.js | |
+++ b/static/application.js | |
@@ -116,16 +116,21 @@ function RoomCtrl($scope, $routeParams, groove, localStorageService) { | |
$scope.tracks = groove.playlists[groove.activePlaylist]; | |
$scope.files = []; | |
$scope.tempGravatarEmail = groove.me.gravatar; | |
- | |
$scope.currentTrack = null; |
var WebSocketServer = require('websocket').server; | |
var http = require('http'); | |
var WebsocketExporter = function(stat_manager) { | |
var self = this; | |
self.stat_manager = stat_manager; | |
self.connections = []; | |
self.server = http.createServer(self.handleServerRequest); | |
self.server.listen(8080); |
#!/usr/bin/env coffee | |
# install dependencies: npm install irc | |
irc = require 'irc' | |
server = 'hubbard.freenode.net' | |
nickServPassword = '' | |
nick = 'bongbot' | |
client = new irc.Client server, 'bongbot', |