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
<?xml version="1.0" encoding="utf-8" standalone="no"?> | |
<application xmlns="http://ns.adobe.com/air/application/1.5"> | |
<id>com.adobe.example.TeaTimer</id> | |
<version>0.3</version> | |
<filename>TeaTimer</filename> | |
<description>A simple timer for making tea</description> | |
<initialWindow> | |
<content>TeaTimer.html</content> | |
<visible>true</visible> | |
<width>400</width> |
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
<html> | |
<head> | |
<script src="AIRAliases.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
function appLoad(){ | |
air.trace("Tea Timer"); | |
} | |
</script> | |
<script type="text/javascript"> |
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
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tristique elementum vulputate. Curabitur pulvinar erat odio, vulputate consectetur diam. In hac habitasse platea dictumst. Pellentesque imperdiet leo sit amet mauris bibendum eget vulputate velit iaculis. Nam commodo purus vel sem viverra viverra. Nunc odio lacus, accumsan eget volutpat vitae, mattis ac justo. Maecenas pulvinar viverra enim, id posuere justo luctus ac. Maecenas imperdiet nisl eget neque mollis dapibus. Mauris ullamcorper rhoncus sem, eu vestibulum nulla consectetur eu. Pellentesque nunc ligula, tempor sed imperdiet ac, malesuada eu tortor. Ut lacinia mollis turpis, eget auctor sem condimentum eu. Etiam aliquam, arcu a eleifend accumsan, urna turpis fermentum dui, et sollicitudin neque lacus non tellus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque lorem odio, dictum eget dictum eu, volutpat vel nulla. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum nulla sit a |
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 getPrefsFile() { | |
var prefsFile = air.File.applicationStorageDirectory.resolvePath("prefs.xml"); | |
// Does the storage file exist? | |
if (!prefsFile.exists) { | |
// Not there, so we'll copy the blank XML file from the app dir | |
original = air.File.applicationDirectory.resolvePath("prefs.xml"); | |
original.copyTo(prefsFile, true); | |
} | |
return prefsFile; | |
} |
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 writePrefs(){ | |
prefsFile = getPrefsFile(); | |
if (prefsFile.exists) { | |
var cr = air.File.lineEnding; | |
prefsXML = "<?xml version='1.0' encoding='utf-8'?>" + cr + | |
"<preferences>" + | |
cr + | |
"<time>" + getTimeSelection() + "</time>" + | |
cr + |
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 loadPrefs() { | |
stream = new air.FileStream(); | |
var prefsFile = getPrefsFile(); | |
if (prefsFile.exists) { | |
stream.open(prefsFile, air.FileMode.READ); | |
prefsXML = stream.readUTFBytes(stream.bytesAvailable); | |
stream.close(); | |
var domParser = new DOMParser(); |
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
<?php | |
require_once('sphinxapi.php'); | |
$sphinx = new sphinxClient; | |
$sphinx->SetServer('localhost',9312); | |
// How many k's from the target do we want to return results from? | |
// 10k's should do it. (In metres) | |
// @geodist is a magic key displaying metres from target. |
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
source suburbs_src | |
{ | |
type = mysql | |
sql_host = localhost | |
sql_user = tester | |
sql_pass = pass | |
sql_db = misc | |
sql_port = 3306 # optional, default is 3306 | |
sql_sock = /Applications/MAMP/tmp/mysql/mysql.sock |
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
<?php | |
$apache = "184.106.195.185"; | |
$nginx = "184.106.174.162"; | |
$page = '/forums/'; | |
$iterations = 10; | |
$apache_results = array(); | |
$nginx_results = array(); |
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
my new file |
OlderNewer