Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Nicholas C. Zakas nzakas

💭
I may be slow to respond.
View GitHub Profile
@nzakas
nzakas / gist:8757103
Created Feb 1, 2014
ESLint V8 profile
View gist:8757103
Code move event for unknown code: 0xf0043840
Code move event for unknown code: 0xf02402e0
Code move event for unknown code: 0xf035af60
Code move event for unknown code: 0xf045ce00
Statistical profiling result from v8.log, (5296 ticks, 3426 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
3426 64.7%
@nzakas
nzakas / chrome_output.txt
Created Feb 27, 2014
Is this a Node.js bug?
View chrome_output.txt
value1: {"stack":"MyStack","type":"MyType"} true
value2: {"stack":"MyStack","message":"MyError"} true
value3: {"stack":"MyStack","message":"MyError"} true
value4: {"stack":"MyStack","type":"MyType"} true
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.3.5
3 info using node@v0.10.15
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
@nzakas
nzakas / pull_request.json
Last active Aug 29, 2015
GitHub WebHook Payloads
View pull_request.json
{
"action": "opened",
"number": 3,
"pull_request": {
"url": "https://api.github.com/repos/nzakas/APITest/pulls/3",
"id": 13182048,
"html_url": "https://github.com/nzakas/APITest/pull/3",
"diff_url": "https://github.com/nzakas/APITest/pull/3.diff",
"patch_url": "https://github.com/nzakas/APITest/pull/3.patch",
"issue_url": "https://api.github.com/repos/nzakas/APITest/issues/3",
@nzakas
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
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;
},
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,
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 README.md file found!
6 verbose readDependencies using package.json deps
7 verbose install where, deps [ 'c:\\Users\\nzakas\\projects\\phoenix',
@nzakas
nzakas / application.yml
Created Nov 13, 2014
Test for YAML config overrides
View application.yml
override: ./tests/fixtures/override.yml
http:
port.prod: 6000
port.dev: 7000
application:
mode.prod: prod
@nzakas
nzakas / job.md
Last active Aug 29, 2015
Staff Software Engineer, Front-end Frameworks, Box
View job.md

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