Skip to content

Instantly share code, notes, and snippets.

View wpccolorblind's full-sized avatar

JJ ROZ wpccolorblind

View GitHub Profile
@vyatri
vyatri / README.md
Last active December 20, 2015 07:38
Twitter titanium oauth javascript to login, logout, tweet, and post photo to twitter

For those who got twitter authentication error:

in your app setting in dev.twitter.com , make sure you fill up callback_url field. Even though it's just a placeholder. Just to verify that you are using browser type app. Also tick "Allow this application to be used to Sign in with Twitter" checkbox. And make sure you have Access_Token generated on "Details" tab

original script ---> https://gist.github.com/rampicos/4320296

how to use ---> http://shareourideas.com/2012/12/18/linkedin-connect-for-appcelerator-titanium/

I modified the original script to be able to work on twitter v1.1 and PIN-based authentication.

@aaronksaunders
aaronksaunders / index.js
Last active September 25, 2019 08:59
Appcelerator Titanium Alloy ListView & Facebook Friends Part Two. Using the ListView template in view.xml. New feature coming in Alloy 1.2
/**
* called when an item in the ListView is clicked; we will get the section
* index, and addition event information
*
* @param {Object} _event
*/
function loadMoreBtnClicked(_event) {
alert('not implemented yet');
}
@FokkeZB
FokkeZB / app.js
Last active May 31, 2024 05:18
Embedding a YouTube video in Titanium
var win = Ti.UI.createWindow();
var webView = Ti.UI.createWebView({
url: 'http://www.youtube.com/embed/' + myVideoID + '?autoplay=1&autohide=1&cc_load_policy=0&color=white&controls=0&fs=0&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0',
enableZoomControls: false,
scalesPageToFit: false,
scrollsToTop: false,
showScrollbars: false
});
@k0sukey
k0sukey / app.js
Created March 14, 2012 14:57
filterablecamera CommonJS style.
filterablecamera = require('filterablecamera').Filterablecamera({
squared: true,
showControls: true,
animated: false,
autohide: true,
saveToPhotoGallery: true,
quality: 'Photo',
backgroundImage: null
});
@soemarko
soemarko / background_demo.js
Created August 30, 2011 10:14 — forked from kosso/background_demo.js
Background Service notification for Titanium
/* Kosso : March 12th 2011
This the only way I managed to do this without the app crashing on resume.
Done slightly differently to the KS example, since they unregister the service and
do not use a setInterval timer.
*/
//############ in app.js :
// test for iOS 4+
@dawsontoth
dawsontoth / app.js
Created June 6, 2011 20:40
Rate my app in Appcelerator Titanium Mobile
/**
* The following snippet will ask the user to rate your app the second time they launch it.
* It lets the user rate it now, "Remind Me Later" or never rate the app.
*/
var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
win.addEventListener('open', checkReminderToRate);
win.add(Ti.UI.createLabel({ text: 'This is a simple app that will remind you to rate it.' }));
win.open();
function checkReminderToRate() {
@jeffrafter
jeffrafter / server.js
Created August 28, 2010 21:37
Twitter OAuth with node-oauth for node.js+express
var express = require('express');
var sys = require('sys');
var oauth = require('oauth');
var app = express.createServer();
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY";
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET";
function consumer() {