This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github - package.json/bower.json dependency linker | |
// @version 0.0.2 | |
// @namespace http://spiralx.org/github-npm-autolink | |
// @author James Skinner <spiralx@gmail.com> http://userscripts.org/users/55684 | |
// @description When viewing a package.json file, automatically links dependencies to their NPM page | |
// @include https://github.com/*/package.json | |
// @include https://github.com/*/bower.json | |
// @run-at document-end | |
// @grant unsafeWindow GM_xmlhttpRequest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @license jquery-mutation-summary | |
* Copyright © 2012, 2013, 2014, Joel Purra <http://joelpurra.com/> | |
* Released under MIT, BSD and GPL license. Comply with at least one. | |
* | |
* A jQuery wrapper/plugin for mutation-summary, the DOM mutation-observers wrapper. | |
* http://joelpurra.github.com/jquery-mutation-summary | |
* | |
* "Mutation Summary is a JavaScript library that makes observing changes to the DOM fast, easy and safe." | |
* http://code.google.com/p/mutation-summary/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint asi:true */ | |
;(function(global) { | |
'use strict' | |
const parser = /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, | |
queryKeyParser = /(?:^|&)([^&=]*)=?([^&]*)/g, | |
keys = "href protocol authority userInfo user password host port relative path directory file query anchor".split(" "); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.fn.batch = function(method, args) { | |
var func = $.fn[method], results = []; | |
this.each(function() { | |
results.push(func.apply(this, args)); | |
}); | |
return results; | |
}; | |
var funcs = "attr css=styles prop html text val offset width height".split(" "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "help", | |
"helpvalue": "Complex keys are only supported with AngularJS version 1.3.x, see <a href=\"https://github.com/Textalk/angular-schema-form/blob/master/docs/knownlimitations.md\">known limitations</a> in the docs." | |
}, | |
"title", | |
"preference", | |
{ | |
"key": "shareholders", | |
"title": "Shareholders", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Allows you to specify named groups in regular expressions like in Perl/Python/.NET/etc. You have to | |
* use a string to specify the regex, and the function returns an object that has `exec` and `replace` | |
* functions like a normal RegExp object, but matches they generate have keys for the values of the named | |
* groups. | |
* | |
* n = NamedRegExp("(?<protocol>http|ftp)://(?<host>[\\w-]+\\.com)(?<path>/.+\\.html)?$"); | |
* res = n.exec("http://foobar.com"); -> res.protocol = http, res.host = foobar.com res.path = undefined | |
* res = n.exec("http://foobar.com/"); -> res.protocol = http, res.host = foobar.com res.path = / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
'use strict'; | |
if (typeof $.format === 'function') { | |
return; | |
} | |
// -------------------------------------------------------------------- | |
// Defined variables and constants. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint asi:true, proto:true */ | |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document) | |
Node.prototype.on = window.on = function(names, fn) { | |
var self = this | |
names.split(' ').forEach(function(name) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>sorting lists</title> | |
<script src="jquery-1.7.2.min.js"></script> | |
<script src="jquery.sortChildren.js"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// allcolors.js | |
// https://github.com/bgrins/devtools-snippets | |
// Print out CSS colors used in elements on the page. | |
(function() { | |
'use strict' | |
const BOLD = 'font-weight: bold;' | |
const LINK = 'text-decoration: underline; color: #05f' | |
const NORMAL = 'font-weight: normal; text-decoration: none; color: black; background-color: white; display: inline' |
OlderNewer