Skip to content

Instantly share code, notes, and snippets.

View martypdx's full-sized avatar

Marty Nelson martypdx

  • martypdx, llc
  • Portland, OR
View GitHub Profile
@beevelop
beevelop / gitprint.js
Created April 11, 2017 10:31
Print GitHub markdown files
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()
@aslakhellesoy
aslakhellesoy / poor-mans-npm-registry.js
Created June 22, 2011 14:50
A dummy npm server useful for publishing private packages
// A very simple npm server that you can `npm publish` to.
// Useful for publishing internal packages.
//
// Writes the published .tgz package to disk under tmp/
//
// In your own project's `package.json`, add this:
//
// "publishConfig":{"registry":"http://localhost:9911"}
//
// Before you publish the first time you also need to