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 http = require('http'), | |
| url = require('url'), | |
| util = require('util'); | |
| http.createServer( function (req, res) { | |
| res.writeHead( 200, {'Content-Type': 'text/plain'} ); | |
| var qs = url.parse( req.url, true ); | |
| res.write( util.inspect( qs.query ) ); |
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
| # Git visual log displays commit tree view with who did what when and in which branch | |
| git config --global alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color' |
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 users = { | |
| "a54bca8764-13bx5-8nln8s-0ga7d" : { | |
| "name" : "Louise Voress", | |
| "type" : "Committee", | |
| "primarynominator" : "Dorrie Hutchison", | |
| "reviewer1" : {"name" : "Tom Jones", "grade" : "A", "comments" : "", "status" : "Saved"}, | |
| "reviewer2" : {"name" : "Lucy Young", "grade" : "A", "comments" : "", "status" : "Saved"}, | |
| "adjudicator" : {"name" : "Steven Taylor", "recommendation" : "Yes", "comments" : "", "status" : "Saved"}, | |
| "os" : [ | |
| {"name" : "Kevin Joseph", "vote" : "Yes", "comments" : "", "status" : "Saved"}, |
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/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemin | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /usr/local/nginx/conf/nginx.conf | |
| # pidfile: /usr/local/nginx/logs/nginx.pid |
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
| /** | |
| * Convert milliseconds in regular style time | |
| * @author Asa Baylus | |
| **/ | |
| function convertMilliseconds (ms, p) { | |
| var pattern = p || "hh:mm:ss", | |
| arrayPattern = pattern.split(":"), | |
| clock = [ ], |
NewerOlder