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 | |
''' | |
print_win32_vector.py | |
This extension will generate vector graphics printout, specifically for Windows GDI32. | |
Copyright (C) 2012 Alvin Penner, [email protected] | |
This is a modified version of the file dxf_outlines.py by Aaron Spike, [email protected] | |
It will write only to the default printer. | |
The printing preferences dialog will be called. |
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 tropo | |
coroutines = {} | |
def prompt_text(self, prompt, number): | |
""" | |
initiate a conversation with <phone>, asking a prompt | |
(merely pings the outbound session endpoint) | |
""" |
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
@interface VideoSpriteBatchNode: CCSpriteBatchNode | |
{ | |
AVURLAsset *asset; | |
AVAssetTrack *videoTrack; | |
AVAssetReader *assetReader; | |
AVAssetReaderTrackOutput *trackOutput; | |
} | |
@property(nonatomic,retain) AVURLAsset *asset; | |
@property(nonatomic,retain) AVAssetTrack *videoTrack; | |
@property(nonatomic,retain) AVAssetReader *assetReader; |
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/sh | |
# redis-servefile port filename | |
# serves a redis dump.rdb file on the specified port | |
port=$1 | |
file=$2 | |
rundir=`mktemp -d` | |
ln -s $file $rundir |
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 time | |
import atom | |
import gdata | |
import gdata.calendar | |
import gdata.calendar.service | |
def GetCalendarByTitle(calendar_service, title): | |
feed = calendar_service.GetAllCalendarsFeed() | |
calendar = [entry for entry in feed.entry if entry.title.text == title][0] |
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
# copyright 2010 Eric Gradman | |
# free to use for any purpose, with or without attribution | |
# from an algorithm by James McNeill at | |
# http://playtechs.blogspot.com/2007/04/hex-grids.html | |
# the center of hex (0,0) is located at cartesian coordinates (0,0) | |
import numpy as np | |
# R ~ center of hex to edge |
NewerOlder