Skip to content

Instantly share code, notes, and snippets.

View nramirez's full-sized avatar
lion mode!

Naz nramirez

lion mode!
View GitHub Profile
@nramirez
nramirez / .babelsrc
Created January 10, 2016 08:50
Gulp, Babel, React and Expressjs
{
"presets": ["es2015", "stage-0"]
}
//This will allow you to use ES6 in the gulpfile
@nramirez
nramirez / gulpfile.babel.js
Last active August 17, 2016 12:34
ES6, Gulp, Browserify and React
'use strict';
import source from 'vinyl-source-stream';
import gulp from 'gulp';
import browserify from 'browserify';
import babelify from 'babelify';
import run from 'run-sequence';
import rimraf from 'rimraf';
import shell from 'gulp-shell';
import server from 'gulp-live-server';
@nramirez
nramirez / longest-increasing-subsecuence.js
Created October 6, 2017 12:50
Longest increasing subsecuence
let highest = [];
longest = (sequence) => {
var ordered = sequence.map(n => n);
ordered.sort((a, b) => a - b);
var matrix = {};
const length = ordered.length;
for (let i = 0; i < length; i++) {
for(let j = 0; j < length; j++) {
@nramirez
nramirez / .gitconfig
Last active November 29, 2023 15:40
.gitconfig
[user]
name = Tu Nombre
email = Tu Correo
[color]
branch = auto
diff = auto
status = auto
ui = true
interactive = auto
[help]
@nramirez
nramirez / LinkedInConnectionsRemover.ts
Last active September 2, 2019 18:57
Delete linkedin connections faster
// Paste this code in https://www.linkedin.com/mynetwork/invite-connect/connections/
// and save 2 clicks when trying to delete a connection
let deleteFriend = () => {
$('.mn-connection-card__dropdown-option-text').click();
setTimeout($('button[data-control-name=confirm_removed]').click(), 500);
};
let handlePointsClick = () => {
setTimeout(deleteFriend , 200);
};
class Thing {
constructor(name) {
this.name = name;
this.__lookupGetter__ = (n) => this[n];
this.is_a = new Proxy(this, {
get: (target, name) => {
if (typeof n === 'symbol') {
return target[n];
}
const propName = `is_a_${name}`;