Skip to content

Instantly share code, notes, and snippets.

_ this document is in public domain _
--------------------------------------------------------------------------------
Hello Foo,
As you are aware, we are looking to hire smart and enthusiastic front-end
programmers who can learn new technologies and adapt fast. You have made the
short-list and we would like you to undertake a coding challenge that we have
devised to help us assess your coding skills.
@jaseemabid
jaseemabid / gist:8819059
Last active August 29, 2015 13:56
= How the web works, an introduction with Python Flask
= How the web works, an introduction with Python Flask
= Objective
Introduce the audience to web programming, with a clean focus on fundamentals.
Rather than deal with the nuances of a library or a framework, the workshop will
focus on fundamentals like HTTP, simple tools like curl, quick sneak peek into
REST etc
= Description
import logging
import time
logger = logging.getLogger(__name__)
def useful():
logger.debug('Hello from webapplib!')
time.sleep(0.01)
@jaseemabid
jaseemabid / jquerify.js
Created August 5, 2011 17:26
Run this line of js in your browser addressbar to add jQuery into the page you are viewing
javascript:var s=document.createElement('script');s.setAttribute('src','http://code.jquery.com/jquery.js');document.getElementsByTagName('body')[0].appendChild(s);
@jaseemabid
jaseemabid / sources.list
Created August 5, 2011 21:56
NITC Ubuntu 10.04 campus mirror configuration file. Replace /etc/apt/sources.list with this file
# NITC Campus mirror
deb http://192.168.40.97/ubuntu lucid main universe multiverse restricted
deb http://192.168.40.97/ubuntu lucid-updates main universe multiverse restricted
deb http://192.168.40.97/ubuntu lucid-security main universe multiverse restricted
@jaseemabid
jaseemabid / simple_this_ex.js
Created August 23, 2011 14:06 — forked from kaaes/simple_this_ex.js
basic example of this object
var a, b, c, d, e;
a = function(obj) {
return this;
}
// when you call the function in 'function form' 'this' is window object
a(); // window
@jaseemabid
jaseemabid / gist:1168230
Created August 24, 2011 14:48
HTML special characters
Bullet (•) •
Cent sign (¢) ¢
Copyright sign (©) ©
Degree sign (°) °
Em dash (—) —
Euro symbol (€) €
Heart symbol (♥) ♥
Inverted exclamation (¡) ¡
Inverted question (¿) ¿
Non-breaking space  
@jaseemabid
jaseemabid / gist:1173998
Created August 26, 2011 18:06
Installing postgresql in ubuntu
sudo apt-get install postgresql
sudo -u postgres psql postgres
\password postgres
sudo -u postgres createuser --superuser $USER
sudo -u postgres psql
postgres=# \password $USER
@jaseemabid
jaseemabid / ReadMe.md
Created October 16, 2011 22:16 — forked from netroy/ReadMe.md
Simplest Static Webserver in Node.JS

Just install connect from npm. Run this in a directory that you'll like to serve static content from. To run on a specific port set ENV "StaticPort"

@jaseemabid
jaseemabid / gist:1316930
Created October 26, 2011 16:39
Private variables in JavaScript
console.log("Private variables in JavaScript");
var a = (function(){
return obj = {
pub : 'public data',
getSecret : function() {
var secret = 'my secret';
return secret;
}
};