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
#include "UnityView.h" | |
#include "iPhone_View.h" | |
#include "iPhone_OrientationSupport.h" | |
#include "Unity/UnityInterface.h" | |
#include "Unity/GlesHelper.h" | |
#include "Unity/DisplayManager.h" | |
extern void UnitySendTouchesBegin(NSSet* touches, UIEvent* event); | |
extern void UnitySendTouchesEnded(NSSet* touches, UIEvent* event); |
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 | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 <file.json> [file2.json...]" | |
exit -1 | |
fi | |
CLEANJSON=`which cleanjson` | |
if [ "$CLEANJSON" = "" ]; then | |
echo "Please install cleanjson and ensure it's on your PATH" |
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 | |
SITEMAP=$1 | |
if [ "$SITEMAP" = "" ]; then | |
echo "Usage: $0 http://domain.com/sitemap.xml" | |
exit 1 | |
fi | |
XML=`wget -O - --quiet $SITEMAP` |
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 | |
set -e | |
APP=$1 | |
APP_ARG="" | |
if [ "$APP" != "" ]; then | |
APP_ARG=" -a $APP" | |
fi |
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
<a href="javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.3.2",function($,L){var max_area = 0, src = ""; $('img').each(function(idx, img) { var a = $(img).height() * $(img).width(); if (a > max_area) { src = img.src; max_area = a; } } ); if (src) document.location = src;});">Show Largest Image</a> (click link or drag to your bookmarks bar) |
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
<?php | |
$opt_arr = array( | |
'u' => 'user', | |
'p' => 'pass', | |
'h' => 'host', | |
'd' => 'dbname', | |
't' => 'table_prefix', | |
'b' => 'base_url', | |
's' => 'secure_url', |
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 | |
import os | |
import re | |
import subprocess | |
import sys | |
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)') | |
CHECKS = [ |
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
from fabric.api import env, run | |
from fabric.contrib.project import rsync_project | |
try: | |
from fabfile_local import * | |
except ImportError, e: | |
environments = { | |
"dev": { | |
"hosts": ["localhost"], | |
}, |
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
-- Path of script: | |
-- tell application "Finder" to get POSIX path of ((container of (path to me)) as text) | |
-- Foreground Finder window: | |
tell application "Finder" to get POSIX path of ((the target of the front window) as text) | |
set currDir to quoted form of result | |
set cmdBase to "find " & currDir & " \\( -name \\*.m3u -or -name \\*.pls \\)" | |
set cmdList to cmdBase & " -exec basename {} \\;" | |
set cmdCount to cmdBase & " | wc -l" |
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 | |
locales = ["en", "fr", "it", "de", "es"] | |
dev_locale = "en" | |
base_dir = "ProjectSourceDirectory" | |
nibs = [ | |
"MainWindow.xib", | |
"Error/ErrorViewController.xib", | |
"Home/HomeViewController.xib", | |
"Home/SettingsViewController.xib", |