Skip to content

Instantly share code, notes, and snippets.

<?php
print 'hi';
?>
var http = require('http'),
net = require("net"),
fs = require("fs"),
Canvas = require('canvas');
var path_regex = /^\/apb\/status[\/]?$/;
var image_cache;
var servers = [{
@pilate
pilate / gist:768298
Created January 6, 2011 18:24 — forked from seanh/gist:768283
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
function fetchAndPrintPosts(id,num,tag)
{
// Read data from Tumblr, this creates the variable tumblr_api_read.
jQuery.ajax({
url : "http://staff.tumblr.com/api/read/json?num=" + num + "&filter=text&tagged=" + tag,
dataType : "jsonp",
success : function(test) {
centerMapOnCity: function() {
var that = this;
this.deleteOverlays();
var entered_city = $("post_location_name").value;
if(entered_city) {
var city = "", state = "", country = "";
this.geocoder.geocode( { 'address': entered_city}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var latlng = results[0].geometry.location;
general_location = that.getGeneralLocation('address', results);