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
| " $HOME/.vim/after/syntax/javascript.vim | |
| if !has('conceal') | |
| finish | |
| endif | |
| set conceallevel=2 | |
| syntax clear javaScriptFunction | |
| syntax keyword javaScriptFunction function nextgroup=javaScriptFuncName skipwhite conceal cchar=寿 |
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 gulp = require('gulp'), | |
| express = require('express'), | |
| connect_livereload = require('connect-livereload'), | |
| livereload = require('gulp-livereload'); | |
| var EXPRESS_PORT = 4000; | |
| var EXPRESS_ROOT = __dirname; | |
| function startExpress() { | |
| var app = express(); |
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 toArray(o) { | |
| return Array.prototype.slice.call(o); | |
| } | |
| toArray( document.querySelectorAll( '.reveal .slides section' ) ).forEach(function(slide){ | |
| var outerWrapper = document.createElement('div'); | |
| outerWrapper.style.cssText = 'display:flex; align-items:center; height:100%'; | |
| var wrapper = document.createElement('div'); | |
| wrapper.style.width = '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
| package main | |
| import ( | |
| "expvar" | |
| "io" | |
| "net/http" | |
| ) | |
| var numCalls = expvar.NewInt("num_calls") |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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/bash | |
| declare -A Opts=([verbose]=0) | |
| function main() { | |
| declare -i argc=0 | |
| declare -a argv=() | |
| : 'Parse args' && { | |
| while (($# > 0)) |
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_NAME := | |
| .PHONY: var | |
| var: | |
| @echo $($(filter $(VAR_NAME),$(.VARIABLES))) |