This file contains hidden or 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 bisect, sys | |
def point(entry): | |
return tuple([float(value) for value in entry.split(',')])[0:2] | |
def normalize(value, max_value): | |
return value * (1.0 / max_value) |
This file contains hidden or 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> /??/ | |
*int (func_p)(); *??/ | |
/ int y = 0xDE; | |
??=define p(i) ??/ | |
printf("%x\n", i); // ??\ | |
??=define p(i) func_p (*bar)(i)??/ | |
??=define p(i) prinf("\n%y\n", bar); | |
??=define l(y, func_p) (y << (func_p * 8)) | |
int main(int a, char* v??(??)) ??< | |
int i = ??-(l(0x21, 3) ??! l(0x52, 2) ??! l(0x41, 1) ??! 0x10); p(i); ??> |
This file contains hidden or 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 re, os | |
SEARCH_PATTERN = '^(\s*)\/>\s*<Platform\s*Name=\"WexEVM \(ARMV4I\)\"\s*\/>\s*$' | |
REPLACE_PATTERN = r'\1/>' | |
pattern = re.compile(SEARCH_PATTERN, re.MULTILINE) | |
for (dirpath, dirnames, filenames) in os.walk('.'): |
This file contains hidden or 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
# Define a few colors for later use. The escaped brackets tell bash that they | |
# are non-printable and keep word-wrapping sane. | |
TXT_RED='\['`tput setaf 1`'\]' | |
TXT_GREEN='\['`tput setaf 2`'\]' | |
TXT_RESET='\['`tput sgr0`'\]' | |
# Build a prompt decorator if we're in a hg repo. The branch name is included | |
# in green if the branch is default, red otherwise. A symbol appears if the | |
# working directory is not clean. This uses Steve Losh's excellent hg-prompt |
This file contains hidden or 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
# Define a few colors for later use. The escaped brackets tell bash that they | |
# are non-printable and keep word-wrapping sane. | |
TXT_RED='\['`tput setaf 1`'\]' | |
TXT_GREEN='\['`tput setaf 2`'\]' | |
TXT_RESET='\['`tput sgr0`'\]' | |
# Build a prompt decorator if we're in a git repo. The branch name is included | |
# in green if the branch is master, red otherwise. An asterisk appears if the | |
# working directory is not clean. |