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
<?php | |
# flinstagram | |
# THIS IS PROOF-OF-CONCEPT CODE | |
# ALL THE USUAL CAVEATS APPLY. | |
# NO. REALLY. | |
# This is a dumb sample script to fetch all the instagram photos | |
# belonging to a user and then upload them to their flickr account. |
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
{ | |
"countries": { | |
"ar": { | |
"country": "Argentina", | |
"table": "PfldJg", | |
"attributes": { | |
"factual_id": { | |
"supported": true, | |
"mapping": "Factual ID" | |
}, |
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
#!/usr/bin/env perl | |
use strict; | |
use WWW::Mechanize; | |
{ | |
&main(); | |
exit; | |
} |
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
#!/usr/bin/env perl | |
# For example: | |
# $> cat test.eml | perl upload-note-by-email.pl -c pinboard.cfg | |
use strict; | |
use Getopt::Std; | |
# All I can tell you is these are all available by | |
# default on pair.com so it's not really that big 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
{ | |
"responseHeader":{ | |
"status":0, | |
"QTime":2, | |
"params":{ | |
"facet":"on", | |
"facet.mincount":"1", | |
"facet.sort":"count", | |
"q":"machinetags:aa8cpost8e", | |
"facet.limit":"-1", |
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
#!/usr/bin/env python | |
# see also: | |
# https://www.twilio.com/ | |
# https://www.heroku.com/ | |
# https://devcenter.heroku.com/articles/getting-started-with-python#declare-process-types-with-procfile | |
# https://devcenter.heroku.com/articles/config-vars | |
# https://devcenter.heroku.com/articles/logging#log-retrieval | |
import sys |
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
// See also: http://www.aaronland.info/weblog/2014/09/22/desire/#upload | |
function upload_init(){ | |
$("#upload-form").submit(function(){ | |
try { | |
var photos = $("#photo"); | |
var files = photos = photos[0].files; |