Skip to content

Instantly share code, notes, and snippets.

View hansemannn's full-sized avatar
🗺️

Hans Knöchel hansemannn

🗺️
View GitHub Profile
@kitsunet
kitsunet / Settings.yaml
Last active May 16, 2017 07:24
TYPO3 Flow custom php cli binary
TYPO3:
Flow:
core:
phpBinaryPathAndFilename: '/usr/local/bin/php_cli'
resource:
publishing:
fileSystem:
mirrorMode: copy
@kosso
kosso / MediaModule.m
Created January 18, 2014 05:45
Titanium SDK experimental hack to enable picking animated gifs from the camera roll. Provides 'event.gifmedia' in the success event. (Look for the 'kosso' comments)
/**
* 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"
@floriankugler
floriankugler / gist:6870499
Last active September 29, 2023 15:56
Mapping of NSURLConnection to NSURLSession delegate methods. Created by Mattt Thompson.
NSURLConnection | NSURLSession
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connectionShouldUseCredentialStorage: |
------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------
NSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge: | NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler:
| N
@lcruz
lcruz / example.js
Created August 16, 2013 15:14
Backbone model example in Titanium + Alloy
var collection = Alloy.createCollection("localnote");
collection.fetch({
success : function(){
_.each(collection.models, function(element, index, list){
Ti.API.info(element.get("title"));
});
},
error : function(){
Ti.API.error("hmm - this is not good!");
@mstepanov
mstepanov / app.js
Created March 19, 2013 23:19
Titanium ListView Examples
var rootWin = Ti.UI.createWindow();
var navGroup = Ti.UI.iPhone.createNavigationGroup({
window: rootWin
});
var button = Ti.UI.createButton({
title: 'Open ListView Tests'
});
button.addEventListener('click', function() {
openTestsWindow();
});
@ricardoalcocer
ricardoalcocer / simulatehome.js
Created March 14, 2013 22:52
Simulate Android HOME BUTTON click on Appcelerator Titanium : Sends your app to background
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_MAIN
});
intent.addCategory(Ti.Android.CATEGORY_HOME);
Ti.Android.currentActivity.startActivity(intent);
@jonrmitchell
jonrmitchell / crossPlatformTabbedBar.js
Last active July 1, 2018 12:41
Titanium Module. Android doesn't have a tabbedBar like iOS does, so this was my attempt at duplicating the functionality and API http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.ButtonBar
/**
* Android doesn't have a tabbedBar like iOS does, so this was my attempt at duplicating the functionality and API
* http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.ButtonBar
* @param {Dictionary<Titanium.UI.Button>} params
*/
function createTabbedBar(params) {
if (!params.labels || params.labels.length === 0) {
throw "You must specify button titles in a 'labels' member on the passed in object";
}
@wgx731
wgx731 / PagingControl.js
Created May 19, 2012 06:05 — forked from raulriera/PagingControl.js
Nice Paging control for scrollableViews for Titanium Appcelerator
// Forked from https://gist.github.com/2417902 to fix a small bug
// -----
function PagingControl(scrollableView){
var pages = [];
var page;
var numberOfPages = 0;
// Configuration
var pageColor = "#c99ed5";
var container = Titanium.UI.createView({
@marshall
marshall / app.js
Created January 27, 2011 23:07
Sample proguard configuration for a basic Titanium App
var win = Ti.UI.createWindow({
backgroundColor: 'white',
top: 0, left: 0, right: 0, bottom: 0,
layout: "vertical"
});
var button = Ti.UI.createButton({
title: "click me"
});
win.add(button);