Skip to content

Instantly share code, notes, and snippets.

View denissellu's full-sized avatar
馃挱
馃ゥ

Denis Sellu denissellu

馃挱
馃ゥ
View GitHub Profile
# Install Ruby 2.1+
# gem install nokogiri
require "nokogiri"
require "open-uri"
require "csv"
CSV.open("top-posts.csv", "wb") do |csv|
csv << ["Article Name", "Article Link", "Article Claps", "Trending Date"]
@denissellu
denissellu / gist:7f10c625089df32b5f8bc07be183b043
Last active May 12, 2017 13:46 — forked from viola/gist:1070410
Example of fetching Hash (key,value) to the simple_form collection.
-- model
some sort of constant hash:
HASH_NAME = {
0 => "Choose:",
1 => "On-Campus Recruiting - CSO",路
2 => "CSO Staff Referral",
3 => "Faculty Contact",路
4 => "Career Day",路
5 => "CSO Summer Job Listing",路
6 => "Alumni Contact",路
Font=Powerline Consolas
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117