Skip to content

Instantly share code, notes, and snippets.

View timoa's full-sized avatar
🚀
Trying to contribute to opensource everyday!

Damien Laureaux timoa

🚀
Trying to contribute to opensource everyday!
View GitHub Profile
@bob-sims
bob-sims / 00-README.TXT
Last active October 1, 2015 09:47
Demo CommonJS module for Titanium Mobile interaction with Drupal Services 3.x REST + JSON interface
This is a simple CommonJS module to wrap Titanium Ti.Network.HttpClient calls to interact with Drupal Services.
NOTE: Code updated at @TiConf using callback functions.
Tested using:
Drupal 6.24
Services 3.1
Titanium Mobile SDK 1.8.2 (Android 2.2 SDK)
@egomez99
egomez99 / Tiapp.xml
Created March 16, 2012 16:30
hardwareAccelerated=true
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<deployment-targets>
<target device="mobileweb">true</target>
<target device="iphone">true</target>
<target device="ipad">true</target>
<target device="android">true</target>
<target device="blackberry">false</target>
</deployment-targets>
<sdk-version>1.9.0.v20120213133135</sdk-version>
@bob-sims
bob-sims / convertImages.sh
Created July 26, 2012 02:10
Automated Build of X-Platform Titanium Splash Screens and Icons
#! /bin/bash
# inspired by Greg McCormick's (@crushmedianet) post
# http://crushmedia.net/2012/04/23/automated-build-of-titanium-iconloading-files/
# updated 4 Aug 2012: creates clipped iPad backgrounds by cropping 768x1024, etc.
# create following base images + save in APPNAME/Resources/:
# appicon-android-512x512.png
@mschmulen
mschmulen / .gitignore
Created August 22, 2012 18:41
Titanium project .gitignore
/build
/modules
/.DS_Store
/.settings
/.project
.DS_Store*
/Resources/.DS_Store*
build.log
@TheBrousse
TheBrousse / tiapp.xml
Created March 10, 2013 16:19
To use Holo theme on Andriod, simply add the following in your tiapp.xml file. You are using a device that does not support this theme, it will fallack to the default theme on 2.x automatically.
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>16</tool-api-level>
<manifest android:installLocation="preferExternal"
android:versionCode="3" android:versionName="1.0.2">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/>
<application android:theme="@android:style/Theme.Holo">
<activity
android:configChanges="keyboardHidden|orientation"
android:name="org.appcelerator.titanium.TiActivity"
android:screenOrientation="portrait"
@ricardoalcocer
ricardoalcocer / index.js
Last active December 16, 2015 16:29
Quick and dirty Appcelerator Alloy + FireFoxOS hack. This sample App works EXACTLY the same on iOS, Android and FirefoxOS.
function onsuccess(data){
var jdata=JSON.parse(data);
var data=[];
jdata.forEach(function(item){
var payload={
tweet:item.text
};
var row=Alloy.createController('tweet.row',payload).getView();
@nuno
nuno / alloy.js
Created December 20, 2013 02:19
FontAwesomeJS for Titanium to be work with: Labels and Buttons. Read first FokkeZB's documentations about the subject, just works :) https://github.com/FokkeZB/FontAwesomeJS
Alloy.Globals.fa = require('fa');
@bob-sims
bob-sims / entypo-map.js
Last active March 21, 2016 17:49
Entypo icon font UTF map as JSON
// parsed from https://github.com/danielbruce/entypo/blob/master/config.yml
[
{
"name": "note",
"code": "0x266a",
"search": [
"music",
"note",
"song"
@raecoo
raecoo / apple-tv-resource.xml
Last active May 5, 2017 07:11
Apple TV built-in resource references
<!--
You can find below the mapping between filenames and name to use in ressource:// path.
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/System/Library/Frameworks/TVMLKit.framework
-->
<badge src="resource://button-cloud" />
<!--
File name => Name to use in resource://path
button-cloud => button-cloud