Skip to content

Instantly share code, notes, and snippets.

$('#order-history td:nth-child(7):contains(AUD)').map((i,e) => Number(e.getAttribute('data-raw'))).toArray().reduce((next, total) => total + next, 0)
import xml.etree.ElementTree as ET
import urllib.request, urllib.parse, urllib.error
import json
import re
import os, subprocess, shutil
downloaded_album_art = {}
M4A_FOLDER = 'm4a/'
IMG_FOLDER = 'img/'
MP3_FOLDER = 'mp3/'
@rissole
rissole / text
Last active November 9, 2015 22:00
ultra variety memes
(420) (yeah) (chucknorris) (donotwant) (wololo) (troll) (notbad) (nothingtodohere) (awesome) (iseewhatyoudidthere) (badass) (badpokerface) (badtime) (feelsbadman) (feelwithit) (facepalm) (sonic)
(haha) (notawesome) (fwp) Sorry, I just dropped my Ultra Variety Pack™ of Memes (fuckyeah) (excellent) (gangnamstyle)
(awyeah) (cereal) (rainbowdoge) (cerealspit) (rainbowdrool) (1up) (emg) (success) (pbj) (phrasing) (grumpycat) (scumbag) (aliens) (ohcrap) (ohgodwhy) (giggity) (sap)
@rissole
rissole / gist:d4493908f1b70e1ac065
Created March 5, 2015 22:38
they call them hackathons for a reason
$('div.feed-item').click(function() {
var url = $(this).attr('data-url');
var $veil = $('<div style="width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 99; background-color: rgba(0,0,0,0.5);">');
var $frame = $('<iframe style="position: absolute; background-color: #fff; box-shadow: 0 0 3em #333; z-index: 100;">');
$frame.attr('src', url);
var $body = $('body');
var w = $body.width() * 0.8;
var h = $body.height() * 0.8;
$frame.css('width', w);
$frame.css('height', h);
@rissole
rissole / tinytext
Last active August 29, 2015 14:15
Make tiny text gags. Just run in console then use tinytext('string') to make tiny. Only input lowercase letters a-z or space. q doesn't work either.
small = 'ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ q ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ'.split(' '); tinytext = function(s) { return s.split('').map(function(c) { return c == ' ' ? ' ' : small[c.charCodeAt(0)-97] }).join('') }
@rissole
rissole / sellomatic_main
Created November 22, 2014 10:48
SellOMatic Lua file cleaned up & fixed
SellOMatic = LibStub("AceAddon-3.0"):NewAddon("SellOMatic", "AceEvent-3.0", "AceConsole-3.0");
local L = LibStub("AceLocale-3.0"):GetLocale("SellOMatic");
-- Addon variables
local SOMNone, merchant;
function SellOMatic:OnInitialize()
SellOMatic:Create_SOMNone();
end;
@rissole
rissole / twitch_emotes_alt_text.user.js
Created September 8, 2014 02:21
Puts alt text on twitch emote images. Credit to http://twitchemotes.com/
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name Twitch Emotes Alt Text
// @namespace rissole
// @description Puts alt text on twitch emote images. Credit to http://twitchemotes.com/
// @include http://www.twitch.tv/*
// @version 1
// @grant none
// ==/UserScript==
EMOTES = {"http://static-cdn.jtvnw.net/jtv_user_pictures/chansub-global-emoticon-a5293e92212cadd9-21x27.png": "BlargNaut", "http://static-cdn.jtvnw.net/jtv_user_pictures/emoticon-3412-src-76b6e3c79b31b696-28x28.png": "PeoplesChamp", "http://static-cdn.jtvnw.net/jtv_user_pictures/chansub-global-emoticon-521420789e1e93ef-18x27.png": "PazPazowitz", "http://static-cdn.jtvnw.net/jtv_user_pictures/emoticon-9809-src-52738249ed340b6a-28x28.png": "AtGL", "http://static-cdn.jtvnw.net/jtv_user_pictures/chansub-global-emoticon-ccaf06d02a01a804-24x30.png": "ShazBotstix", "http://static-cdn.jtvnw.net/jtv_user_pictures/chansub-global-emoticon-5342e829290d1af0-17x27.png": "UleetBackup", "http://static-cdn.jtvnw.net/jtv_user_pictures/emoticon-5248-src-914192574ba
@rissole
rissole / fbg.user.js
Created September 8, 2014 01:37
[Facebook Gags Collection]: Master script
// ==UserScript==
// @name Facebook Gags Master
// @namespace gags
// @description Gag factory. But seriously, OnMessageReceived hook for Facebook.
// @include https://www.facebook.com/
// @include https://www.facebook.com/?*
// @version 1
// @grant none
// ==/UserScript==
@rissole
rissole / fbg_ziiip.user.js
Created September 8, 2014 01:36
[Facebook Gags Collection]: ziiip -> Rust zip sound
// ==UserScript==
// @name Facebook Gags: ziiiip
// @namespace gags
// @description ziiip -> Rust zip sound
// @include https://www.facebook.com/
// @include https://www.facebook.com/?*
// @require http://pastebin.com/raw.php?i=2GyZd2Dy
// @version 1
// @grant none
// ==/UserScript==
@rissole
rissole / fbg_drop.user.js
Created September 8, 2014 01:35
[Facebook Gags Collection]: [drop] -> wub wub wub wub
// ==UserScript==
// @name Facebook Gags: [drop]
// @namespace gags
// @description [drop] -> wub wub wub wub
// @include https://www.facebook.com/
// @include https://www.facebook.com/?*
// @require http://pastebin.com/raw.php?i=2GyZd2Dy
// @version 1
// @grant none
// ==/UserScript==