Skip to content

Instantly share code, notes, and snippets.

View dse's full-sized avatar
💭
nazi punks fuck off

Darren Embry dse

💭
nazi punks fuck off
View GitHub Profile
@dse
dse / .jshintrc
Last active February 24, 2021 01:15
/*!
* Options for JSHint, a JavaScript code quality checking tool.
* https://jshint.com/docs/options/
*/
// These defaults are for code that is:
// - executed directly by the web browser (i.e., not transpiled)
// - on public-facing web sites (i.e., not internal)
//
// For Node.js:
;; Stolen from:
;; http://mikehucka.postach.io/post/modifying-emacss-vc-diff-for-word-oriented-diffs
;;
;; Improvements:
;; - Be smarter about adding --word-diff to `vc-git-diff-switches' and
;; not clobbering any existing settings.
;; - Use `defface' as the docstring for `make-face' recommends.
;; - Base face defaults on `diff-added' and `diff-removed'.
;; - Rename `vc-diff-deleted-face' to `vc-diff-removed-face' for
;; consistency with existing face naming conventions.
@dse
dse / css.js
Last active January 3, 2016 12:19
/******** BOOKMARKLET BEGINS ON NEXT LINE ********/var _getScript_=false?
javascript:
function _getScript_(url, callback, something) {
var h,s,pl
if (/^\/\//.test(url)) {
url = ((location.protocol === "https:") ? "https:" : "http:") + url;
}
h = document.getElementsByTagName("head")[0];
s = document.createElement("script");
s.src = url;