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
#!/usr/bin/env bash | |
if [ $# -eq 0 ] || [ "$1" = '-h' ] || [ "$1" = '--help' ] | |
then | |
cat <<HELP | |
simple usage: $0 <file> [ -TABSIZE ] | |
HELP | |
exit | |
fi |
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
{ | |
"parser": "babel-eslint", | |
"ecmaFeatures": { | |
"jsx": true, | |
"arrowFunctions": true, | |
"binaryLiterals": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, |
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 inheritance example | |
// ECMAScript 5.1 (ECMA-262) / Javascript 1.8.5 | |
function Foo ( name ) { | |
this.name = name; | |
} | |
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
// npm install finalhandler serve-static | |
var finalhandler = require('finalhandler'); | |
var http = require('http'); | |
var serveStatic = require('serve-static'); | |
var serve = serveStatic('./', { | |
'index': false, | |
'setHeaders': setHeaders | |
}); |
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
" --- colorscheme -=* snowcrystal *=- --------- --- -- - | |
" created by wolfger@spearwolf.de | |
set background=light | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
coffee: { | |
files: [ | |
'*.coffee', | |
'app/**/*.coffee', | |
'routes/**/*.coffee', | |
'lib/**/*.coffee' |
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 http = require('http'), | |
send = require('send'), // npm install send | |
url = require('url'), | |
app = http.createServer(function(req, res){ | |
function redirect() { | |
res.statusCode = 301; | |
res.setHeader('Location', req.url + '/'); | |
res.end('Redirecting to ' + req.url + '/'); |
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 _ = require('./underscore'), | |
MysqlClient = require('mysql').Client; | |
//=========================================================== | |
// MysqlTail( options ) | |
// -------------------- | |
// | |
// initialize the mysql tail module. | |
// | |
// opts.host --> mysql hostname |
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
" --- colorscheme -=* wolfcrystal *=- ---( created by wolfger@spearwolf.de )----- --- -- - | |
set background=light | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name = "wolfcrystal" |
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
" ---------------------------------------------------------- | |
" a light colorscheme based on syntax hiliting on github.com | |
" created by wolfger@spearwolf.de | |
" ---------------------------------------------------------- | |
set background=light | |
hi clear | |
if exists("syntax_on") | |
syntax reset |