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 | |
import sys | |
from PIL import Image | |
def rgb_rgba_cmp(a, b): | |
if a[0] != b[0]: | |
return False | |
if a[1] != b[1]: | |
return False | |
if a[2] != b[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
#You may have to tweak some things here | |
CC = gcc | |
CXX = g++ | |
FLAGS = -I/usr/include/python2.7 | |
CFLAGS = | |
CXXFLAGS = | |
LDFLAGS = | |
#Do not change anything beyond this point | |
CXXFLAGS += -std=c++11 |
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 python2 | |
from PIL import Image | |
import sys | |
import struct | |
def r8(f): | |
return ord(f.read(1)) | |
if len(sys.argv) <= 2: | |
print("Usage: %s <input> <output>" % sys.argv[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
#!/bin/bash | |
set -e | |
ffbuild_conf=~/.config/ffbuild.conf | |
nobuild=0 | |
noextract=0 | |
usage () { | |
echo "Usage: ffbuild.sh [options]" |
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 | |
import sys | |
from PIL import Image | |
FCT = 8 | |
def diff2(a, b): | |
return abs(a-b) | |
def avg3(a, b, c, d=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
#!/usr/bin/env python | |
from PIL import Image | |
import sys | |
l_code = { | |
0: '0001101', | |
1: '0011001', | |
2: '0010011', | |
3: '0111101', | |
4: '0100011', |
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
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <map> | |
#include <list> | |
#include <utility> | |
#include <stdlib.h> // for exit() | |
#include <vector> | |
template <typename T, typename U> class create_map { |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Cydia package control file Generator</title> | |
<style type="text/css"> | |
* { | |
font-family: sans-serif; | |
} | |
input { | |
border-radius: 6px; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <stdarg.h> | |
#include <stdbool.h> | |
// Link this with a libselinux.so from your Android device |
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
#!/bin/bash -e | |
### config ### | |
numbered=1 | |
force_artwork="./-52743546503191174.jpeg" | |
############## | |
getxml () { | |
grep -F -A1 "<key>$1<" -- "$file" | sed -rn 's/.*<(string|integer)>(.+)<.*/\2/p' | |
} |