Skip to content

Instantly share code, notes, and snippets.

View kevinrodbe's full-sized avatar
⚛️
Building Things

Kevin Rodríguez kevinrodbe

⚛️
Building Things
View GitHub Profile
@kevinrodbe
kevinrodbe / cloudSettings
Last active November 6, 2018 17:57
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-08-18T18:39:12.846Z","extensionVersion":"v3.0.0"}
@kevinrodbe
kevinrodbe / rxjs_operators_by_example.md
Created September 10, 2017 06:09 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@kevinrodbe
kevinrodbe / ngrxintro.md
Created September 10, 2017 06:08 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@kevinrodbe
kevinrodbe / es7-class.md
Created July 29, 2017 11:12 — forked from ericelliott/es7-class.md
Let's fix `class` in ES7

Two Simple Changes to Simplify class

I'm not suggesting drastic action. I don't want to break backwards compatibility. I simply want to make the class feature more usable to a broader cross section of the community. I believe there is some low-hanging fruit that can be harvested to that end.

Imagine AutoMaker contained class Car, but the author wants to take advantage of prototypes to enable factory polymorphism in order to dynamically swap out implementation.

Stampit does something similar to this in order to supply information needed to inherit from composable factory functions, known as stamps.

This isn't the only way to achieve this, but it is a convenient way which is compatible with .call(), .apply(), and .bind().

@kevinrodbe
kevinrodbe / basic.md
Created July 27, 2017 08:23 — forked from zenorocha/basic.md
New Firebase Auth vs Old Firebase Auth
@kevinrodbe
kevinrodbe / .zshrc
Created July 23, 2017 12:54 — forked from SlexAxton/.zshrc
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@kevinrodbe
kevinrodbe / angularjs-providers-explained.md
Created July 18, 2017 19:41 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@kevinrodbe
kevinrodbe / protips.js
Created June 20, 2017 10:14 — forked from nolanlawson/protips.js
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");
@kevinrodbe
kevinrodbe / cloudSettings
Last active January 10, 2018 17:03
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-10T17:03:18.501Z","extensionVersion":"v2.8.7"}
@kevinrodbe
kevinrodbe / .profile
Last active May 20, 2021 00:30
Configurar Git SSH Key en windows
# Dentro de C:\Users\myUser\.profile
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }