- Install Karabiner
- Open Karabiner and go to Misc & Uninstall -> Open private.xml
- Use the contents of private.xml and save
- In Karabiner, go to Change Keys -> Reload XML
- Enable “Option_R to Emoji”
- 🎉
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
javascript: (function () { | |
function c() { | |
var e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", f); | |
e.setAttribute("class", l); | |
document.body.appendChild(e) | |
} | |
function h() { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
var STR_CHAR_CRLF = '\r\n'; | |
var STR_BLANK = ''; | |
var STR_CHAR_TAB = '\t'; | |
var repeat = function(str, length) { | |
return new Array(length + 1).join(str); | |
}; | |
var XMLUtil = { | |
REGEX_TOKEN_1: /(>)\s*(<)(\/*)/g, |
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 (global) { | |
function clean(css) { | |
return css | |
.replace(/\/\*[\W\w]*?\*\//g, "") // remove comments | |
.replace(/^\s+|\s+$/g, "") // remove trailing spaces | |
.replace(/\s*([:;{}])\s*/g, "$1") // remove trailing separator spaces | |
.replace(/\};+/g, "}") // remove unnecessary separators | |
.replace(/([^:;{}])}/g, "$1;}") // add trailing separators | |
} |
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
('HTMLCanvasElement' in this) && (function () { | |
HTMLCanvasElement.prototype.trim = function (opts) { | |
opts = opts || {}; | |
var | |
element = this, | |
bound = { | |
top: null, | |
left: null, | |
right: null, |