Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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);
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)
$('#order-history td:nth-child(7):contains(AUD)').map((i,e) => Number(e.getAttribute('data-raw'))).toArray().reduce((next, total) => total + next, 0)