How to use [zaiste/postgresql][1] Docker container.
Docker >= 0.5.0 required.
sudo docker pull zaiste/postgresql
/** | |
* Module Dependencies | |
*/ | |
var net = require('net'), | |
EventEmitter = require('events').EventEmitter, | |
util = require('util'); | |
/** | |
* SOCKS Server Wrapper for a net stream |
/** | |
* Is Google Chrome/Chromium? | |
*/ | |
if(window && window.chrome) { | |
// Load the magic | |
} else { | |
// D'oh! | |
} |
$('.tweet').each(function() { | |
if($(this).find('.username').text() == '@GIFs') { | |
var el = $(this).find('.tweet-text'); | |
el.html('<img style="max-width: 100%;" src="' + el.text() + '" alt="' + el.text() + '"/>'); | |
} | |
}); |
#!/bin/bash | |
# Credit to azzid for Spotify version - http://ubuntuforums.org/showthread.php?t=1797848 | |
# Collect DBUS_SESSION_BUS_ADDRESS from running process | |
function set_dbus_adress | |
{ | |
USER=$1 | |
PROCESS=$2 | |
PID=`pgrep -o -u $USER $PROCESS` |
// http://www.reddit.com/r/Music/wiki/musicsubreddits | |
var musicReddits = $('a').filter(function() { return $(this).text().match(/^\/r\//); }); | |
// array | |
musicReddits.map(function() { return $(this).text(); }).toArray(); | |
// console.log |
smile | |
:-) | |
frown | |
:-( | |
tongue | |
:-P | |
grin | |
:-D | |
gasp | |
:-O |
var child_process = require('child_process'); | |
var LineInputStream = require('line-input-stream'); | |
var sensorex = LineInputStream(child_process.spawn('./sensorex')); | |
sensorex.setEncoding("utf8"); | |
sensorex.setDelimiter("\n"); | |
sensorex.on('line', function(line) { | |
console.log('New Line: ' + line); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |