As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| // Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
| var metas = document.getElementsByTagName('meta'); | |
| var i; | |
| if (navigator.userAgent.match(/iPhone/i)) { | |
| for (i=0; i<metas.length; i++) { | |
| if (metas[i].name == "viewport") { | |
| metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
| } | |
| } |
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
| # Solarized colorscheme/theme from | |
| source-file git/github/tmux-colors-solarized/tmuxcolors.conf | |
| # Report that we can handle 256 colors | |
| set -g default-terminal "screen-256color" | |
| # Rebind prefix to avoid conflicts | |
| #unbind C-b | |
| #set -g prefix C-q | |
| #bind C-q send-prefix |
| #!/bin/bash | |
| # Bash shell script for generating self-signed certs. Run this in a folder, as it | |
| # generates a few files. Large portions of this script were taken from the | |
| # following artcile: | |
| # | |
| # http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
| # | |
| # Additional alterations by: Brad Landers | |
| # Date: 2012-01-27 |
For HTTP headers it's quite straightforward: draft-nottingham-http-link-header defines this.
Link: <http://example.com/>; rel="previous"; titile="Previous chapter"
| // Also see http://michaux.ca/articles/class-based-inheritance-in-javascript | |
| function extend(Super, Sub) { | |
| // By using a dummy constructor, initialization side-effects are eliminated. | |
| function Dummy() {} | |
| // Set dummy prototype to Super prototype. | |
| Dummy.prototype = Super.prototype; | |
| // Create Sub prototype as a new instance of dummy. | |
| Sub.prototype = new Dummy(); | |
| // The .constructor propery is really the Super constructor. | |
| Sub.baseConstructor = Sub.prototype.constructor; |