Skip to content

Instantly share code, notes, and snippets.

View gabrielseco's full-sized avatar
💭
I may be slow to respond.

Gabriel García Seco gabrielseco

💭
I may be slow to respond.
View GitHub Profile
@gabrielseco
gabrielseco / README.md
Last active October 28, 2019 09:26
Flow Recipes

How to make Union Types from Objects

const FilterA = Object.freeze({
  ALL: 'ALL',
  COMPLETED: 'COMPLETED',
  UNCOMPLETED: 'UNCOMPLETED'
});
@gabrielseco
gabrielseco / GITHUB.MD
Last active December 1, 2021 11:30
Git commands

Clean files modified and not staged

git checkout -- .

Create branch from commit

git checkout -b <name-branch> <commit-sha>
@gabrielseco
gabrielseco / range.js
Created February 25, 2017 19:32
Rx Range
var source = Rx.Observable.range(1, 5);
source.subscribe(next => {
console.log('next value', next)
}, error => {
console.log('err', err);
}, () => console.log('completed'))
"""
Django settings for exampleapp project.
Generated by 'django-admin startproject' using Django 1.9.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
@gabrielseco
gabrielseco / randomCapitalization.js
Created September 23, 2016 19:17
Random capitalization
/*
INSPIRED BY JOHN GREEN'S BOOK PAPER TOWNS
DEMO: http://codepen.io/GGarciaSeco/pen/mAWAyk
*/
String.prototype.capitalize = function(){
return Math.round(Math.random()) === 1 ? this.charAt(0).toUpperCase() + this.slice(1) + " ": this;
}
@gabrielseco
gabrielseco / css_resources.md
Last active August 29, 2015 14:25 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@gabrielseco
gabrielseco / 0_reuse_code.js
Last active August 29, 2015 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gabrielseco
gabrielseco / SassMeister-input-HTML.html
Created June 13, 2014 12:07
Generated by SassMeister.com.
<h1>hola</h1>
<ul>
<li>Hola</li>
<li>Adios</li>
</ul>