Skip to content

Instantly share code, notes, and snippets.

View Astrovic's full-sized avatar

Vittorio Sorbera Astrovic

View GitHub Profile
@Astrovic
Astrovic / ti.admob_banner_example.js
Created October 7, 2019 14:40
ti.admob banner example
var win = Ti.UI.createWindow();
// then create an adMob view
var adMobView = Admob.createBannerView({
adUnitId: "ca-app-pub-3940256099942544/6300978111",
testing:false, // default is false
//top: 10, //optional
//left: 0, // optional
//right: 0, // optional
bottom: 0, // optional
@Astrovic
Astrovic / titanium_upload_test.js
Last active July 23, 2019 10:52
Titanium upload test
var win = Ti.UI.createWindow();
var progress = Ti.UI.createProgressBar({
width:200,
min:0,
max:1,
value:0,
tintColor : "red"
});
win.add(progress);
const { createStore, combineReducers } = Redux;
// ACTIONS CONST
const ADD_TODO = 'ADD_TODO';
const TOGGLE_TODO = 'TOGGLE_TODO';
const DELETE_TODO = 'DELETE_TODO';
const SET_VISIBILITY_FILTER = 'SET_VISIBILITY_FILTER';
// ACTIONS CREATOR
// TODOLIST AC