Skip to content

Instantly share code, notes, and snippets.

View iamsenorespana's full-sized avatar

Senor Espana iamsenorespana

View GitHub Profile
@iamsenorespana
iamsenorespana / gist:7c2d65ebf5cf9bf169d9812f0ed2137b
Created October 17, 2017 13:43 — forked from TNuzzi/gist:7664254
Appcelerator Nav bar iOS coloring
".test":{
autoAdjustScrollViewInsets: true,
color: "FFF",
backgroundColor: "fff",
barColor: "#99c60000", // this
extendEdges: [
Ti.UI.EXTEND_EDGE_TOP
],
height: Ti.UI.FILL,
includeOpaqueBars: false,
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active December 29, 2024 10:54
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@manumaticx
manumaticx / README.md
Last active July 11, 2020 14:07
Fading ActionBar in Titanium

Fading Actionbar

This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium

fadingactionbar

How this works

This is actually very simple. The trick is putting the Actionbar in overlay mode by configuring the theme with windowActionBarOverlay:true. Then all you need to do is updating the color of the Actionbar, in this case by scrolling a ScrollView.

@lbrenman
lbrenman / _readme
Last active August 29, 2015 14:06
Appcelerator Titanium tijasmine simple titanium example
tijasmine Unit Test Demo
* Have a working project
- Note that i created a utils.js file in the lib folder with my business logic methods
e.g.
exports.concatName = function(a,b) {
return a.substring(0,1).concat(b);
}
@aaronksaunders
aaronksaunders / app.js
Last active August 29, 2015 14:03
Appcelerator Cloud Services, Promises and Custom Objects
//
//
var Q = require('q'); // add q.js library - https://github.com/kriskowal/q
var Cloud = require("ti.cloud"); // add in tiapp.xml
Cloud.debug = true;
function cloudCreateObjects(_data) {
var deferred = Q.defer();
@soheilhy
soheilhy / nginxproxy.md
Last active November 27, 2024 08:14
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@davidecassenti
davidecassenti / app.js
Created June 3, 2013 14:22
Node ACS File Upload example This example shows how to upload a file to Node ACS, and how to save it server side. The example uses FormData. Note: upload.html must be on a server (it won't work if running locally as a file); also, it requires jquery to be in the same directory to work. All other files are server side, in the Node ACS app.
// initialize app
function start(app, express) {
app.use(express.methodOverride());
// ## CORS middleware
// see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs
//
// PLEASE NOTE: ANY SERVER CAN UPLOAD HERE! YOU SHOULS ONLY ALLOW SPECIFIC SERVERS BY
// EDITING THE ACCESS-CONTROL-ALLOW-ORIGIN HEADER BELOW
var allowCrossDomain = function(req, res, next) {
@aaronksaunders
aaronksaunders / new_sql.js
Last active January 28, 2016 19:20
new adapter using REPLACE INTO for Appcelerator Titanium Alloy, also fixed the read switch, was not performing properly
//
// Here are the tests I am running against the adapter
// https://gist.github.com/aaronksaunders/4722895
//
// [email protected]
//
function SQLiteMigrateDB(config) {
this.dbname = config.adapter.db_name;
this.table = config.adapter.collection_name;