start new:
tmux
start new with session name:
tmux new -s myname
| define(function(require) { | |
| var React = require('react'); | |
| var paramRegex = /__(\d)+/; | |
| var parser = new DOMParser(); | |
| var errorDoc = parser.parseFromString('INVALID', 'text/xml'); | |
| var errorNs = errorDoc.getElementsByTagName("parsererror")[0].namespaceURI; | |
| // turns the array of string parts into a DOM | |
| // throws if the result is an invalid XML document. |
| #!/usr/bin/env bash | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
| /** | |
| * How to have floating scrollbars in Firefox (Linux, Windows & Mac). | |
| * Screenshot: http://i.imgur.com/bn44L.png | |
| * You need Firefox > 18. Just run this code in a browser-scratchpad: | |
| * | |
| * Ping me on Twitter (@paulrouget) if you run into problems. | |
| * | |
| * 1. Go to about:config - Set devtools.chrome.enabled to true | |
| * 2. Starts Scratchpad (Shift-F4) | |
| * 3. In Scratchpad's menubar, check "Environment > Browser" |