Skip to content

Instantly share code, notes, and snippets.

View ViktorQvarfordt's full-sized avatar

Viktor Qvarfordt ViktorQvarfordt

View GitHub Profile
@ViktorQvarfordt
ViktorQvarfordt / http.js
Created December 31, 2017 01:40
VanillaJS HTTP Requests
// VanillaJS convenience methods for making HTTP requests.
window.http = (() => {
const logger = (err, data) => {
console.log(err || data)
}
const handleResponse = (req, cb) => {
let data
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]
@ViktorQvarfordt
ViktorQvarfordt / trello-mathjax.user.js
Last active January 22, 2019 18:18
Apply Mathjax to Trello
// ==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) {
@ViktorQvarfordt
ViktorQvarfordt / google-search-tweaks.user.js
Last active March 9, 2024 14:57
Google search tweaks. User script. Shortcuts for selecting search results. Block ads and sponsored links.
// ==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