Skip to content

Instantly share code, notes, and snippets.

View briandiaz's full-sized avatar
馃挱
馃捇 馃尨 馃嚛馃嚧

Brian D铆az briandiaz

馃挱
馃捇 馃尨 馃嚛馃嚧
View GitHub Profile
@ygrenzinger
ygrenzinger / CleanArchitecture.md
Last active April 28, 2025 15:23
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@leonardofed
leonardofed / README.md
Last active April 28, 2025 06:57
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@goncalvesjoao
goncalvesjoao / Gemfile
Last active November 13, 2020 01:52
Changes you need to make in order to make Devise use JWT Header Authentication
# Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile"
gem 'jwt'
@ArunMichaelDsouza
ArunMichaelDsouza / spree.rb
Last active May 9, 2021 04:54
Solidus config for S3 file upload + CDN (Cloudfront) delivery
# Upload new product images to S3 and deliver via Cloudfront
Spree.config do |config|
attachment_config = {
s3_credentials: {
access_key_id: ENV.fetch("S3_ACCESS_KEY"),
secret_access_key: ENV.fetch("S3_SECRET"),
bucket: ENV.fetch("S3_BUCKET"),
},
This gist is the update of this post https://u.osu.edu/hasnan.1/2014/03/30/rails-4-multiple-file-upload-with-carrierwave-nested-form-and-jquery-file-upload/
License MIT
@reneolivo
reneolivo / gist:bc11278492c9c9d7afb2
Last active August 29, 2015 14:10
Incidencia No Discriminacion por Sexo en el Trabajo

Estimad@s,

Un saludo desde FUNCEJI!

Hoy les invito a unirse con nosotros en un proceso de incidencia contra la discriminaci贸n por raz贸n de sexo en el trabajo.

Esto surge por la regular publicaci贸n de requisitos discriminatorios contra hombres y mujeres en anuncios de trabajo, que refuerzan los estereotipos de la sociedad Dominicana y que violan las disposiciones legales nacionales e internacionales de no discriminaci贸n.

Recientemente nos hicieron llegar un anuncio de Supermercados Bravo publicado en Diario Libre, donde se busca un Analista Programador, y uno de los requisitos es el sexo masculino. Hemos pensado en una estrategia que consiste en lo siguiente:

@mlanett
mlanett / rails http status codes
Last active February 3, 2025 11:36
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@briandiaz
briandiaz / MaximunMinimunQuantityOfFolders.cs
Created June 3, 2014 03:22
Get the max number of folders to choose in a way that minimizes the quantity of folders that a person have to check.
/*
* Se tienen 3 personas y los siguientes archiveros:
* k = 3 personas
* Archiveros:
* 10 3 7 8 15 9 4 5
* Cu谩l es el n煤mero de folder m谩ximo a escoger de forma tal que se minimice la cantidad
* de folders que cada persona debe chequear?
*
* Se puede tener:
* 13 30 18: Esto sale de 10+3,7+8+15,9+4+5