-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
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
/* | |
* Curried code to add multiple numbers | |
Author : Jaseem Abid <[email protected]> | |
* sum() expects 2 numbers are arguments | |
* If 2 args are provided, it returns sum as usual. | |
* If one arg is provided, it returns a | |
function which expects one more arg. JS closures can | |
'remember the first argument' and work accordingly. |
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
/* | |
* Another ES6 Proxy experiment. This one creates a stack whose underlying | |
* implementation is an array. The proxy is used to filter out everything | |
* but "push", "pop", and "length" from the interface, making it a pure | |
* stack where you can't manipulate the contents. | |
*/ | |
var Stack = (function(){ | |
var stack = [], |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
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 cradle = require('cradle'); | |
var database = 'app'; | |
cradle.setup({ | |
host: '127.0.0.1', | |
port: 5984, | |
auth: { username: "YOUR_USERNAME", password: "YOUR_PASSWORD" } | |
}); |
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) |