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 / pre-commit-hook
Last active June 29, 2017 04:48
Running rubocop and coffeelint before commiting
#!/usr/bin/env ruby
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
EXCLUDE_FILES = ["db/schema.rb"]
def get_filename(file_with_status)
file_with_status.split(" ")[1]
end
@rpbaltazar
rpbaltazar / input
Created February 18, 2017 03:33
puzzle input
^><^>>>^<^v<v^^vv^><<^<><<vv^<>^<^v>^vv<>v><vv^^<>>^^^v<<vv><<^>^<^v<^>^v><<<v^<v<<<v<<vv<v<^><^>><>v>v^<<v^^<^v<><^>^<<^^^>v>>v^^<v>>^>vv><v>>^>>v^>^v>^<^^v>^>^^v<v>^^<v<>>v^^v><^><^<<>v^<^<^v<v>v^>>>v^v^>^<>^v<^^vv<v>^>^<>^^<vv^<><<v<^<^^>vv<>^>v<^>^v>v^>^v<>^><>><vv<>v^v<><>v^v>>>>v^^>^><^^<v<^><^<v>>^v^v<>v<<<^<<vvvv<<v^vv^>v^^^<^^^<v>>v<^v>>>>>v<^^^^>v<^<><v>>>>><v>>v^vvvv^^<v^<>^v<^v^>v><^>^v<<>>vv^>v>v^^>vv^<^vvv<>><>><><^^^<v<>^<^^^<v><^v>>v>^v<v^vv^<>^^^>v^^^v>>^v^^<^>>^>^<<v>>>^^<>>^vv>v^<^>>>><v<><><^^v<><<<<^^<>>^<vvv^><>v<v<<<<><v<<v>v<v^><vv<v^>^<^>v^^><^v>^^>v<>^v^<>^vv^><v^^vv>vvv>v>^<vv^>>^>>^>><>>>^^^^v<vv>^<>v^^><v^>^<>v<^^v><v<<><^v><>^^^^^v^v>>^^v><<><<vv>^^^^><^>v>><<<^v>v^^>^v^<^^v>v<^<<>>^v<<<v<<>>v<^v^><vv<v^v>v^<v>><v>^v<<<vv^>v<v>>v>>v><v><v^>v^^v>^v^>>>><>^>v>^v^>>>>v^<<vv<^v><<>v<v^<^^<<v<^v^^v^>vv><vv<v^<^>><^^>^<><^^<v<><^v^v^<^^>^<v><^<v>v^<<<^^v<v>^v>>><>^^>vv<<^v^<<<<^^>>>v>v<<<>^^>>>v>^>v>vv<<>^<^><v^>^^<^<v<<v<^>>^v^<vvv><>v^><<v>^^<v^vv^^^<vvv^<^>^>vv>><^v<^<<v<><<><<^^<><
Muitos parabéns aos papás e que sejam todos muito felizes!
Um abraço para os rapazes e um beijinho à Jee, a quem coube a grande tarefa!
@rpbaltazar
rpbaltazar / config.json
Created September 14, 2016 11:27 — forked from anonymous/config.json
Orifice Calculator Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@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"
  1. Explain how the memory management works on iOS
  2. What is a weak qualifier and when should it be used
  3. Explain the MVC pattern
  4. Explain the MVVM pattern
  5. What are the property qualifiers that define the memory management behaviour?
  6. Describe ARC
  7. What’s the main problem with ARC?
  8. Explain what is dependency injection
  9. Is a block an object?
  10. Describe the behavior of objc_msgSend?

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.

@rpbaltazar
rpbaltazar / kaka-asana_baka-asana.md
Last active January 11, 2016 15:05
Crown and crane positions

Kaka-asana and Baka-asana

Description

Kaka is the crow, baka is the crane, kakakasi is the "eye of the crane", that according to the popular indian tradition its only one, but it can place itself as it wants so it can see in any direction. Baka, the crane, is a lunar waterfowl and hindu consider it as astute and false. Similar both in execution and in the naming, these two asana are easily interchangeable.

  • The mantra that recalls kaka's strength is: Om Sri Kakaya namah
  • The mantra that recalls baka's strength is: Om Sri Bakaya namah
http://www.tftcentral.co.uk/articles/icc_profiles.htm#d
| Model | Colorimeter | Source | Notes | Brightness | Contrast | R | G | B | Preset Mode |
|-------|-------------|--------|-------|------------|----------|---|---|---|-------------|
|Dell U2412M (Custom) | X-rite i1 Pro + LaCie | TFTCentral | A00 | 35 | 75 | 98 | 90 | 92 | Custom Color|

Title

Exploring New York City by cab

Task

In this assignment, you should see yourself as a NYC urban planner who is making some research on people's taxi rides. You were given this new tool, Datacollider and you already have your dataset available in the platform. You are expected to use it to produce a visualization and, answering some questions after you choose the right time window. Some example of questions that may arise from your data inspection: