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
#USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005 | |
#Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5 | |
#Latest version of this file (in English) is usually at: | |
# http://sed.sourceforge.net/sed1line.txt | |
# http://www.pement.org/sed/sed1line.txt | |
#This file will also available in other languages: | |
# Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html | |
# Czech - http://sed.sourceforge.net/sed1line_cz.html |
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
#HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
#Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
#Latest version of this file (in English) is usually at: | |
# http://www.pement.org/awk/awk1line.txt | |
#This file will also be available in other languages: | |
# Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
#USAGE: |
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
#################### | |
#### CRUNCHBANG #### | |
#################### | |
## Compatible with Debian Wheezy, but use at your own risk. | |
deb http://packages.crunchbang.org/waldorf waldorf main | |
deb-src http://packages.crunchbang.org/waldorf waldorf main | |
#################### | |
####################### |
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
http://developer.android.com/guide/topics/resources/providing-resources.html#ScreenAspectQualifier | |
if ((Ti.Platform.displayCaps.platformWidth / Ti.Platform.displayCaps.platformHeight) < (((Ti.Gesture.orientation === Ti.UI.LANDSCAPE_LEFT)) ? (320 / 240) : (240 / 320)))) { | |
Ti.API.info('I am LONG'); | |
} else { | |
Ti.API.info('I am NOTLONG'); | |
} |
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
<Alloy> | |
<Window module="xp.ui"> | |
<Label>Hello World</Label> | |
</Window> | |
</Alloy> |
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
// app/styles/app.tss | |
"Window": { | |
navBarHidden: false | |
} |
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
"#wrapper": { | |
// Set wrapper to adjust it's size to it's contents | |
width: Ti.UI.SIZE, | |
height: Ti.UI.SIZE, | |
// Set stuff like borders and backgrounds on the wrapper | |
backgroundColor: "red" | |
} |
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 win = Ti.UI.createWindow(); | |
var webView = Ti.UI.createWebView({ | |
url: 'http://www.youtube.com/embed/' + myVideoID + '?autoplay=1&autohide=1&cc_load_policy=0&color=white&controls=0&fs=0&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0', | |
enableZoomControls: false, | |
scalesPageToFit: false, | |
scrollsToTop: false, | |
showScrollbars: false | |
}); |
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
function handleOnce(funct) { | |
var flag = false; | |
return function(e) { | |
if (flag) return; | |
flag = true; | |
setTimeout(function() { | |
flag = false; | |
}, 0); | |
funct(e); |
OlderNewer