Skip to content

Instantly share code, notes, and snippets.

import json
import time
import ujson
NUM_OBJ_KEYS = 1000
NUM_RUNS = 1000000
obj = {}
for i in range(NUM_OBJ_KEYS):
obj[i] = 'foo'
/**
* @author Eugene Zatepyakin / http://inspirit.ru/
*
* this code is a rewrite from https://github.com/mtschirs/js-objectdetect implementation
* @author Martin Tschirsich / http://www.tu-darmstadt.de/~m_t
*/
(function(global) {
"use strict";
//
  • Login to instagram developers site and add http://localhost as a redirect API in your API client's settings
  • Navigate to https://www.instagram.com/oauth/authorize/?client_id=<CLIENT_ID>&redirect_uri=http://localhost&response_type=token
  • Get token from URL after redirect occurs back to http://localhost
@ttezel
ttezel / download_popular_insta_photos.js
Last active October 17, 2016 09:02
Download instagram photos with >= N likes (run from an instagram user's profile page)
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - > out.gif