Start up a container (whichever Linux flavour takes your fancy):
docker run -it ubuntu /bin/bash
docker run -it centos /bin/bash
# === Terminal.app === # | |
# Open new tab in terminal. | |
exec("osascript -e 'tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down' > /dev/null 2>&1 ") | |
# Open directory | |
exec("osascript -e 'tell application \"Terminal\" to do script \"cd directory\" in selected tab of the front window' > /dev/null 2>&1 ") | |
# Open directory in new tab (this is better) | |
exec("osascript -e 'tell application \"Terminal\"' -e 'tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down' -e 'do script with command \"cd directory && clear\" in selected tab of the front window' -e 'end tell' > /dev/null 2>&1") |
/** | |
* Ti.TouchID | |
* | |
* Summary: Support native Touch ID with Hyperloop in Titanium Mobile. | |
* Author: Hans Knoechel | Appcelerator, Inc | |
* Date: 03/22/2016 | |
* Version: 0.1.0 | |
* Example | |
* | |
* var touchID = require("ti.touchid"); |
var FBSDKShareLinkContent = require("FBSDKShareKit/FBSDKShareLinkContent"), | |
FBSDKShareDialog = require("FBSDKShareKit/FBSDKShareDialog"), | |
NSURL = require("Foundation/NSURL"); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: "#fff" | |
}); | |
var btn = Ti.UI.createButton({ | |
title: "Trigger Share Dialog" |
var Hyperloop = require('hyperloop'); | |
var UIView = require('UIView'); | |
var CGRect = require('CGRect'); | |
var CGPoint = require('CGPoint'); | |
var UIColor = require('UIColor'); | |
var UIBezierPath = require('UIBezierPath'); | |
function DEGREES_TO_RADIANS(angle) { return (Number(angle) / 180.0 * Math.PI) }; |
'use strict'; | |
/** | |
* Android sample showing speech recognition using Hyperloop. | |
* | |
* @version Titanium 6.1.2.GA | |
* @version Alloy 1.9.13 | |
* @version Hyperloop 2.1.3 | |
*/ |
var AVAudioEngine = require('AVFoundation/AVAudioEngine'); | |
var AVAudioPlayerNode = require('AVFoundation/AVAudioPlayerNode'); | |
var AVAudioFile = require('AVFoundation/AVAudioFile'); | |
var NSBundle = require('Foundation/NSBundle'); | |
var win = Ti.UI.createWindow({ | |
backgroundColor: '#fff' | |
}); | |
var btn = Ti.UI.createButton({ |