THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
One of the many reasons I love working with Ruby is it has a rich vocabulary that allows you to accomplish your goals with a minimal amount of code. If there isn't a method that does exactly what you want, it's usually possible to build an elegant solution yourself.
Let's take the example of simulating the rolling of a die.
We can represent a die as an array of its faces.
die = [*?⚀..?⚅]
# => ["⚀", "⚁", "⚂", "⚃", "⚄", "⚅"]
"A-Bomb" | |
"Abomination" | |
"Absorbing" | |
"Ajax" | |
"Alien" | |
"Amazo" | |
"Ammo" | |
"Angel" | |
"Animal" | |
"Annihilus" |
#! /usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import json | |
import httplib2 | |
import time | |
from datetime import datetime | |
from datetime import timedelta | |
from apiclient.discovery import build |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
Abu Dhabi | |
Abuja | |
Accra | |
Adamstown | |
Addis Ababa | |
Algiers | |
Alofi | |
Amman | |
Amsterdam | |
Andorra la Vella |
{ | |
"meta": { "theme": "spartan" }, | |
"basics": { | |
"name": "Rui Baltazar", | |
"label": "Lead Software Engineer / CTO", | |
"picture": "", | |
"email": "rui.p.baltazar@gmail.com", | |
"website": "https://rpbaltazar.com", | |
"summary": "I'm a Software Engineer with a Computer Science background, working in the industry since 2009. Thrilled by the start-up world, I'm an enthusiastic developer, proficient in getting things done. I never turn down a good challenge and I'm always seeking to learn. I believe that developers should actively contribute to OpenSource as a means to learn and give back to the community. On the free time, I'm a life lover by nature, play football on a regular basis and go out scuba-diving every now and then.", | |
"location": { |