This script helps you to download locally the latest pictures related to a specific Instagram hashtag. It will fetch them and sort them by username.
No resume feature. No extra metadata. No OAuth pain.
import sys, math, random | |
class Point: | |
def __init__(self, coords, reference=None): | |
self.coords = coords | |
self.n = len(coords) | |
self.reference = reference | |
def __repr__(self): | |
return str(self.coords) |
// Error reported in http://stackoverflow.com/questions/23819466/error-return-address-clgeocoder | |
NSString *anAddressString = @"568 Broadway, New York, NY" | |
CLGeocoder *geocoder = [[CLGeocoder alloc] init]; | |
void (^geocodeBlock)(NSArray *placemarks, NSError *error) = ^(NSArray *placemarks, NSError *error) { | |
if (error) { | |
/* | |
* Printing error gets -> Error Domain=kCLErrorDomain Code=2 "The operation couldn’t be |
// Set startFrame and endFrame for _contentView | |
CGRect endFrame = _contentView.frame; | |
CGRect startFrame = endFrame; | |
startFrame.origin.y = -startFrame.size.height; | |
_contentView.frame = startFrame; | |
void (^animationBlock)(void) = ^(void){ | |
_contentView.frame = endFrame; | |
}; |
#!/bin/bash | |
casperjs tn_news.js | |
./rss_news.rb http://www.clarin.com/rss/lo-ultimo/ Clarin | |
./rss_news.rb http://contenidos.lanacion.com.ar/herramientas/rss-origen=2 LaNacion |
/place
require 'i2c/drivers/ss1602' # https://github.com/nerab/i2c-ss1602 | |
require 'twitter' # https://github.com/sferik/twitter | |
display = I2C::Drivers::SS1602::Display.new('/dev/i2c-1', 0x27) | |
client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = "XXX" | |
config.consumer_secret = "XXX" | |
config.access_token = "XXX" | |
config.access_token_secret = "XXX" |
Reaction.joins(:news).where(user: user).as_json(include: :news).to_json |
curl api.canillitapp.com/search/scioli | jq '.[] | {title: .title, source: .source_name, date: .date | strftime("%B %d %Y %I:%M%p %Z"), url: .url}' > scioli.json |