Skip to content

Instantly share code, notes, and snippets.

View MotiurRahman's full-sized avatar

Motiur Rahman MotiurRahman

View GitHub Profile
@MotiurRahman
MotiurRahman / app.js
Created May 19, 2016 17:48 — forked from csemrm/app.js
File upload to the server using Titanium Test environment: Ti SDK 3.1.3.GA, CLI 3.2.0
(function() {
var form_url = 'http://apps.priyo.com/jonopriyo/image.php';
var win = Ti.UI.createWindow({
layout : 'vertical',
backgroundColor : '#fff'
});
var btnPhoto = Ti.UI.createButton({
title : 'Select Photo'
@MotiurRahman
MotiurRahman / .gitignore
Created November 12, 2016 09:32 — forked from smebberson/.gitignore
Express simple authentication example
node_modules
*.swp
@MotiurRahman
MotiurRahman / nodejs-tcp-example.js
Created December 15, 2016 14:13 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@MotiurRahman
MotiurRahman / AudioPlayer-Scrubbing.js
Created January 3, 2017 18:20 — forked from hansemannn/AudioPlayer-Scrubbing.js
iOS audio player scrubbing in Titanium
var isPlaying = false;
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var btn = Ti.UI.createButton({
title: 'Play',
top: 60
});
@MotiurRahman
MotiurRahman / app.js
Created March 31, 2017 21:47 — forked from csemrm/app.js
var win = Titanium.UI.createWindow({
title : 'Audio Test',
backgroundColor : '#fff',
//layout : 'vertical'
});
var url = encodeURIComponent("https://itunes.apple.com/us/app/smartuaq/id1063110068?ls=1&mt=8").replace(/'/g,"%27").replace(/"/g,"%22");
var whatsappUrl = 'whatsapp://send?text=' + url;