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 | |
$taxes = array( | |
'AL' => 0.04, | |
'AK' => 0.00, | |
'AZ' => 0.066, | |
'AR' => 0.06, | |
'CA' => 0.075, | |
'CO' => 0.029, | |
'CT' => 0.0635, |
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
Testing https://crowdmap.com | |
At Wed May 8 11:13:16 2013 | |
10 loops | |
Fastest Median Slowest Std Dev | |
--------------------------------------------------------------------------- | |
Server performance: | |
Total application time Unable to be recorded | |
Host latency: |
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
{ | |
"posts": [ | |
{ | |
"externals": [], | |
"locations": [], | |
"maps": { | |
"map_id": 35, | |
"user_id": 5, | |
"media_id": 0, | |
"subdomain": "checkingificancreate", |
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
if (isset($_SERVER['HTTP_ORIGIN'])){ | |
$log_text = $_SERVER['HTTP_ORIGIN']; | |
}else{ | |
$log_text = 'UNKNOWN'; | |
} | |
$filename = "./debug/origins.log"; | |
$fh = fopen($filename, "a") or die("Could not open log file."); | |
fwrite($fh, date("d-m-Y, H:i")." - ".$log_text."\n") or die("Could not write file!"); | |
fclose($fh); |
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
<style> | |
body { background-color:green;text-align:center;} | |
iframe { padding:0; margin:0; overflow: hidden; border: 0px;} | |
</style> | |
<script> | |
function iframeLoaded() { | |
var iframe = document.getElementById('testframe'); | |
if(iframe) { | |
var body = iframe.contentDocument.body; |
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
var lockCounter; | |
function ajaxCallFunc() | |
{ | |
lockCounter++; | |
var check = lockCounter; | |
setTimeout(function(){ | |
if (check == lockCounter) | |
{ | |
// This request was the last one to increment the counter |
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
map.setCenter( | |
new OpenLayers.LonLat(-71.147, 42.472).transform( | |
new OpenLayers.Projection("EPSG:4326"), | |
map.getProjectionObject() | |
), 12 | |
); |
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
Floating Point Number | |
Source: http://www.regular-expressions.info/floatingpoint.html | |
[-+]?([0-9]*\.)?[0-9]+ | |
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
ALTER IGNORE TABLE `feed_item` ADD UNIQUE INDEX `name` (`item_link`); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<title>Local Ushahidi Deployment</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/jquery-ui-themeroller.css" /> | |
<link rel="stylesheet" type="text/css" href="http://ushahidi.osx/themes/default/css/style.css" /> | |
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/iehacks.css" /> | |
<![endif]--><!--[if IE 7]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/ie7hacks.css" /> | |
<![endif]--><!--[if IE 6]><link rel="stylesheet" type="text/css" href="http://ushahidi.osx/media/css/ie6hacks.css" /> |