A collection of docker online resources. Source
This file contains hidden or 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 win1 = Titanium.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff', | |
layout: 'vertical' | |
}); | |
var bt1 = Ti.UI.createButton({title: 'send message (method 1)', top: 200}); | |
bt1.addEventListener('click', function(e) |
This file contains hidden or 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
/** | |
* @function getViewByClass | |
* @summary This will take a class and an optional parent and find children with that class | |
* @param {string} _class Class name | |
* @param {object} _parent Optional Parent View to iterate through | |
* @param {number} _depth Optional depth of recursiveness | |
* @returns {array} Array of views with the class | |
* | |
* @TODO Implement _depth and recursive calls | |
*/ |
This file contains hidden or 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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
- Some notes about this approach:
- An OSX Installer USB drive for
Install OS X El Capitan
is created - Clover is then installed on the USB drive
- Clover Configurator is then run on the USB drive
- The USB drive contents are copied to the VM host
- VNC is used to connect to the guest UI
- An OSX Installer USB drive for
- The qxl virtual video device is used (part of the standard kvm qemu install)
This file contains hidden or 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
{ | |
"events": [ | |
{ | |
"media": { | |
"url": "http://media.web.britannica.com/eb-media/42/24042-004-C8F9C0D5.jpg", | |
"caption": "Thomas Edison's phonograph" | |
}, | |
"start_date": { | |
"year": "1877" | |
}, |
This file contains hidden or 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
/** | |
* Ti.DynamicLib | |
* @abstract Support embedded binaries (aka dynamic libraries) in Titanium modules and Hyperloop. | |
* @version 1.1.0 | |
* | |
* Install: | |
* 1) Search and replace '../../src/<YourFramework>.framework' with your framework location. | |
The path is relative to the `build/iphone` directory. | |
* 2a) For classic modules: | |
* - Add 'LD_RUNPATH_SEARCH_PATHS=$(inherited) "@executable_path/Frameworks" $(FRAMEWORK_SEARCH_PATHS)' |
This file contains hidden or 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
/* | |
* Simple page indicator for scrollableViews for Appcelerator Titanium (Android). | |
* To be added after the views have been set. | |
* | |
* var p = require('page.indicator'); | |
* var options = { color: 'red' }; | |
* var indicator = p.pageIndicator(myScrollableView, options); | |
*/ | |
This file contains hidden or 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
/* | |
* Below is the background service to monitor the health of the app internet connection. | |
* It'll set a variable to tell any other controller what's going on with the current connection. | |
* 1 = Everything's good. | |
* 2 = Poor connectivity, but still have a connection. | |
* 3 = We have internet, but are having problems with the API. | |
* 4 = No internet. | |
*/ | |
function appConnectionHealth() { |
Functions to convert a geohash to/from a latitude/longitude point, and to determine bounds of a geohash cell and find neighbours of a geohash.
Methods summary:
encode
: latitude/longitude point to geohashdecode
: geohash to latitude/longitude