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
/** | |
* Fix for system orthographic camera clipping planes not taking into account | |
* scene unit changes from centimeters. | |
*/ | |
global proc foccp_fixOrthoCameraClippingPlanes() { | |
float $offset_amount = 100, | |
$near_clip_plane, | |
$far_clip_plane, | |
$cur_far_clip_plane, | |
$center_of_interest; |
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 "GameScene.h" | |
@implementation GameScene { | |
SKShapeNode *line; // Declaration of the SKShapeNode "line". | |
// I thought storing a starting point was more convenient than calculating it in drawLine:. | |
CGPoint startingPoint; | |
CGFloat lineLength; |
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 is currently just a proof of concept. My OAuth usage requires setting | |
// a cookie client-side (server does not do this) after successful authentication. | |
// AIR runtime does not allow XHR to set cookie header so I had to use AIR's | |
// URLRequest object. | |
// | |
// I imagine you can do the same thing but use jsOAuth.request or something in | |
// place of URLRequest | |
// | |
// http://api.jquery.com/extending-ajax/#Transports |
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 | |
import re | |
import urllib2 | |
log_message = '"%s",%d,"%s"' | |
print('"url","num_of_afrs","zones"') | |
def get_zones(htmldoc): | |
return set(re.findall('<iframe.+?src=["\'].+?afr\.php.+?zoneid=(\d+).*?["\'].+?>',htmldoc)) |
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 | |
import optparse | |
import os | |
import sys | |
# Change this to whatever app you want to open by default. | |
DEFAULT_APP = "Coda" | |
def main(args): |
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 | |
import csv | |
import datetime | |
import xmlrpclib | |
csv_file_path = "campaigns_to_deactivate.csv" | |
username = "" | |
password = "" | |
domain = "" |