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
# 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
// 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
#!/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
-(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
// Kosso imageAsCropped | |
// added to TiBlob.m | |
// requires 4 arguments : x, y, width, height | |
- (id)imageAsCropped:(id)args | |
{ | |
[self ensureImageLoaded]; | |
if (image!=nil) | |
{ | |
ENSURE_ARG_COUNT(args,4); |
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 | |
// perfect for using as an upload php script for the dnd-file-upload scripts by pangratz | |
// found at https://github.com/pangratz/dnd-file-upload | |
class File_Streamer{ | |
private $_fileName; | |
private $_contentLength; | |
private $_destination; | |
public function __construct(){ |
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
// modified version of https://github.com/pangratz/dnd-file-upload by pangratz | |
// modified by : kosso | |
// date : 06 November 2010 | |
// added some options for: | |
// allowMultiple | |
// allowedExtensions | |
// maximumFileSize | |
// also added dragEnter and dragLeave functions to enable change of appearance of the dropzone |
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_UIDASHBOARDVIEW | |
#import "TiUIDashboardView.h" | |
#import "TiUtils.h" |
OlderNewer