Skip to content

Instantly share code, notes, and snippets.

@nekman
nekman / API.md
Created January 21, 2020 14:33 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@nekman
nekman / a.js
Created September 23, 2016 03:17 — forked from isaacs/a.js
var Module = require('module')
Module.prototype.require = function (orig) { return function (id) {
console.trace(this, id)
return orig.apply(this, arguments)
}}(Module.prototype.require)
require('./b.js')
@nekman
nekman / tabs2spacesOSX.sh
Last active April 18, 2016 14:30 — forked from bluefuton/gist:1468061
OS X: replace tabs with spaces in all files using expand
find . -name "*.java" | while read line; do expand -t 2 $line > $line.new; mv $line.new $line; done