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
/// init | |
/// build grid | |
g = new Array(); | |
g[0] = new Array(); | |
g[1] = new Array(); | |
/// do grids |
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 | |
# encoding: utf-8 | |
""" | |
yodogg.py | |
Created by FI$H 2000 on 2011-09-02. | |
Copyright (c) 2011 Objects In Space And Time, LLC. All rights reserved. | |
""" |
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 | |
# encoding: utf-8 | |
# cython: profile=True | |
""" | |
processors.pyx | |
Cython alternative implementations of some of the ImageProcessors from imagekit.processors. | |
Created by FI$H 2000 on 2011-10-06. | |
Copyright (c) 2011 Objects In Space And Time, LLC. All rights reserved. |
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 | |
# encoding: utf-8 | |
""" | |
pyascii.py | |
Render an image as ASCII art using PyGame. | |
Originally by tommih: | |
http://tommih.blogspot.com/2009/01/image-to-ascii-art-with-python.html |
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
def clear_exif_data(self, **kwargs): # signal, sender, instance | |
""" | |
Stores ICC profile data in the field before saving, and refreshes | |
the profile hash if an ICCHashField has been specified. | |
""" | |
instance = kwargs.get('instance') | |
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
import sys, os, uuid, tempfile | |
from django.core.management import call_command | |
def main(): | |
# create /tmp/log with default bitmask of 0777 | |
os.makedirs('/tmp/log') | |
# |
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/sh | |
# | |
# where are we? | |
# courtesy http://stackoverflow.com/a/246128/298171 | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | |
DEST=/tmp/ovst2-$$ |
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
class TaggedQuerySet(JSONQuerySet): | |
count_re = re.compile(r'(select) (distinct) (.+) (count)(.*)(group by)(.+)(asc)$', flags=re.S|re.I|re.M) | |
@delegate | |
def tagged(self, name=None): | |
""" Return a QuerySet of the model instances tagged with the named tag. """ | |
if name: | |
try: | |
t = tags.Tag.objects.filter(name=name).get() |
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
ASIO-OTUS:tmp$ brew -v upgrade | |
Homebrew 0.8.1 | |
==> Upgrading 2 outdated packages, with result: | |
gearman 0.28, gearman-php 1.0.1 | |
==> Upgrading gearman | |
==> Downloading http://launchpad.net/gearmand/trunk/0.28/+download/gearmand-0.28.tar.gz | |
File already downloaded in /Users/fish/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/fish/Library/Caches/Homebrew/gearman-0.28.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/gearman/0.28 | |
./configure --prefix=/usr/local/Cellar/gearman/0.28 |
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
ASIO-OTUS:tmp$ brew -v install gifsicle | |
Homebrew 0.8.1 | |
==> Downloading http://www.lcdf.org/gifsicle/gifsicle-1.61.tar.gz | |
/usr/bin/curl -qf#LA Homebrew 0.8.1 (Ruby 1.8.7-249; Mac OS X 10.7.3) http://www.lcdf.org/gifsicle/gifsicle-1.61.tar.gz -o /Users/fish/Library/Caches/Homebrew/gifsicle-1.61.tar.gz | |
######################################################################## 100.0% | |
/usr/bin/tar xf /Users/fish/Library/Caches/Homebrew/gifsicle-1.61.tar.gz | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/gifsicle/1.61 --enable-all | |
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/gifsicle/1.61 --enable-all | |
checking for a BSD-compatible install... /usr/local/bin/ginstall -c | |
checking whether build environment is sane... yes |