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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
".test":{ | |
autoAdjustScrollViewInsets: true, | |
color: "FFF", | |
backgroundColor: "fff", | |
barColor: "#99c60000", // this | |
extendEdges: [ | |
Ti.UI.EXTEND_EDGE_TOP | |
], | |
height: Ti.UI.FILL, | |
includeOpaqueBars: false, |
This is a quick example of how to create a fading actionbar effect like this in Appcelerator Titanium
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// | |
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(); |
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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; |