Skip to content

Instantly share code, notes, and snippets.

View pegli's full-sized avatar

Paul Mietz Egli pegli

View GitHub Profile
@pegli
pegli / child.js
Last active August 29, 2015 14:14
Alloy WebView example
$.win.open();
function webviewLoad() {
alert("loaded");
}
function loadGoogle() {
$.webview.url = "http://google.com/";
}
@pegli
pegli / readme.md
Created February 12, 2015 17:20
Getting back to node 0.10 on homebrew

The Titanium CLI isn't compatible with node 0.12 (TIMOB-18538). If you use homebrew and have already upgraded to 0.12, you can go back to 0.10.36 by running the following commands:

cd $( brew --prefix )
git checkout b64d9b9 Library/Formula/node.rb
brew unlink node
brew install node

You might want to use brew pin node to keep brew upgrade from updating that formula until the CLI is fixed.

@pegli
pegli / app.js
Last active September 11, 2019 21:44
Titanium: resume event handling on iOS and Android
var win = Ti.UI.createWindow({
backgroundColor: "white",
});
var label = Ti.UI.createLabel({
text: "init"
});
win.add(label);

Keybase proof

I hereby claim:

  • I am pegli on github.
  • I am pegli (https://keybase.io/pegli) on keybase.
  • I have a public key whose fingerprint is 1766 EA7E 3933 251A CACE 7827 3BEA 9CE8 8856 8305

To claim this, I am signing this object: