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
// Global variables | |
var app = require('http').createServer(handler) | |
, io = require('socket.io').listen(app) | |
, fs = require('fs') | |
, url = require('url') | |
, port = 1337 | |
// initialize http server | |
app.listen(port); | |
console.log("Listening on port", port) |
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
<script src="//ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/jquery-2.0.0.min.js">\x3C/script>')</script> | |
<!-- or Require js --> | |
<script> | |
requirejs.config({ | |
enforceDefine: true, | |
paths: { |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by configure, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --prefix=/Users/akennedy/.rubies/ruby-2.0.0-p195 --with-opt-dir=/usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/libyaml:/usr/local/opt/gdbm:/usr/local/opt/libffi | |
## --------- ## | |
## Platform. ## |
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 growly = require('growly'); | |
growly.notify("test", {title : "wooot", sticky : true}); |
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
function required(params) { | |
return function (req, res, cb) { | |
if (params.every(function (elem) { return req.body.hasOwnProperty(elem); })) | |
cb(); | |
else | |
res.send(400, {status:400, message: 'Missing required body parameters.'}); | |
}; | |
}; | |
/* |
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
return View.extend({ | |
initialize: function () { | |
this.el.attr("draggable", "true") | |
this.el.bind("dragstart", _.bind(this._dragStartEvent, this)) | |
}, | |
_dragStartEvent: function (e) { | |
var data | |
if (e.originalEvent) e = e.originalEvent | |
e.dataTransfer.effectAllowed = "copy" // default to copy |
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
from gsapi import GSApi | |
api = GSApi() | |
username = "L1fescape" | |
response = api.call_remote('getUserIDFromUsername', username=username) | |
userID = response['result']['UserID'] | |
response = api.call_remote('getUserPlaylistsByUserID', userID=userID) | |
playlists = response['result']['playlists'] |
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
#/usr/bin/env bash | |
set -e | |
set -x | |
apt-get update | |
apt-get upgrade | |
apt-get -y install build-essential curl git-core openssl libreadline6 libreadline6-dev \ | |
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \ |
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
<a onclick="wp_showhide.main(this, 'paul')" href="javascript:void(0)"> | |
["Paul", "Paul", "hidden"] | |
</a> | |
<a onclick="wp_showhide.main(this, 'bob')" href="javascript:void(0)"> | |
["Bob", "Bob", "hidden"] | |
</a> | |
<a onclick="wp_showhide.main(this, 'steve')" href="javascript:void(0)"> | |
["Steve", "Steve", "hidden"] |
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
public class TheRollingStones { | |
private int satisfaction; | |
public void setSatisfaction(int satisfaction) { | |
this.satisfaction = satisfaction; | |
} | |
public void getSatisfaction() { | |
} | |
} |