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
# 8 mod keys and one real key. | |
# Minimalist typing scheme. | |
# Never move your hands off the home row. | |
# Requires https://pypi.python.org/pypi/keyboard/ | |
# EXAMPLE : | |
# For the letter 'A', the binary is 0100 0001 | |
# Hold down 's' and semicolon, and then press Space. |
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
import XMonad | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.Gaps | |
import qualified Data.Map as M | |
import qualified XMonad.StackSet as W | |
myLayoutHook = gaps [(U,30), (R,30), (D,30), (L,30)] $ spacing 20 $ Tall 1 (3/100) (1/2) | |
myKeys conf@XConfig {XMonad.modMask = modMask} = M.fromList $ [ | |
((0, 0x1008FF11), spawn "amixer set Master 2-"), |
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
import pygame, sys, random, colorsys | |
from pygame import gfxdraw | |
from pygame.locals import * | |
pygame.init() | |
canvas = pygame.display.set_mode((750, 750)) | |
center = canvas.get_rect().center | |
pygame.display.set_caption("Visualization") | |
def hsv2rgb(h, s, v): |
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
import curses | |
import curses.ascii | |
from sys import argv | |
def main(screen): | |
global termsize | |
# Startup. | |
screen.clear() | |
curses.start_color() | |
curses.use_default_colors() |
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
/* | |
Using these three functions, start in chrome://settings/passwords | |
*/ | |
function listSites() { | |
var listOfSites = document.getElementById("saved-passwords-list").children; | |
var list = []; | |
for (var i = 0; i < listOfSites.length; i++) { | |
if (listOfSites[i].className != "spacer") | |
list.push(listOfSites[i].children[0].children[0].title); |
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
<?php | |
/* | |
One script to rule them all. | |
*/ | |
/* Simple FizzBuzz */ | |
for ($x = 1; $x <= 100; $x++) { | |
if ($x%3 == 0) echo "Fizz"; | |
if ($x%5 == 0) echo "Buzz"; |
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
import random | |
vocabulary = { | |
"[negative_noun]" : ["whiteknight", "cuck", "jew", "anti-white", "ahmed", "shill"] | |
} | |
templates = [ | |
"you're a [negative_noun]", | |
"fuck off [negative_noun]", | |
"nice try [negative_noun]", |
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
<(\w*) *(?:(\w*)(?:=("[^"]*"|[^"]*) *)?)*>([^<]*)<\/\1> |
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
<script>for(;;)alert()</script> |
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 sys import argv | |
def generatePrimes(words): | |
limit = len(words) ** 2 | |
notPrimes = [] | |
for a in range(3, limit): | |
for b in range(a * 2, limit, a): | |
notPrimes += [b] | |
notPrimes = set(notPrimes) |
NewerOlder