Skip to content

Instantly share code, notes, and snippets.

View ahmadina's full-sized avatar
🎯
Focusing

Ahmad ahmadina

🎯
Focusing
View GitHub Profile
@mynameispj
mynameispj / Props
Created July 24, 2012 14:55
Estimated reading time in PHP, by Brian Cray
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
@MatthewMueller-Snippets
MatthewMueller-Snippets / gist:2260183
Created March 31, 2012 07:02
EC2: Add a SSH pem-file to keychain
Add a SSH pem-file to keychain
ssh-add ~/.ssh/mattyair.pem
@eykd
eykd / .gitignore
Created January 19, 2012 04:37
Full stack BDD testing with Behave+Mechanize+Django
*.pyc
bin/
include/
lib/