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
| EXEC=test | |
| all: | |
| cd src; make | |
| mv src/$(EXEC) ./ | |
| clean: | |
| rm -f src/*.o $(EXEC) | |
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
| sTable = [ | |
| [' ', 'W', 'I', ' ', ' ', 'D', ' ', ' ', 'A'], | |
| ['D', ' ', 'F', ' ', 'W', ' ', ' ', 'O', ' '], | |
| ['R', 'S', ' ', ' ', ' ', ' ', ' ', ' ', ' '], | |
| [' ', ' ', 'D', 'F', ' ', 'A', ' ', ' ', 'O'], | |
| [' ', 'A', 'O', ' ', ' ', ' ', 'D', 'R', ' '], | |
| ['S', ' ', ' ', 'E', ' ', 'O', 'A', ' ', ' '], | |
| [' ', ' ', ' ', ' ', ' ', ' ', ' ', 'A', 'W'], | |
| [' ', 'F', ' ', ' ', 'A', ' ', 'O', ' ', 'I'], | |
| ['A', ' ', ' ', 'W', ' ', ' ', 'R', 'F', ' '] |
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/python | |
| ###--# Sample Tokenizer Script for Assignment4 (BGU) | |
| # Author: IceDragon <icedragon@quickfox.org> | |
| # Contact: http://www.icerealm.org/contact | |
| # | |
| # Define a function that returns a list of tokens (i.e.: ['a', '=', '3', ...]) | |
| def tokenize(filename): | |
| # Open file and read all the data into the memory. |
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 sys import argv | |
| from random import shuffle | |
| def scrambleWord(w): | |
| i = len(w) - 1 | |
| # If it's a zero-length string, return it right away. | |
| if i < 0: | |
| return w | |
| else: | |
| # Handle non-alphabetical characters after the 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
| from sys import argv | |
| from random import shuffle | |
| def scrambleWord(w): | |
| i = len(w) - 1 | |
| # If it's a zero-length string, return it right away. | |
| if i < 0: | |
| return w | |
| else: | |
| # Handle non-alphabetical characters after the 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
| # Import a [large] group of UTF-8-encoded VCF files into a single | |
| # "<name>\t<phone>\r\n" text file for use with Excel or other programs. | |
| # | |
| # Requires: vobject (which requires dateutil) | |
| # | |
| # Author: IceDragon <icedragon@quickfox.org> | |
| # http://www.icerealm.org/contact | |
| import vobject | |
| from glob import glob |
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/python | |
| # Syntax: python puzzle.py datafile.txt | |
| # | |
| # SAMPLE DATA FILE CONTENTS: | |
| # | |
| # yR#r#### | |
| # # # # | |
| # rS#Y#E R | |
| # # # # |
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
| # .-=[ heimtest.py ]========================================================-. # | |
| # | Furcadia Heimdall Testing Script (c) 2007 by IceDragon of QuickFox.org | # | |
| # |--------------------------------------------------------------------------| # | |
| # | This script has the capability to automatically check for the status of | # | |
| # | Furcadia heimdalls and report back which one is linked to a horton and | # | |
| # | which ones are solo and may need to be reconnected. This provides for an | # | |
| # | automatic solution for an otherwise rather tedious work. | # | |
| # | Requirements: | # | |
| # | - Extended `which capability provided to Lvel100+ bugge hunters! | # | |
| # |--[ Changelog ]-----------------------------------------------------------| # |
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
| using System; | |
| using System.Text; | |
| namespace Furcadia | |
| { | |
| public class Base220 : IComparable<uint>, IEquatable<uint> | |
| { | |
| public const byte CHAR_OFFSET = (byte)'#'; | |
| public const byte BASE = 220; | |
| public uint 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
| /* Routines to handle `mysqldump' invocations. | |
| * | |
| * (C) 2009 QuickFox.org | |
| * | |
| */ | |
| #include "services.h" | |
| /*************************************************************************/ |