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
-(void)createGIF:(id)args | |
{ | |
//NSURL *filename = [NSURL URLWithString:[args objectAtIndex:0]]; | |
NSString *filename = [args objectAtIndex:0]; | |
NSArray *images = [args objectAtIndex:1]; | |
float delay = [TiUtils floatValue:[args objectAtIndex:2]]; | |
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 | |
""" | |
QT Rotate | |
========= | |
Detect Rotated Quicktime/MP4 files. This script will spit out a rotation | |
angle if one can be found. It can also write an new rotation angle. | |
NOTE that translation info will be LOST if a new rotation angle is written. |
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
// untested.. | |
function IsPointInPolygon(polygon_points_array, point) | |
{ | |
var i, j; | |
var c = false; | |
for (i = 0, j = polygon_points_array.length - 1; i < polygon_points_array.lengtht; j = i++) | |
{ | |
if ((((polygon_points_array[i].lat <= point.lat) && (point.lat < polygon_points_array[j].lat)) |
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
# Add multimedia source | |
echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install deb-multimedia-keyring # if this aborts, try again | |
apt-get update | |
# Go to local source directory | |
cd /usr/local/src |
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
http://www.darpa.mil/OpenCatalog/index.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
/** | |
* Appcelerator Titanium Mobile | |
* Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved. | |
* Licensed under the terms of the Apache Public License | |
* Please see the LICENSE included with this distribution for details. | |
*/ | |
#ifdef USE_TI_MEDIA | |
#import "MediaModule.h" | |
#import "TiUtils.h" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /> | |
<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" /> | |
<title>responsive testing</title> | |
<style> |
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
-(NSString*)getNormalizedPath:(NSString*)source | |
{ | |
// NOTE: File paths may contain URL prefix as of release 1.7 of the SDK | |
if ([source hasPrefix:@"file:/"]) { | |
NSURL* url = [NSURL URLWithString:source]; | |
return [url path]; | |
} | |
// NOTE: Here is where you can perform any other processing needed to | |
// convert the source path. For example, if you need to handle |
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
var NappDrawerModule = require('dk.napp.drawer'); | |
function createAPIExampleWindow(){ | |
var win = Ti.UI.createWindow({ | |
barColor:"#996633", | |
fullscreen:false, | |
translucent:false, | |
statusBarStyle:Ti.UI.iPhone.StatusBar.LIGHT_CONTENT, | |
navTintColor:'white' |
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
/* | |
Fun with NavigationWindow! | |
creates random coloured windows which create buttons which create random coloured windows which create buttons which... | |
you get the picture ;) | |
Required : Titanium SDK 3.1.3 or higher. | |
Kosso |