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
| # Adds spaces into all .ks files (Kirikiri scenario) in the current directory to make them word wrap | |
| # It throws the output in an out/ folder but doesn't create/replace it so uhh... do that yourself first | |
| # I converted the game's font to some Adobe format with an online converter, | |
| # then took the lines for standard ascii characters and tossed those in metrics.txt | |
| import os, re | |
| WX = [] | |
| def convert(inf, outf): |
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
| // Compile | |
| // gcc flax.c -o flax | |
| // Usage | |
| // ./flax <input file> | |
| // Outputs decompressed data to <input file>.out | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
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 e(char*v){int c=0,p=0; | |
| char d[4096];while(v[c]){switch | |
| (v[c]){case '>':p++;break; | |
| case'<':p | |
| --;break; | |
| case'+':d[p]++;break; | |
| case'-':d[p]--;break;case'.': | |
| putchar(d[p]);break;case',':d[p | |
| ]=getchar();break;case'[':if(!d[ |
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> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define LAYOUT_WIDTH 40 | |
| #define LAYOUT_HEIGHT 10 | |
| typedef unsigned char byte; | |
| typedef unsigned short word; |
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 _GNU_SOURCE | |
| #include <dlfcn.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| void *memset(void*,int,size_t); | |
| void *memcpy(void *to, const void *from, size_t size); | |
| static void * (*myfn_calloc)(size_t nmemb, size_t size); |
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
| /* | |
| * TODO Now: | |
| * Add Saving/loading - DONE! | |
| * Always on top option (maybe button) - DONE! | |
| * Load/Save window - DONE! | |
| * Load from command line argument (and drag deck file onto exe) - DONE! | |
| * Get it to compile on windows again with the GTK stuff - DONE! | |
| * | |
| * TODO V2: | |
| * Preset cards instead of manual typing (Card DB) |
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
| import pygame, sys, random | |
| class circle(): | |
| def __init__(self): | |
| self.x = 20 + random() * 600 | |
| self.y = 500 | |
| self.xsp = 0 | |
| self.ysp = -2 + random() | |
| self.color = Color( | |
| random.randint(0, 255), random.randint(0, 255), |
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
| from os import SEEK_CUR | |
| f = open("everyip6.txt", "w") | |
| b = [0,0,0,0,0,0,0,0] | |
| for b[0] in range(0,0xFFFF): | |
| for b[1] in range(0,0xFFFF): | |
| for b[2] in range(0,0xFFFF): | |
| for b[3] in range(0,0xFFFF): | |
| for b[4] in range(0,0xFFFF): | |
| for b[5] in range(0,0xFFFF): | |
| for b[6] in range(0,0xFFFF): |
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
| f = open("everyip.txt", "w") | |
| for b1 in range(0,255): | |
| for b2 in range(0,255): | |
| for b3 in range(0,255): | |
| for b4 in range(0,255): | |
| f.write("{0}.{1}.{2}.{3}\n".format(b1,b2,b3,b4)) | |
| f.close() |
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
| # Hides values as invisible spaces in strings | |
| # Usage: ht.py e string to encode | |
| # or: ht.py d string to decode (remove formatting) | |
| from random import randint | |
| import sys, re | |
| inv_str = [ u"\uFEFF", u"\uFE00" ] | |
| #inv_str = [ "{TEST}", "{HI}", "{BYE}" ] |
NewerOlder