Skip to content

Instantly share code, notes, and snippets.

function GM_openInTab(_url) {
self.port.emit("GM_openInTab", _url);
};
function GM_setValue(_name, _value) {
localStorage[_name] = _value;
};
function GM_getValue(_name, _default) {
if (localStorage[_name] === null && _default === null) return undefined;
http://www.daniweb.com/software-development/python/tutorials/238590/simple-threading-tutorial
http://effbot.org/zone/thread-synchronization.htm
http://www.laurentluce.com/posts/python-threads-synchronization-locks-rlocks-semaphores-conditions-events-and-queues/
Add a new thread
Thread is scanned, and every image is added to a temp list (?)
Once the temp list if filled, lock global list
add links
release lock
import argparse
import os
import re
import threading
import urllib
import requests
import sys
urls = []
global stop
@Spittie
Spittie / GameOfLive2.py
Last active August 29, 2015 13:56
Ghetto game of life
from blessings import Terminal
import numpy
import time
import sys
t = Terminal()
with t.fullscreen():
#h = t.height
#w = t.width
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.3.9
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @license MIT; https://github.com/Spittie/4chan-x/blob/master/LICENSE
// @match *://boards.4chan.org/*
{
"name": "4chan X",
"version": "1.3.10",
"manifest_version": 2,
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.3.10
// @minGMVer 1.13
// @minFFVer 26
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @license MIT; https://github.com/Spittie/4chan-x/blob/master/LICENSE
// @match *://boards.4chan.org/*
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.3.10
// @minGMVer 1.13
// @minFFVer 26
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @license MIT; https://github.com/Spittie/4chan-x/blob/master/LICENSE
// @match *://boards.4chan.org/*
import pygame
class Game(object):
def __init__(self, height=640, width=480, fps=60):
self.height = height
self.width = width
self.fps = fps
pygame.init()
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.4.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
// @description Cross-browser userscript for maximum lurking on 4chan.
// @license MIT; https://github.com/Spittie/4chan-x/blob/master/LICENSE
// @match *://boards.4chan.org/*