Skip to content

Instantly share code, notes, and snippets.

View nicknisi's full-sized avatar

Nick Nisi nicknisi

View GitHub Profile
@nicknisi
nicknisi / tokenmaxing.json
Last active May 3, 2026 00:03
tokenmaxing — public data feed for nicknisi.com/tokenmaxing
{
"schemaVersion": 1,
"generatedAt": "2026-05-03T00:03:36.152Z",
"period": {
"from": "2025-09-25",
"to": "2026-05-02"
},
"summary": {
"totalCostUSD": 28306.38,
"totalTokens": 982528616,
[
"buttons",
"calendar",
"obsidian-contextual-typography",
"obsidian-fullscreen-plugin",
"obsidian-mind-map",
"obsidian-reading-time",
"obsidian-shortcut-launcher",
"obsidian-admonition",
"advanced-toolbar",
@nicknisi
nicknisi / new-worktree.sh
Created January 27, 2022 12:44
Create a new worktree, install dependencies, and run an initial build
#!/usr/bin/env bash
# This script should help facilitate setting up a new worktree, including:
# - creating a new worktree
# - installing dependencies
# - creating a new branch
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
@nicknisi
nicknisi / books.md
Created June 22, 2015 17:45
Recommended JavaScript Books & Videos
### Keybase proof
I hereby claim:
* I am nicknisi on github.
* I am nicknisi (https://keybase.io/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:
@nicknisi
nicknisi / blackbox.js
Created December 5, 2014 21:39
Blackbox demo
require([
'dojo/_base/declare'
], function (declare) {
var Parent = declare(null, {
method: function () {
console.log('PARENT');
}
});
var Mixin = declare(null, {
@nicknisi
nicknisi / open-source-beginner.md
Last active June 7, 2022 12:50
A collection of JavaScript projects with issues labeled beginner-friendly
@nicknisi
nicknisi / param.js
Created April 15, 2013 15:33
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.
/*jshint strict:false,unused:true*/
function foo (bar) {
console.log('hello, world!');
}
foo();
// var.js: line 3, col 18, 'bar' is defined but never used.
@nicknisi
nicknisi / lint.pre-commit
Created November 12, 2012 15:17
A git pre-commit to check js files up for commit against JSHint. If there are errors, the commit is cancelled.
#!/bin/sh
# 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
EXIT_CODE=0
COLOR_RED="\x1B[31m"
COLOR_GREEN="\x1B[32m"
COLOR_NONE="\x1B[0m"