This script was rebuilt and moved into a proper Github repo: https://github.com/mckamey/doubleTap.js
See the old version for a more basic polyfill which only implements the dblclick event.
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Created: 2010/12/05 | |
// Updated: 2018/09/12 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
// |
// Simulating infinite-length leading lookbehind in JavaScript. Uses XRegExp. | |
// Captures within lookbehind are not included in match results. Lazy | |
// repetition in lookbehind may lead to unexpected results. | |
(function (XRegExp) { | |
function prepareLb(lb) { | |
// Allow mode modifier before lookbehind | |
var parts = /^((?:\(\?[\w$]+\))?)\(\?<([=!])([\s\S]*)\)$/.exec(lb); | |
return { |
This script was rebuilt and moved into a proper Github repo: https://github.com/mckamey/doubleTap.js
See the old version for a more basic polyfill which only implements the dblclick event.
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
var urls = []string{ | |
"https://splice.com/", |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
function add(){ | |
for (var i = 0; i < 500; i++) { | |
$('<div style="background-color: #A68585;margin: 2px 0;width: 100px;height: 30px;">' + i + '</div>').appendTo('.box'); | |
} | |
} |
/** | |
* Lightwright JS Loader | |
* | |
* @author Christopher Imrie | |
* | |
* @param {String} name URL to JS file | |
* @param {Function} cb Callback function | |
* @return {null} | |
*/ | |
function loadScript(/** string */ name, /** Function*/ cb) { |
#!/bin/bash | |
# Issue arbitary git command for each of the sub modules. | |
# E.g. git-bundle checkout feature/docs | |
# Check out the feature/docs branch for each of the sub module. | |
function print_header | |
{ | |
printf '%.0s-' {1..30} && echo | |
echo $1 | |
printf '%.0s-' {1..30} && echo |
//Simple Prototype extend | |
var extend = (function () { | |
var f = function(){}; | |
return function (c, p) { | |
f.prototype = p.prototype; | |
c.prototype = new f; | |
c._super = p.prototype; | |
c.prototype.constructor = c; | |
} | |
})(); |
This will allow you to include additional directories to what cd
will look at for completions. From the bash
man page:
The search path for the cd command. This is a colon-separated list of directories in which the shell looks for destination directories specified by the cd command.