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
<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
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
{ | |
"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
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
<?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
Format: | |
(posting user) (map id if owned by map) (post message) (lat) (lon) (alt) (location name) (date posted) (duh) (a map to attach this post to) | |
user_id, owner_map_id, message, lat, lon, altitude, location_name, date_posted, public, posts_maps_map_id | |
| | |
| | |
Note: must include altitude although it isn't | |
actually being inserted. You can use "0" as | |
a default value |
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
# Turn on URL rewriting only when mod rewrite is turn on | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Installation directory | |
RewriteBase / | |
# Protect application and system files from being viewed | |
RewriteRule ^(application|modules|system|tests|sql) - [F,L] |
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
// This script is for supporting forms with searchable filters to show/hide rows of the table | |
$(document).ready(function() { | |
root.filters = []; | |
$('.filter-table-filters').find('td').each(function(i) { | |
var tdKey = 'td'+i; | |
$(this).data('filters',tdKey); |
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 fut = new Future(); | |
var screen_name = Meteor.user().profile.twitterHandle; | |
Twit.get('statuses/user_timeline', { screen_name: screen_name, include_rts: false, count: 200 }, function(err, tweets) { | |
var i; | |
for (i = 0; i < tweets.length; ++i) { | |
if(tweets[i].geo != null) { | |
var geo = {lat: tweets[i].geo.coordinates[0], lon: tweets[i].geo.coordinates[1]}; | |
fut['return'](geo); | |
return; |