Skip to content

Instantly share code, notes, and snippets.

View fpinzn's full-sized avatar

Francisco Pinzón fpinzn

  • Bogotá, Colombia
View GitHub Profile
@fpinzn
fpinzn / pprogress.js
Created April 5, 2015 09:04
Progress bar for node that will use the whole width of the output buffer by default.
var ProgressBar = require('progress');
/*
`events` are for higher levels to call, `ticks` are progress bar marks.
an `event` can be a downloaded chunck of a file or an archived copied.
*/
var event2tickRatio, currentTickCount = 0, ticksMarked = 0;
// progress bar that occupies whole buffer window.
var pB = new ProgressBar(':bar', { total: process.stdout.columns });

Guia de estilo de contenidos de La Petite Table

Este documento describe el conjunto de buenas practicas a ser seguidas en la administración de la aplicación web de La Petite Table. La lista de reglas debe ser seguida en todo momento. El espíritu de esta guia es ser coherente con las buenas costumbres ideomáticas y respetar el diseño de la aplicación a través del ajuste de los contenidos que alimentan el website.

La buena ortografía es vital para transmitir una sensación de calidad en la marca de LPT.

1. Fotos

1.1 Fotos de los Chefs

@fpinzn
fpinzn / keymap.cson
Created October 27, 2017 00:32
Move to next pane using alt-tab
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
@fpinzn
fpinzn / nested_config_not_working.rb
Created June 28, 2018 17:48
dry-validation nested config inside rules not working
InnerSchema = Dry::Validation.Schema do
configure do
option :letter_array
end
required(:letter).filled(:str?)
validate(letter_in_array: :letter) do |letter|
letter_array.include?(letter)
end
@fpinzn
fpinzn / PROCESS.md
Last active October 8, 2020 04:49
## Average life of all PRs in the organization
  1. Auth

Simple auth using a token retrieved from the github ui.

curl -u fpinzn:token https://api.github.com/user

  1. Get all PRs from a repo https://api.github.com/repos/vlipco/waybox-api/pulls

  2. Get all repos from an organization