I hereby claim:
- I am mattslack on github.
- I am mattslack (https://keybase.io/mattslack) on keybase.
- I have a public key whose fingerprint is 705E 29C1 8381 0626 0938 288C 99D3 7AA5 F656 C3FD
To claim this, I am signing this object:
| <style> | |
| .spectrum { | |
| display: block; | |
| width: 150px; | |
| height: 15px; | |
| margin-left: 2px; | |
| background: -webkit-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%), | |
| -moz-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%) | |
| -o-linear-gradient(left, hsl(0,100%,50%),hsl(60,100%, 50%), hsl(120,100%, 50%), hsl(180, 100%, 50%), hsl(240,100%,50%), hsl(300,100%,50%) 100%); | |
| } |
| DROP TABLE IF EXISTS cache_form; | |
| DROP TABLE IF EXISTS menu_router; | |
| DROP TABLE IF EXISTS menu_links; | |
| DROP TABLE IF EXISTS menu_custom; | |
| CREATE TABLE IF NOT EXISTS `cache_location` ( | |
| `cid` varchar(255) NOT NULL default '', | |
| `data` longblob, | |
| `expire` int(11) NOT NULL default '0', | |
| `created` int(11) NOT NULL default '0', |
| // ==UserScript== | |
| // @name Sentinel Cleaner | |
| // @version 1.4.14 | |
| // @author Matt Slack | |
| // @description Depaginates articles, and clears out a bunch of visual crap (including most ads) from the Holland Sentinel website. | |
| // @match http://www.hollandsentinel.com/* | |
| // ==/UserScript== | |
| (function () { | |
| "use strict"; |
| // ==UserScript== | |
| // @name Pocket Readability | |
| // @version 1.3 | |
| // @author Matt Slack | |
| // @description Improve the readability on Pocket (formerly Read it Later). | |
| // @match https://getpocket.com/a/* | |
| // ==/UserScript== | |
| // Stolen from https://developer.mozilla.org/en-US/docs/DOM/CSSStyleSheet/insertRule | |
| function addStylesheetRules(decls) { |
| #!/bin/zsh | |
| PROJECTS_DIR="${HOME}/Projects" | |
| cd $PROJECTS_DIR | |
| for client in `find ${PROJECTS_DIR} -type d -name ".git"`; do | |
| cd ${client} | |
| cd .. | |
| echo "Checking: `pwd`" | |
| git gc | |
| git remote prune origin | |
| if [ -d log ]; then |
| /*properties | |
| cssRules, href, length, log, selectorText, split, styleSheets | |
| */ | |
| (function () { | |
| "use strict"; | |
| var j = 0, | |
| totalRules = 0, | |
| totalSelectors = 0, | |
| count_rules = function (styleSheet) { |
I hereby claim:
To claim this, I am signing this object:
| (function () { | |
| "use strict"; | |
| var find_dupes = function () { | |
| var identified = document.querySelectorAll('[id]'), | |
| unique = [], | |
| dupes = [], | |
| id, | |
| idx = 0; | |
| while (idx < identified.length) { | |
| id = (identified[idx]).getAttribute('id'); |
| #!/bin/sh | |
| BRANCH="master" | |
| ROOT=`git rev-parse --show-toplevel` | |
| [[ 0 < $# ]] && BRANCH=$1 | |
| [[ `git status -b -s --porcelain | egrep '^\#\# ($BRANCH)'` ]] || git checkout ${BRANCH} && { | |
| (git pull origin ${BRANCH} || git pull --rebase origin ${branch} ) && | |
| git fetch -a && |
| #!/bin/bash | |
| # Built off of Standard JS's pre-commit example: https://standardjs.com/#is-there-a-git-pre-commit-hook | |
| # Ensure all files staged for commit pass standard code style | |
| function xargs-r() { | |
| # Portable version of "xargs -r". The -r flag is a GNU extension that | |
| # prevents xargs from running if there are no input files | |
| if IFS= read -r -d $'\n' path; then | |
| { echo "$path"; cat; } | xargs $@ |