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
$names=["demisexual"] | |
$description="The Demisexual pride flag" | |
// Unknown creator. Maybe research further? | |
$textcolor=$black | |
// The trick here is that we define the top&bottom colors twice, so this ends up looking like we have variable heights | |
$center_stripe = RGB(110, 0,112) | |
$bottom = RGB(210,210,210) | |
vertical{ |
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 struct, os, sys,array, glob, itertools, argparse | |
from PIL import Image | |
A8SIGNATURE =0xA0A1A2A3 | |
COMPRESS_NONE = 0 | |
COMPRESS_RLE = 1 | |
COMPRESSION_FORMATS=(COMPRESS_NONE, COMPRESS_RLE) | |
ESCAPE_CODE = 0 |
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 struct,sys,os | |
name=sys.argv[1] | |
class AllBitsTester(object): | |
def __init__(self): | |
self.allbits =0 | |
def test(self, x): | |
self.allbits|=x | |
def completed(self): | |
return self.allbits == 1023 | |
def message(self): |
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
{ | |
"wordlist": { | |
"A": { | |
"trailers": [0], | |
"flags": ["NEGATIVE MATCH"], | |
"replacement_offset": 1, | |
"replacement_word": "TAIL" | |
}, | |
"A CONDOM": { | |
"trailers": [0], |
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 os,glob,sys | |
images=glob.glob(sys.argv[1]) | |
images.sort() | |
if (len(images)&1) == 1: | |
print("Odd number of items! Can't split") | |
sys.exit(1) | |
midpoint = len(images)//2 | |
first_half = images[:midpoint] | |
last_half = images[midpoint:][::-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
import struct,glob | |
def readFilename(f): | |
data='' | |
while '.' not in data: | |
data=data+f.read(1) | |
data=data+f.read(3) | |
return data | |
for path in glob.glob('GL00_*.*'): | |
print path | |
with open(path,'rb') as f: |
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/python | |
import pygame | |
from pygame.constants import * | |
import sys,re | |
lines=[] | |
dots=[] | |
offset=[0,0] | |
def build_re(start,args): | |
return re.compile('^({})'.format(start) + (r'(?:[\s,]+)([-.\d]+)'*args)) | |
def anymatch(line,regexes): |
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
e -50 100 14 1 | |
e 0 16 3 7 | |
e -1 17 2 11 | |
e 3 11 4 4 | |
e 15 25 3 9 | |
e 18 23 7 7 | |
e 18 25 14 14 | |
e 18.2 25.2 14 14 | |
e 18.6 25.2 14 14 | |
e 1 14 0 7 |
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
/* | |
* Device Tree overlay for 2x ili9341 2.2" | |
* | |
*/ | |
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; |
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 struct,sys,os | |
name=sys.argv[1] | |
class AllBitsTester(object): | |
def __init__(self): | |
self.allbits =0 | |
def test(self, x): | |
self.allbits|=x | |
def completed(self): | |
return self.allbits == 1023 | |
def message(self): |
NewerOlder