Skip to content

Instantly share code, notes, and snippets.

View romelperez's full-sized avatar
:electron:
Creating epic shit!

Romel Perez romelperez

:electron:
Creating epic shit!
View GitHub Profile
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
*
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
* http://lesscss.org
*/
@romelperez
romelperez / vulcan-estudios-training.md
Last active November 21, 2016 22:56
vulcan-estudios-training.md

Capacitación

Metodologías

  • Cómo elegir la metodología correcta para cada equipo de desarrollo? Cuál es tu experiencia con metologías ágiles?
  • Cuál es tu herramienta favorita para llevar el tracking del proceso de desarrollo y la comunicación con los clientes?

General

  • Sobre testing: Cómo decidir qué testear? Teniendo en cuenta: tamaño, complejidad e inversión.
# JAVASCRIPT
'.source.js, .source.ts, .source.tsx':
'Require':
'prefix': 'req'
'body': 'const ${1:module} = require(\'${1:module}\');'
'Module Exports':
'prefix': 'export'
'body': 'module.exports = $1;'
'Import':
'prefix': 'import'
@romelperez
romelperez / throttle.js
Last active August 4, 2016 04:27
A throttle function for JavaScript.
/**
* Returns a function that will be called once in an interval of time right
* away when it is called.
*
* @param {Function} func - The function to throttle.
* @param {Number} interval - Time in milliseconds.
* @param {Function} gate - The function to validate the throttle. If it return
* true, we prevent the throttle.
*
* @return {Function}
@romelperez
romelperez / linux-shortcuts.sh
Last active December 28, 2017 21:56
Linux shortcuts commands
# Line count
find ./ -name '*.js' | xargs wc -l
# Convert webp files whithin directory to png
find ./ -name "*.webp" -exec dwebp {} -o {}.png \;
# Generate random string
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
@romelperez
romelperez / jquery.plugin.js
Last active November 22, 2016 17:17
A jQuery plugin boilerplate
const NAME = 'pluginName';
const methods = {
method1: function () {
const conf = this.data(`${NAME}-config`);
if (!conf) return this;
@romelperez
romelperez / array.methods.js
Created February 1, 2015 22:24
JavaScript Array Methods
// ARRAY METHODS //
// array.concat(item...)
var a = ['a', 'b', 'c'];
var b = ['x', 'y', 'z'];
var c = a.concat(b, true);
// c is ['a', 'b', 'c', 'x', 'y', 'z', true]
// array.join(separator)
var a = ['a', 'b', 'c'];