Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Nicholas C. Zakas nzakas

I may be slow to respond.
View GitHub Profile
nzakas /
Created Sep 11, 2015
Some simple scripts I use to manage open source branches


To create a new branch that is up-to-date with the remote master:

$ ws 123

Creates the branch issue123

nzakas /
Created Jul 2, 2015
Increment all numbers in the form "column: 1"
# This was used to update all column numbers in ESLint tests when we
# changed to 1-based columns from 0-based
$ perl -pi.bak -e "s/(column: *)([0-9]+)/\$1.(\$2+1)/e;" tests/lib/rules/*.js
nzakas / gist:b00ce7cf9e5d99935853
Created May 13, 2015
Avocado chocolate pudding
View gist:b00ce7cf9e5d99935853
* 1 ripe avocado (a bit soft)
* 3 tbsp pure cocoa powder (no sugar added)
* 3 tbsp coconut nectar
* 6 tbsp unsweetened coconut milk
1. Scoop out avocado into blender/food processor
nzakas /
Last active Aug 29, 2015
Staff Software Engineer, Front-end Frameworks, Box

Staff Software Engineer, Front-end Frameworks (Los Altos, CA)

Box's Front-end Frameworks team is looking for an experienced engineer to join us at our Los Altos, CA headquarters on our mission to make building web applications on top of the Box infrastructure easy, fast, and fun.

About the Team

Front-end Frameworks ensures that Box web applications are built on top of the best tools and frameworks available. We actively evaluate third-party libraries and frameworks, as well as building our own, to make sure our feature teams can be as effective and iterative as possible. In the past two years, we've led the establishment of front-end best practices, created a lightweight client-side framework that has improved developer experience by enforcing conventions and loose coupling, and started putting together a Node.js framework to power the next generation of Box web applications.

About the Job

nzakas / application.yml
Created Nov 13, 2014
Test for YAML config overrides
View application.yml
override: ./tests/fixtures/override.yml
http: 6000 7000
application: prod
View gist:a468c53a7aeb5730bf55
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install' ]
2 info using npm@1.2.18
3 info using node@v0.10.5
4 verbose read json c:\Users\nzakas\projects\phoenix\package.json
5 warn package.json phoenix@0.0.0 No file found!
6 verbose readDependencies using package.json deps
7 verbose install where, deps [ 'c:\\Users\\nzakas\\projects\\phoenix',
View npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'publish' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
nzakas / simplemap.js
Created Apr 3, 2014
A simple map implementation for JavaScript (not intended to be an ES6 polyfill)
View simplemap.js
function SimpleMap() {
this._data = {};
SimpleMap.prototype = {
get: function(key) {
return this.has(key) ? this._data[key] : null;
nzakas / codepoints.js
Created Mar 9, 2014
Will this do what it claims to do in ES6?
View codepoints.js
// will this work for getting the number of code points in an ES6 string?
function codePointLength(text) {
var result = text.match(/./gu);
return result ? result.length : 0;
console.log(codePointLength("abc")); // 3
console.log(codePointLength("𠮷bc")); // 3
nzakas / pull_request.json
Last active Aug 29, 2015
GitHub WebHook Payloads
View pull_request.json
"action": "opened",
"number": 3,
"pull_request": {
"url": "",
"id": 13182048,
"html_url": "",
"diff_url": "",
"patch_url": "",
"issue_url": "",