Skip to content

Instantly share code, notes, and snippets.

View m-arrieta-r's full-sized avatar

Minor Arrieta Rojas m-arrieta-r

View GitHub Profile
@m-arrieta-r
m-arrieta-r / lugares costa rica.md
Last active July 19, 2016 17:01
Sitios web con informacion de lugares costa rica
@m-arrieta-r
m-arrieta-r / stopPropagation.html
Last active July 19, 2016 16:57
Playing around with js events
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bubbling ex</title>
<style>
body {
height: 50vh;
}
.div1 {
@m-arrieta-r
m-arrieta-r / utils.sh
Created August 1, 2016 21:09
fish or bash utils
rm (ls | grep '02\|04\|05\|06\|08')
@m-arrieta-r
m-arrieta-r / regex.md
Last active August 11, 2016 00:04
Utils regex

#Utils regex

##Sintaxis

##Ejemplos ###atom search

\$\{[a-z]*}   //--->    ${anyword}

\$\{([A-Z0-9]*)} //---&gt; ${anywordOrnumber}
document.addEventListener('click', (event) => {
console.log(event.target.toString());
}, true);
// Parameter1 HTMLElement
// Parameter2 callback
var draggable = function(element, onDragFunction) {
var mouseDownEvent;
var onMouseMove = function (mouseMoveEvent) {
onDragFunction(this.mouseDownEvent, mouseMoveEvent);
}
var addMouseDragEvent = function (mouseDownEvent) {
'use strict';
var APP = window.APP = window.APP || {};
APP.ColorSwatches = (function(){
//constants
var SLIDER_NEXT_BTN_CLASS = "swatches-slider-next";
var SLIDER_PREV_BTN_CLASS = "swatches-slider-prev";
var SLIDER_PREV_BTN_ACTIVE_CLASS = "color-swatches__slider-prev--active";
@m-arrieta-r
m-arrieta-r / isItOverflow.js
Created November 2, 2016 22:37
isItOverflow
var getTotalMarginSize = function (element) {
var ml = parseInt(window.getComputedStyle(element).marginLeft);
var mr = parseInt(window.getComputedStyle(element).marginLeft);
return ml+mr;
};
var getChildrenSize = function(container) {
var children = container.children;
var sizeCounter = 0;
curl -XGET -k -v 'https://jenkins.devteamcr.com/view/01.%20Dev%20Server/job/dev_musa_trunk.hotdeploy/build?delay=0sec' --user user:token
@m-arrieta-r
m-arrieta-r / .eslintrc
Last active April 23, 2017 19:51
eslint fuse rules
{
"rules": {
keyword-spacing: [
"warn", {
"before": true,
"after": true,
}],
one-var: ["warn", "never"],
brace-style: "warn",
space-before-function-paren: ["warn", "never"],