Skip to content

Instantly share code, notes, and snippets.

@tomger
tomger / airbnb.json
Created July 26, 2019 16:43
what airbnb sends to ios and web clients
{
"ios carousel": "https://a0.muscache.com/4ea/air/v2/pictures/3b3773f1-7514-45b8-a703-2b82d7c05998.jpg?t=c:w750-h540-gO,r:sfill-w750-h540",
"ios lightbox": "https://a0.muscache.com/im/pictures/3b3773f1-7514-45b8-a703-2b82d7c05998.jpg?aki_policy=3x_large",
"web carousel": "https://a0.muscache.com/im/pictures/3b3773f1-7514-45b8-a703-2b82d7c05998.jpg?aki_policy=large",
"web lightbox": "https://a0.muscache.com/im/pictures/3b3773f1-7514-45b8-a703-2b82d7c05998.jpg?aki_policy=xx_large",
"json embedded in html": {
"caption": "",
"id": 817740715,
"is_professional": false,
"large": "https://a0.muscache.com/im/pictures/3b3773f1-7514-45b8-a703-2b82d7c05998.jpg?aki_policy=large",
@tomger
tomger / delete_tweets.py
Last active February 3, 2018 15:30
Yet another tweet deleter, the other gists didn't work for me.
import sys
import tweepy # pip install tweepy
# options
dry_run = True
# Twitter API credentials
# Go to https://apps.twitter.com
consumer_key = ""
consumer_secret = ""
@tomger
tomger / export_instagram.sjs
Last active February 3, 2018 14:37
Downloads all images from your Instagram timeline to your disk and reinsert geo and time EXIF metadata.
/*
* Downloads all images from your Instagram timeline
* to your disk and reinserts geo and time EXIF metadata.
*/
// conductance deps
var http = require('sjs:http');
var fs = require('sjs:nodejs/fs');
var string = require('sjs:string');
#!/usr/bin/env python
import SimpleHTTPServer
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_my_headers()
SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self)
def send_my_headers(self):
/**
@module webdatabase
@desc A simple stratified wrapper over the asynchronous webdatabase api (webkit) */
*/
/**
@function openDatabase
*/
exports.openDatabase = function (name, version, desc, size) {
var db = openDatabase(name, version, desc, size);
@tomger
tomger / fatc.html
Created September 30, 2010 21:52
a twitter client in stratified javascript ( http://fatc.onilabs.com )
<!DOCTYPE html>
<html><head>
<title>Fork-A-Twitter-Client</title>
<!--
Basic OniApollo/StratifiedJS Twitter Client application scaffold.
See http://fatc.onilabs.com/
THIS FILE IS IN THE PUBLIC DOMAIN.