This file contains hidden or 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
| # optional, I added some of my scripts at the bottom of my ~/.zshrc | |
| # (I'm using oh-my-zsh https://github.com/robbyrussell/oh-my-zsh) | |
| alias canillitapp_latest="~/Scripts/latest_news.sh" | |
| alias canillitapp_popular="~/Scripts/popular_news.sh" | |
| alias canillitapp_search="~/Scripts/search_news.sh" | |
| alias canillitapp_trending="~/Scripts/trending_news.sh" |
This file contains hidden or 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
| people = ARGV | |
| possible_receivers = people.dup | |
| result = {} | |
| people.each do |p| | |
| # a person doesn't have to give a gift to himself; | |
| tmp = possible_receivers.dup | |
| tmp.delete(p) | |
| receiver = tmp.sample |
This file contains hidden or 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
| require 'faraday' | |
| require 'nokogiri' | |
| response = Faraday.new.get 'https://www.santander.com.ar/ConectorPortalStore/Rendimiento' | |
| html = Nokogiri::HTML(response.body) | |
| desired_items = [ | |
| 'SUPER AHORRO $ CUOTA A', | |
| 'SUPER AHORRO PLUS CUOTA A', | |
| 'SUPERGESTION MIX VI CUOTA A' |
This file contains hidden or 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
| require 'nokogiri' | |
| require 'faraday' | |
| require 'pry' | |
| conn = Faraday.new | |
| response = conn.get 'https://www.worldometers.info/coronavirus/' | |
| covid_page = Nokogiri::HTML(response.body) | |
| puts '"Country";"Infected";"Deaths";"ID ratio"' |
This file contains hidden or 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
| #!/bin/bash | |
| filename="${1%.*}" | |
| extension="${1##*.}" | |
| convert $1 -colorspace Gray -ordered-dither o2x2 "${filename}_gray_ordered.gif" | |
| convert $1 -ordered-dither o2x2 "${filename}_ordered.gif" | |
| convert $1 -monochrome "${filename}_monochrome.gif" | |
| convert $1 -remap pattern:gray50 "${filename}_remap_gray.gif" | |
| convert $1 -remap netscape: "${filename}_remap_netscape.gif" |
OlderNewer