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
import couk.psyked.air.printscreen.events.PrintScreenMonitorEvent; | |
import couk.psyked.air.printscreen.PrintScreenMonitor; | |
private var monitor:PrintScreenMonitor | |
private function init():void { | |
monitor = new PrintScreenMonitor(100); | |
monitor.addEventListener(PrintScreenMonitorEvent.ADD_SCREENSHOT, | |
updateImage); | |
monitor.addEventListener(PrintScreenMonitorEvent.CHANGE_SCREENSHOT, |
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 formatFQL(input:String):String | |
{ | |
var output:String = ""; | |
var indent:String = ""; | |
var queries:Array = input.split("SELECT"); | |
for (var i:int = 1; i < queries.length; i++) { | |
indent += " "; | |
output += "SELECT" + queries[i].split("FROM").join("\n" + indent + "FROM").split("WHERE").join("\n" + indent + "WHERE").split("IN").join("\n" + indent + "IN").split("ORDER").join("\n" + indent + "ORDER"); | |
indent += " "; | |
output += "\n" + indent; |
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
a[href^="http:"] { | |
display:inline-block; | |
padding-right:14px; | |
background:transparent url(/Images/ExternalLink.gif) center right no-repeat; | |
} | |
a[href^="mailto:"] { | |
display:inline-block; | |
padding-left:20px; | |
line-height:18px; | |
background:transparent url(/Images/MailTo.gif) center left no-repeat; |
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
a[href$='.pdf'] { | |
display:inline-block; | |
padding-left:20px; | |
line-height:18px; | |
background:transparent url(Images/PDFIcon.gif) center left no-repeat; | |
} |
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
<script type="text/javascript"> | |
//<![CDATA[ | |
document.write('<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.psyked.co.uk%2Fflash%2Ffotb2011-highlight-1.htm&layout=standard&show_faces=false&width=450&action=recommend&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 2px 0px"></iframe>') | |
//]]> | |
</script> |
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
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.psyked.co.uk%2Fflash%2Ffotb2011-highlight-1.htm&layout=standard&show_faces=false&width=450&action=recommend&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 2px 0px"></iframe> |
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 RateMe(ios_url, goog_url, usecount) { | |
if(!Ti.App.Properties.hasProperty('RemindToRate')) { | |
Ti.App.Properties.setString('RemindToRate', 0); | |
} | |
var remindCountAsInt = parseInt(Ti.App.Properties.getString('RemindToRate'), 10); | |
var newRemindCount = remindCountAsInt += 1; | |
if(remindCountAsInt === -1) { | |
// the user has either rated the app already, or has opted to never be | |
// reminded again. |
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
Find: trace\(([A-Z a-z 0-9"'=_\-.+,\\/\(\)\[\]:#!<>%]*)\); | |
Replace: ExternalInterface.call("console.log", $1); |
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
// ==== Sample implementation | |
var modal = new Modal(); | |
modal.maximise(); // outputs "Error: undefined is not a method (windowInstance.maximise)" | |
MaximiseDecorator.addTo(modal); | |
modal.maximise(); // outputs "I'm going to maximse myself!" | |
MaximiseDecorator.removeFrom(modal); | |
modal.maximise(); // outputs "Error: undefined is not a method (windowInstance.maximise)" |
OlderNewer