Skip to content

Instantly share code, notes, and snippets.


Nick Nisi nicknisi

View GitHub Profile
View gist:405f6ea421e36947847d
### Keybase proof
I hereby claim:
* I am nicknisi on github.
* I am nicknisi ( on keybase.
* I have a public key whose fingerprint is 8D96 5131 D56A E7CF 3F61 D32E 8448 11B5 AC41 0A92
To claim this, I am signing this object:
View blackbox.js
], function (declare) {
var Parent = declare(null, {
method: function () {
var Mixin = declare(null, {
nicknisi /
Last active Mar 24, 2021
A collection of JavaScript projects with issues labeled beginner-friendly
nicknisi / param.js
Created Apr 15, 2013
I believe JSHint shouldn't throw an error on this when the unused variable is a paramater in the function, as having it defined can help define the function, even if it isn't necessarily used.
View param.js
/*jshint strict:false,unused:true*/
function foo (bar) {
console.log('hello, world!');
// var.js: line 3, col 18, 'bar' is defined but never used.
nicknisi / lint.pre-commit
Created Nov 12, 2012
A git pre-commit to check js files up for commit against JSHint. If there are errors, the commit is cancelled.
View lint.pre-commit
# JSHint Pre-Commit
# Place this in your .git/hooks/pre-commit directory and rename to `pre-commit`
# expects jshint to be installed in your projects node_modules directory
nicknisi / backbone_super.js
Created Aug 8, 2012 — forked from maxbrunsfeld/backbone_super.js
A 'super' method for backbone.js (plain javascript)
View backbone_super.js
// This method gives you an easier way of calling super
// when you're using Backbone in plain javascript.
// It lets you avoid writing the constructor's name multiple
// times. You still have to specify the name of the method.
// So instead of having to write:
// User = Backbone.Model.extend({
// save: function(attrs) {
// this.beforeSave(attrs);
nicknisi / .gitignore
Created Jun 26, 2012
A simple web server to test the dgrid scrolling bug
View .gitignore
nicknisi / gist:2771527
Created May 22, 2012
dojo dgrid pass row data in to an editor cell
View gist:2771527
var col = {
row : null,
editor : StatusSelector,
get : function (obj) { col.row = obj; return obj.status; },
editorArgs : function (column) { return column.row.otherValue; },
new Grid({
columns : [
nicknisi /
Created Apr 2, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh