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
Show hidden characters
| { | |
| "bufopts": | |
| { | |
| "completefunc": "ActualVimComplete" | |
| }, | |
| "enabled": true, | |
| "large_file_disable": | |
| { | |
| "bytes": 52428800, | |
| "lines": 50000 |
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
| call plug#begin('~/.vim') | |
| Plug 'pangloss/vim-javascript' | |
| Plug 'groenewege/vim-less' | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| Plug 'scrooloose/syntastic' | |
| Plug 'flazz/vim-colorschemes' | |
| Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
| Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' } | |
| Plug 'vim-airline/vim-airline' |
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
| <form action="/" method="POST"> | |
| <fieldset> | |
| <legend>First Main Group</legend> | |
| <p> | |
| <label for="textdemo">Text:</label> | |
| <input type="text" id="textdemo"/> | |
| </p> | |
| <p> | |
| <label for="pwddemo">Password:</label> |
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
| function trampoline(fn) { | |
| var result = fn | |
| while (result instanceof Function) { | |
| result = result() | |
| } | |
| return result | |
| } | |
| function isEven(n) { |
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
| function k(value) { | |
| return function inner() { | |
| return value | |
| } | |
| } | |
| var createSingleton = k({}) | |
| , neo = createSingleton() | |
| , mrAnderson = createSingleton() |
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
| function singletonFactory() { | |
| var neo = { skills : [] } | |
| return function() { return neo } | |
| } | |
| var createSingleton = singletonFactory() | |
| , neo = createSingleton() | |
| , mrAnderson = createSingleton() |
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
| function doAction(action) { | |
| var actions = | |
| { 'push' : function() { return 'push' } | |
| , 'pull' : function() { return 'pull' } | |
| , 'fork' : function() { return 'fork' } | |
| } | |
| if (typeof actions[action] !== 'function') { | |
| actions[action] = function() { return 'default' } | |
| } |
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
| function curry(fn, n) { | |
| n = n || fn.length | |
| return function(arg) { | |
| if (--n <= 0) return fn(arg) | |
| return curry(fn.bind(fn, arg), n) | |
| } | |
| } |
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 totallyEmployable = (function iffy() { | |
| function fizzBuzz(options) { | |
| var isFizz | |
| , isBuzz | |
| , i | |
| options = options || {} | |
| options.low = options.low || 1 | |
| options.high = options.high || 100 |
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
| /* jshint bitwise : true, eqeqeq : true, forin : true, noarg : true, noempty : true, nonew : true, | |
| asi : true, esnext : true, laxcomma : true, sub : true, browser : true, node : true, phantom : true */ | |
| const | |
| express = require('express') | |
| , path = require('path') | |
| , favicon = require('static-favicon') | |
| , logger = require('morgan') | |
| , cookieParser = require('cookie-parser') | |
| , bodyParser = require('body-parser') |