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 search tweaks | |
// @description Shortcuts for selecting search results. Block ads and sponsored links. | |
// @author Viktor Qvarfordt | |
// @include /^https?:\/\/(www\.)?google.[^./]+\/search.*/ | |
// @version 2016-08-21 | |
// @grant none | |
// ==/UserScript== | |
// INSTALL: https://gist.github.com/ViktorQvarfordt/1d81cbf5a5bebbaaee90/raw/google-search-tweaks.user.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 MathJax Trello | |
// @description Apply Mathjax to Trello | |
// @include https://trello.com/* | |
// @grant none | |
// ==/UserScript== | |
// INSTALL: https://gist.githubusercontent.com/ViktorQvarfordt/c3f89c3cf50e3dc60b23257294af5710/raw/trello-mathjax.user.js | |
if (window.MathJax === undefined) { |
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
import sublime, sublime_plugin | |
import sys, io, re | |
class LatexToUnicode(sublime_plugin.TextCommand): | |
def run(self, edit, latex=None): | |
if not latex: | |
if self.view.sel()[0].begin() == self.view.sel()[0].end(): | |
region = self.view.line(self.view.sel()[0]) | |
else: | |
region = self.view.sel()[0] |
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
// VanillaJS convenience methods for making HTTP requests. | |
window.http = (() => { | |
const logger = (err, data) => { | |
console.log(err || data) | |
} | |
const handleResponse = (req, cb) => { | |
let data |