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
"""Generates a rectangular, randomized field of characters. | |
Intended to be used in a pathfinding discussion in the Dwarf Fortress | |
forums: http://www.bay12forums.com/smf/index.php?topic=76278 | |
Author: Erik Youngren <[email protected]> | |
License: Any GNU compatible license. | |
""" | |
import random |
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
"""A quick sanitization module. | |
Released under None. | |
You didn't receive a copy of None with this module. If you search for | |
it, I'm sure you'll locate a copy somewhere. Any version will do. Pick | |
one that's good for you. | |
If you think a different license would suit your needs better, please | |
do not send me an email at None. In the event that I am disinclined to |
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
--- | |
guard2: | |
appearance: | |
obj_path: Data/Objects/IDF_Characters/IGF_ | |
skeleton: Data/Seletons/r_rig.xml | |
animations: | |
idle: Data/Animations/r_idle2.xml | |
jump: Data/Animations/r_jump.xml | |
roll: Data/Animations/r_roll.xml | |
movement: Data/Animations/r_movement.xml |
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
[alias] | |
ignore = "!f() { echo \"$1\" >> .gitignore; echo \"git: ignoring: $1\";}; 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
pymunk |
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
#! /bin/bash | |
# Watches a file for changes and executes a command every time it does. | |
# Need to enclose COMMAND in quotes, script dumbly calls $2. | |
# | |
# USE: | |
# exec-changes FILENAME COMMAND | |
LAST=`stat -c '%Y' $1` |
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 __future__ import division | |
from random import uniform | |
from pyglet import clock, font, image, window | |
from pyglet.gl import * | |
class Entity(object): | |
def __init__(self, id, size, x, y, rot): | |
self.id = id |
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<iostream> // for toupper() | |
#include<cstring> // for strlen() | |
using namespace std; | |
int main() { | |
char ch[] = "Character Array"; | |
// get the length of the | |
int len = strlen(ch); |
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
/** | |
* A LessCSS version of the 960 Grid System | |
* | |
* http://lesscss.org/ | |
* http://960.gs/ | |
*/ | |
/********************************************************************* | |
* Settings * | |
*********************************************************************/ |
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
# This doesn't really do anything outside of post a text label at the | |
# lower left hand corner of #the screen right now. | |
from pyglet import window, font | |
class as_pyglet_text(object): | |
""" Decorator class | |
Modifies a function that returns a value (or tuple of values,) | |
to output to a pyglet window via a font.Text object. |