Skip to content

Instantly share code, notes, and snippets.

@fmarcos83
fmarcos83 / .eslintrc.js
Created September 24, 2016 12:22 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@fmarcos83
fmarcos83 / gist:98c19f99f51e02e5ccce
Created March 2, 2016 14:51 — forked from lsauer/gist:2907369
Google Chrome special pages for memory, debug, resources, profiling, downloads...

####lsauer.com


###Overview of all chrome:// pages.

  • List by calling chrome://about/
  • Following is a direct dump from the 'about' page for reference

###List of Pages as per v20.xxx

@fmarcos83
fmarcos83 / scrollTo.js
Created November 29, 2015 22:43 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
// easing functions http://goo.gl/5HLl8
Math.easeInOutQuad = function (t, b, c, d) {
t /= d/2;
if (t < 1) {
return c/2*t*t + b
}
t--;
return -c/2 * (t*(t-2) - 1) + b;
};
@fmarcos83
fmarcos83 / creational pattern
Last active August 29, 2015 14:14 — forked from anonymous/index.html
Creational pattern
//Creational Pattern Javascript
//three ways to create properties
var object = {};
var object = Object.create(null);
var object = new Object();
//create properties
object.prop1 = 'Value';
object['prop2'] = 'Value3';
var defineProp = function(object, prop, config){
var con = {};
@fmarcos83
fmarcos83 / GIT bash
Created July 18, 2014 12:43
GIt bash layout
#: Title : default template
#: Author : francisco.marcos<fmarcos83@gmail.com>
#: Description : Default template for a programming bash shell
#: Include in your .bashrc config
#colours
function template(){
local black="\033[0;30m"
local blue="\033[0;34m"
local green="\033[0;32m"
use strict;
use warnings;
use Text::TabularDisplay;
use List::Util qw(sum);
my $start = 30_000 || $ARGV[0];
my $end = 100_000 || $ARGV[1];
my $step = 1_000 || $ARGV[2];
my @data;
@fmarcos83
fmarcos83 / gist:3192771
Created July 28, 2012 10:11
Experiment with dir
/**
* A little experiment to continue
*/
class DirectorySelfIterator
{
private $_children = null;
private $_dir = null;
private $_handle = null;
private $_path = null;