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
console.log('searchVal split = ' + searchVal.split(' ')); | |
var searchValArray = searchVal.split(' ');//.slice(1,-1); | |
console.log("SEARCH Array: " + searchValArray + "......"); | |
var searchString = ""; | |
for(var i in searchValArray){ | |
searchString += String(searchValArray[i] + "+"); | |
} |
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
//FROM http://developer.appcelerator.com/question/115941/-parsing-xml-in-reverse-order | |
for (var i = json.length - 1; i >= 0; i--) | |
{ | |
doSomething(json[i].name, json[i].msg); | |
} |
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
//CREATE WINDOW | |
var win = Ti.UI.createWindow({ | |
title: 'Upload', | |
backgroundColor: '#FFF', | |
fullscreen: true, | |
navBarHidden: true | |
}); | |
//PHOTO VIEW CONTAINER |
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
/*** FROM http://www.somacon.com/p355.php ***/ | |
//BOTH | |
function trim(stringToTrim) { | |
return stringToTrim.replace(/^\s+|\s+$/g,""); | |
} | |
//LEFT | |
function ltrim(stringToTrim) { |
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
//AUTO | |
if(player.y >= floor_base - 20 && player.x <= 2680 && player.x >= 2070){ | |
floor_y = floor_base - 20; | |
player.y = floor_base - 20; | |
} | |
//JUMP | |
if( player.y == floor_base - 20 && player.x <= 700 && player.x >= 400){ | |
floor_y = floor_base - 20; | |
player.y = floor_base - 20; |
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://www.peoplesmart.com/optout | |
http://www.peoplefinders.com/optout-form.pdf | |
http://www.spokeo.com/privacy | |
https://www.intelius.com/optout.php |
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
<html> | |
<head> | |
<title>Fancy Radio Button</title> | |
</head> | |
<body> | |
<form action='some.php'> | |
<label for="employed1" >Are you currently employed?</label> | |
<br /> |
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
playlist | |
each item, i in stack | |
<node URL = "#{item[1]}" PIC = "#{item[2]}" TITLE = "#{item[0]}" /> |
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
//MUSIC | |
app.get('/playlist', function(req, res){ | |
var artist = "artistName"; | |
var key = "1234567yourKeyHere"; | |
var url = "http://api.soundcloud.com/users/" + artist + "/tracks.json?consumer_key=" + key; | |
var response = []; | |
var options = { |
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
//MSG | |
app.post('/msg', function(req, res){ | |
if (req.url == '/msg') { | |
var form = new formidable.IncomingForm(), | |
fields = []; | |
form.on('error', function(err) { | |
res.writeHead(200, {'content-type': 'text/plain'}); | |
res.end('error:\n\n'+util.inspect(err)); |