Skip to content

Instantly share code, notes, and snippets.

View juanbrujo's full-sized avatar
:octocat:

Jorge Epuñan juanbrujo

:octocat:
View GitHub Profile
@juanbrujo
juanbrujo / querySelectorAll-loop.js
Last active June 8, 2018 15:42
looping through querySelectorAll elements
var elem = document.querySelectorAll(element)
// IE8+
if (elem.length) {
for (var i = 0; i < elem.length; i++) {
elem[i] // iterate over this
}
}
// IE9+
@claudrocker
claudrocker / ConstanteG.md
Last active August 29, 2018 14:57
Explicación constante ₲

Explicación constante ₲

By jorgeepunan

Ya, la explicación de la constante ₲. Pin a esto para futuras referencias y cuando muera que alguien lo lea en mi velorio y en mi lápida que pongan complexGetonbrdCalculus

En un empleo anterior, parte de mi labor era apoyar el reclutamiento de talentos para incorporarlos en la empresa. Por ello pedí el acceso de empresa a GetOnBrd y me puse a chusmear en los candidatos y en los perfiles que se estaban buscando en otras empresas TI. Hice un scrapper en Node que me trajera los valores (dolares) de todas las ofertas que lo tenían publicada, del mismo perfil que estaba yo buscando (webdev) y saqué un promedio. En ese instante eran $800k y pico así que usé el dólar (como GetOnbrd hace) como moneda oficial y lo dividí por el valor promedio que saqué,  y esa es la constante que ven en el código.

Actualicé sólo una vez esa constante ya que me cambié de pega y no tuve más acceso al dashboard y ahora el ₲ sólo fluctúa según el dólar, y expresando el valor prom

@juanbrujo
juanbrujo / getAllUrlParams.js
Created August 29, 2016 12:25
getAllUrlParams.js
/**
* getAllUrlParams( @url );
* url: https://www.sitepoint.com/get-url-parameters-with-javascript/
*/
function getAllUrlParams(url) {
var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
var obj = {};
if (queryString) {
@arogulin
arogulin / VortexRace3ForMac.md
Last active February 7, 2024 15:42
How to setup Vortex Race 3 keyboard for Mac and move Fn key to Home

How to setup Vortex Race 3 for Mac with latest (on 2020-01-05) firmare V1.02.05.

For better understanding we will use the following naming convention:

  [ L1 ][ L2 ][ L3 ][ Space ][ R1 ][ R2 ][ R3 ]
  1. Reset everything by pressing L3+R1 for 5 seconds. Left LED will blink white color while you're holding the keys. Release them after it stopeed blinking.
  2. Get into one of the programmable layers (R2+RShift) – I like red, the super bright laser LED is the least super annoying in red.
  3. Put the keyboard in Windows Mode (Pn+W), it's the least problematic one.
@jaimeguaman
jaimeguaman / regex_celulares_chile
Last active March 23, 2024 01:30
regex validacion celulares chile
/^(\+?56)?(\s?)(0?9)(\s?)[98765432]\d{7}$/
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active March 27, 2024 06:33
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@kevinSuttle
kevinSuttle / meta-tags.md
Last active March 31, 2024 14:26 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active April 17, 2024 18:56
Vanilla JavaScript Quick Reference / Cheatsheet