How to use [zaiste/postgresql][1] Docker container.
Docker >= 0.5.0 required.
sudo docker pull zaiste/postgresql
$('.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` |
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 |
html, body { | |
margin: 0; | |
height: 100%; | |
padding: 0; | |
font-size: 30px; | |
} | |
.container { | |
width: 80%; | |
text-align: center; | |
margin: auto; |
while read p; do | |
git rm -r --cached $p | |
done < .gitignore |
const midi = require('midi') | |
var input = new midi.input() | |
input.getPortCount() | |
input.getPortName(0) | |
input.on('message', function (deltaTime, message) { |