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
@mixin build-class($class, $min: 0, $max: 100, $orientation: 'small', $type: 'normal') { | |
.luna-#{$class}-#{$orientation} { | |
color: blue; | |
} | |
} | |
@include build-class('test', 'large'); |
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 Open JSON | |
// @version 1.0.0 | |
// @description Opens JSON in a json-viewer window | |
// @match http://*/* | |
// @match https://*/* | |
// ==/UserScript== | |
const exec = fn => { | |
const script = document.createElement('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
// Usage: | |
// Put this in a separate file and load it as the first module | |
// (See https://github.com/jrburke/requirejs/wiki/Internal-API:-onResourceLoad) | |
// Methods available after page load: | |
// rtree.map() | |
// - Fills out every module's map property under rtree.tree. | |
// - Print out rtree.tree in the console to see their map property. | |
// rtree.toUml() | |
// - Prints out a UML string that can be used to generate UML | |
// - UML Website: http://yuml.me/diagram/scruffy/class/draw |
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 u.js | |
// @namespace http://zarjay.net/ | |
// @description Utility functions for browser console ninjas | |
// @include * | |
// @version 0.28 | |
// ==/UserScript== | |
exec(function() { | |
// Current version of u.js |
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 Userscript Name | |
// @namespace http://example.com/ | |
// @description Userscript Description | |
// @match http://example.com/* (or @include * to include all pages) | |
// @version 1.0 | |
// ==/UserScript== | |
// Emulate Greasemonkey's unsafeWindow in Chrome | |
window.unsafeWindow = window.unsafeWindow || (function() { |
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 Google Calendar Tasks Killer | |
// @namespace http://zarjay.net/ | |
// @description Removes the "Tasks" item from the "My Calendar" section of Google Calendar | |
// @match https://www.google.com/calendar/* | |
// @version 1.0 | |
// ==/UserScript== | |
// Removes the "Tasks" item from "My Calendar" |
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
/** | |
* Includes the CSS or JS file into the head of the page. | |
* | |
* Examples: | |
* include('http://example.com/script.js') | |
* include('http://example.com/style.css') | |
* include('http://example.com/script.php', 'js') | |
* @param {string} url URL of the CSS or JS file | |
* @param {string} [type] 'css' or 'js' to specify the type of file. | |
* This parameter is optional, but it should be |