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"
This file contains 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
_ 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. |
This file contains 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
= 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 |
This file contains 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
import logging | |
import time | |
logger = logging.getLogger(__name__) | |
def useful(): | |
logger.debug('Hello from webapplib!') | |
time.sleep(0.01) |
This file contains 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
javascript:var s=document.createElement('script');s.setAttribute('src','http://code.jquery.com/jquery.js');document.getElementsByTagName('body')[0].appendChild(s); |
This file contains 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
# 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 |
This file contains 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 a, b, c, d, e; | |
a = function(obj) { | |
return this; | |
} | |
// when you call the function in 'function form' 'this' is window object | |
a(); // window |
This file contains 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
Bullet (•) • | |
Cent sign (¢) ¢ | |
Copyright sign (©) © | |
Degree sign (°) ° | |
Em dash (—) — | |
Euro symbol (€) € | |
Heart symbol (♥) ♥ | |
Inverted exclamation (¡) ¡ | |
Inverted question (¿) ¿ | |
Non-breaking space   |
This file contains 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
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 |
This file contains 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
console.log("Private variables in JavaScript"); | |
var a = (function(){ | |
return obj = { | |
pub : 'public data', | |
getSecret : function() { | |
var secret = 'my secret'; | |
return secret; | |
} | |
}; |
OlderNewer