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
$(document).ready -> | |
$('form').submit -> | |
$(this).find('.ajax-loader').show() |
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( $ ){ | |
var settings = { | |
lat: 38.651198, | |
lng: -97.976074, | |
address: '', | |
minimumDetailZoom: 4, | |
defaultZoom: 4, | |
displayLitBuildings: false, | |
displayCentralOffices: false, | |
dslHeatmapActive: false, |
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
gem 'redis' | |
gem 'redis-store', '1.0.0.rc1' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Text to Link</title> | |
</head> | |
<body> | |
<h1>Text into Link</h1> | |
<table border="1" cellspacing="5" cellpadding="5"> | |
<tr><th>xyzzyb was just text</th></tr> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Rewriting UR Links</title> | |
</head> | |
<body> | |
<h1>Rewriting UR Links</h1> | |
<p> | |
<a href="http://na8.salesforce.com/something">Link to http://na8.salesforce.com/something that opens in a new tab/window.</a> |
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
<Placemark> | |
<name>Central Office</name> | |
<description>1049 N 3RD ST</description> | |
<styleUrl>#co</styleUrl> | |
<Point> | |
<coordinates>-99.73335,32.45157</coordinates> | |
</Point> | |
</Placemark> |
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
<Placemark> | |
<styleUrl>#dsl</styleUrl> | |
<Polygon> | |
<outerBoundaryIs> | |
<LinearRing> | |
<coordinates> | |
-83.98093654387421,34.36732 | |
-83.98223988881587,34.377583641421 | |
-83.98610089352155,34.38739925343817 |
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
@states = { | |
AL: "Alabama", | |
AK: "Alaska", | |
AZ: "Arizona", | |
AR: "Arkansas", | |
CA: "California", | |
CO: "Colorado", | |
CT: "Connecticut", | |
DE: "Delaware", | |
FL: "Florida", |
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 requestMarkers() { | |
// no loading markers when zoomed way out | |
if (map.getZoom() < 11) { return }; | |
// start dropping markers before the browser bogs down | |
if (markers.length > 50) { | |
dropSuperfluousMarkers(); | |
} | |
$.ajax({ | |
// [snip typical ajax data request] | |
success: populateMarkers, |
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
// this is, obviously, just an apex exploration | |
// i.e. horribly inefficient | |
Integer fib(Integer n) { | |
if (n <= 1) return 1; else return fib(n-1) + fib(n-2); | |
} | |
for (Integer i=0; i<=12; i++) { | |
System.debug(fib(i)); | |
} |