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
from PIL import Image | |
#what image? | |
im = Image.open("./xgCGa.jpg") | |
outdir = "./output/" | |
#define time to match | |
time = 177.0 | |
frametime = .03 | |
#define size of image |
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
# generate a color bank from a file and feed into colorbank.txt | |
#use a mutable set to avoid duplicates | |
from sets import Set | |
colors = Set() | |
#get my colors from the file | |
finlines = open('sourcecolors.txt','r').readlines() | |
#sourcecolors.txt is the page source ripped from http://www.color-hex.com/. | |
for line in finlines: |
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
#aka brain cancer | |
import win32clipboard as clippy | |
def main(): | |
#gotta do this for clip board stuff | |
clippy.OpenClipboard() | |
cliptext = clippy.GetClipboardData() | |
outtext = '' |
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
#! /usr/bin/env python | |
# Justin Woo <moomoowoo@gmail.com> | |
# Usage: | |
# usage: chatbot.py [server] [nick] [channel] | |
# optional: | |
# -h, --help help | |
# required: | |
# [server] server to connect to |
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
#! /usr/bin/env python | |
# Justin Woo <moomoowoo@gmail.com> | |
# ver: dev | |
# Usage: | |
# usage: chatbot.py [server] [nick] [channel] | |
# optional: | |
# -h, --help help | |
# required: |
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 Youtube Feed Filterer | |
// @namespace http://www.github.com/kimagure | |
// @description Filters the Youtube "What to watch" page using discriminants set by the user, namely the age by days of the videos and whether or not they are recommended items. | |
// @include http://www.youtube.com/* | |
// @include http://www.youtube.com/feed/what_to_watch | |
// @exclude http://www.youtube.com/watch?* | |
// @exclude http://www.youtube.com/user/* | |
// @exclude http://www.youtube.com/feed/* | |
// @version dev |
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 Youtube Playlist Masthead Relocator | |
// @namespace http://www.github.com/kimagure | |
// @description moves the playlist mathead so that the "edit playlist" and "video manager" buttons and its bar are in a more sensible place (imo) | |
// @include http://www.youtube.com/playlist?* | |
// @version dev | |
// ==/UserScript== | |
function relocations() { | |
var element = document.getElementById("masthead-subnav"); |
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 Subreddit filter for /r/all | |
// @namespace http://www.github.com/kimagure | |
// @description Filters out unwanted subreddits from /r/all | |
// @include http://www.reddit.com/r/all* | |
// ==/UserScript== | |
bannedwords = [ | |
'porn', | |
'craft' |
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
package steamappidlookup; | |
// doesn't actually help us get any better compiled code | |
// only for testing's sake | |
import java.util.Map; | |
import java.util.HashMap; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
import java.net.URL; | |
import java.net.URLConnection; |
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
from multiprocessing import Process, Lock | |
def f(lock, name, number): | |
for x in range(1,100): | |
lock.acquire() | |
print '%s: %i' % (name, x) | |
lock.release() | |
if __name__ == '__main__': | |
lock = Lock() |
OlderNewer