A Python client for the Instagram REST and Search APIs
pip install python-instagram
MobileLogPage.prototype = MobilePage.prototype; | |
MobileLogPage.prototype.getForm = function() { | |
return ED.shared.logForms[this.id]; | |
}; | |
MobileLogPage.prototype.getErrorDOM = function() { | |
return $('#mobile-' + this.id + '-page .log-error'); | |
}; |
dom.each(function() { | |
$(this).unbind('tap', callback); | |
$(this).bind('tap', callback); | |
$(this).bind('touchstart', function(e) { | |
e.preventDefault(); | |
var item = e.currentTarget; | |
if (ISTOUCHING) return; | |
item.moved = false; |
import sys | |
import urllib | |
import urllib2 | |
import json | |
import logging | |
class GeonamesError(Exception): | |
def __init__(self, status): |
queue: | |
- name: geocoding | |
rate: 1/m | |
retry_parameters: | |
task_retry_limit: 60 | |
task_age_limit: 3d | |
min_backoff_seconds: 120 |
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]--> | |
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]--> | |
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]--> | |
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name='description' content='{MetaDescription}'> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
var ED = ED || {}; | |
// Utility functions | |
ED.util = (function() { | |
// Data structure functions | |
function each(object, callback) { | |
if (object === null) return; |
function MobilePage() { | |
this.initialized = false; | |
} | |
MobilePage.prototype.setup = function() {}; | |
MobilePage.prototype.setupOnce = function() { | |
if (this.initialized !== true) this.setup(); | |
this.initialized = true; | |
}; |
// Zepto.js | |
// (c) 2010, 2011 Thomas Fuchs | |
// Zepto.js may be freely distributed under the MIT license. | |
(function(undefined){ | |
if (String.prototype.trim === undefined) // fix for iOS 3.2 | |
String.prototype.trim = function(){ return this.replace(/^\s+/, '').replace(/\s+$/, '') }; | |
// For iOS 3.x | |
// from https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce |
function getPhoto(mealId, sourceType, saveOnSuccess) { | |
var $mealDiv = $('#log-meal-' + mealId); | |
var $mealImg = $mealDiv.find('.log-meal-photo-button img'); | |
var $quickpicStatus = $('#mobile-quickpic-link span'); | |
function resetQuickPicStatus() { | |
$quickpicStatus.html('').addClass('icon-camera'); | |
} | |