Skip to content

Instantly share code, notes, and snippets.

@palcalde
palcalde / Products.json
Created June 26, 2020 12:16
Products.json
{
"products": [
{
"code": "VOUCHER",
"name": "Cabify Voucher",
"price": 5
},
{
"code": "TSHIRT",
"name": "Cabify T-Shirt",
@palcalde
palcalde / gitflow-breakdown.md
Created March 18, 2020 16:38 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

# Cabify Mobile Challenge
Besides providing exceptional transportation services, Cabify also runs a physical store which sells (only) 3 products:
```
Code | Name | Price
-------------------------------------------------
VOUCHER | Cabify Voucher | 5.00€
TSHIRT | Cabify T-Shirt | 20.00€
MUG | Cabify Coffee Mug | 7.50€
@palcalde
palcalde / update_pivotal.rb
Created April 26, 2016 15:42
Update pivotal stories that are marked as finished to be delivered when their ID is found in the git commit history
#!/usr/bin/env ruby
require 'pivotal-tracker'
PivotalTracker::Client.token = ENV["PIVOTAL_TRACKER_TOKEN"]
PivotalTracker::Client.use_ssl = true
projects = PivotalTracker::Project.find(ENV["TRACKER_PROJECT_ID"])
stories = projects.stories.all(:state => "finished", :story_type => ['bug', 'feature'])