Skip to content

Instantly share code, notes, and snippets.

View fzero's full-sized avatar

Fabio Neves fzero

View GitHub Profile
@fzero
fzero / 0README.md
Created May 28, 2018 16:05
RBC Frontend fundamentals - Advanced CSS
@fzero
fzero / threads.rb
Last active July 30, 2018 18:27
Ruby skeleton for parallel iteration using threads with thread count
# Thread count control
MAXTHREADS = 30
# This is the collection of data you need to process with threads
collection = []
# A nice array to store your thread objects
threads = []
@fzero
fzero / flickrdl.rb
Created December 20, 2019 01:26
Threaded download from Flickr (not a complete script, but the main part)
require 'flickr_fu'
require 'httparty'
require 'pry'
DIR = "./photos"
MAXTHREADS = 30
# Prepare the downloadin'
`mkdir -p #{DIR}`