Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
[13:38:37] James:hex git:(master*) $ mix hex | |
Hex v0.6.0 | |
Registry file available (last updated: 2014-10-26 13:35:04) | |
Size: 166kB | |
Packages #: 272 | |
Versions #: 968 | |
Tasks: |
This file contains hidden or 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
SELECT sum(heap_blks_hit) / (1 + sum(heap_blks_hit) + sum(heap_blks_read)) AS ratio FROM pg_statio_user_tables |
This file contains hidden or 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
set encoding=utf-8 | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
Bundle 'gmarik/vundle' |
This file contains hidden or 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 redis = require('redis').createClient(), | |
f = require('util').format; | |
Array.prototype.diff = function(a) { // use to remove blocked users | |
return this.filter(function(i) {return !(a.indexOf(i) > -1);}); | |
}; | |
var methods = { | |
follow: function(a, b, cb) { | |
db.sadd(f("node:%s:following", a), b, function(err, res){ |
This file contains hidden or 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
wget http://bitnami.com/redirect/to/22096/bitnami-gitlab-5.4.0-0-linux-x64-installer.run && sudo chmod +x bitnami-gitlab-5.4.0-0-linux-x64-installer.run && sudo sh bitnami-gitlab-5.4.0-0-linux-x64-installer.run |
This file contains hidden or 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
#!/bin/bash | |
node ~/.dotfiles/bin/online.js $@ |
This file contains hidden or 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
//Create | |
OuyaLobby lobby = new OuyaLobby(max_players, port, region); | |
//Connect | |
OuyaLobby lobby = new OuyaLobby(host, port); | |
lobby.connect(new Callback() { | |
@Override | |
public void onMessage(JSONObject json, Acknowledge ack) { | |
try { | |
System.out.println("Server said:" + json.toString(2)); |