Skip to content

Instantly share code, notes, and snippets.

🚀
More open source for 2019!

Damien Laureaux timoa

🚀
More open source for 2019!
Block or report user

Report or block timoa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@timoa
timoa / 1. Install "code" in your PATH
Last active Aug 29, 2018
Export VisualStudio Code extensions list
View 1. Install "code" in your PATH
https://code.visualstudio.com/docs/setup/mac
@timoa
timoa / custom_theme.xml
Created Jul 10, 2015
Titanium - Android Material Design
View custom_theme.xml
<!-- /platform/android/res/values/custom_theme.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyCustomTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">#86569A</item>
<item name="colorAccent">#FFFFFF</item>
<item name="android:statusBarColor">#86569A</item>
<item name="android:navigationBarColor">#86569A</item>
</style>
</resources>
@timoa
timoa / strings.xml
Last active Dec 31, 2015
Add i18n support to Titanium Mobile app (/i18n/fr/strings.xml)
View strings.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="win1_title">Tab 1</string>
<string name="win1_text">Je suis la fenêtre 1</string>
<string name="win2_title">Tab 2</string>
<string name="win2_text">Je suis la fenêtre 2</string>
</resources>
@timoa
timoa / .bash_profile
Last active Dec 31, 2015
Add Android SDK in PATH (Mac & Linux). Edit ~/.bash_profile
View .bash_profile
export PATH=${PATH}:~/Documents/SDK/android-sdk/tools
View entypo-map.js
// parsed from https://github.com/danielbruce/entypo/blob/master/config.yml
[
{
"name": "note",
"code": "0x266a",
"search": [
"music",
"note",
"song"
@timoa
timoa / tiApp.xml
Created Sep 16, 2012
Appcelerator Titanium Mobile: move Android application on SD card (http://timoa.com/en/2011/09/appcelerator-move-android-application-on-sd-card/)
View tiApp.xml
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>8</tool-api-level>
<manifest android:installLocation="preferExternal">
<uses-sdk android:minSdkVersion="7" />
</manifest>
</android>
@timoa
timoa / var_dump.js
Created Sep 16, 2012
Similar "var_dump()" PHP function with Appcelerator Titanium Mobile (http://timoa.com/en/2012/07/appcelerator-dump-javascript-object-ti-api-debug/)
View var_dump.js
/**
* Debug : var_dump
*
* @var: Var
* @level: Level max
*
*/
function var_dump(_var, _level) {
var dumped_text = "";
if(!_level) _level = 0;
@timoa
timoa / save_file.js
Created Sep 16, 2012
Save file iOS and Android with Appcelerator Titanium Mobile SDK (http://timoa.com/en/2012/07/appcelerator-nativepath-on-ios-and-android/)
View save_file.js
// OS
if(Ti.Platform.osname === 'iPhone' || Ti.Platform.osname === 'iPad') {
var ios = true;
}
/**
* Save file function
*
* @file: Binary file (Blob)
* @filename: Name of file (String)
You can’t perform that action at this time.