Skip to content

Instantly share code, notes, and snippets.

View yozef's full-sized avatar

Joseph yozef

  • Boston - San Francisco - Montréal
View GitHub Profile
@rampicos
rampicos / social.js
Last active January 10, 2019 10:10
Social.js is the Appcelerator Titanium's Alloy Widget at first it is used to connect with Twitter only, though twitter and linkedin uses OAuth for its authentication I made some changes on Social.js for multi-purpose to connect Twitter and LinkedIn
function hex_sha1(s) {
return binb2hex(core_sha1(str2binb(s), s.length * chrsz));
}
function b64_sha1(s) {
return binb2b64(core_sha1(str2binb(s), s.length * chrsz));
}
function str_sha1(s) {
return binb2str(core_sha1(str2binb(s), s.length * chrsz));
@nulltask
nulltask / usage.js
Created April 20, 2012 08:01
XML-RPC client for Titanium Mobile
var xmlrpc = require('./lib/xmlrpc');
var client = xmlrpc.createClient({
url: 'https://api.example.com/XML-RPC'
, username: 'xxxx'
, password: 'xxxx'
});
client
.call('foo.methodName')
@mcongrove
mcongrove / TiFtp.js
Created April 11, 2011 22:02
An FTP wrapper library for Titanium Mobile.
var TiFtp = {
config: {
host: null,
port: 21,
path: null,
user: null,
password: null
},
init: function(_host, _path, _user, _password) {
if(!_host || !_path || !_user || !_password) {
@dawsontoth
dawsontoth / app.js
Created March 4, 2011 00:44
Customize the look of the tab bar in iOS Appcelerator Titanium
Ti.include('overrideTabs.js');
/*
This is a typical new project -- a tab group with three tabs.
*/
var tabGroup = Ti.UI.createTabGroup();
/*
Tab 1.
var win = Ti.UI.createWindow({
backgroundColor:"#fafaf9"
});
var logo = Ti.UI.createView({
backgroundImage:"info_usat_logo.png",
width:157,
height:131,
top:30,
left:30