Skip to content

Instantly share code, notes, and snippets.

View rpbaltazar's full-sized avatar
🧶
Knitting the next thing

Rui Baltazar rpbaltazar

🧶
Knitting the next thing
View GitHub Profile
@rpbaltazar
rpbaltazar / resume.json
Last active November 5, 2022 07:31
My json resume
{
"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": {
@rpbaltazar
rpbaltazar / world_capitals.csv
Last active May 8, 2018 01:45
World capitals
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Abu Dhabi
Abuja
Accra
Adamstown
Addis Ababa
Algiers
Alofi
Amman
Amsterdam
Andorra la Vella
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 22, 2024 16:30
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

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.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@danielperna84
danielperna84 / getfit.py
Last active December 29, 2021 13:35 — forked from cedricbonhomme/getfit.py
Get total step count from Google Fit API for current day
#! /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
@rpbaltazar
rpbaltazar / Superhero names
Created August 16, 2016 05:18
super hero names - aka version name
"A-Bomb"
"Abomination"
"Absorbing"
"Ajax"
"Alien"
"Amazo"
"Ammo"
"Angel"
"Animal"
"Annihilus"

JavaScript Developer Questionnaire

1. Examine this script example.

var r = undefined;
a = b = c = 20;
n = i = r;

1.1 What will be the value of b after its execution?

2. Describe each part of a for loop structure.

@O-I
O-I / weighted_random_sampling.md
Last active February 21, 2024 19:02
[TIx 8] Weighted Random Sampling in Ruby

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 = [*?⚀..?⚅]
# => ["⚀", "⚁", "⚂", "⚃", "⚄", "⚅"]
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!