Skip to content

Instantly share code, notes, and snippets.

View raulsalinas's full-sized avatar
:octocat:
Focus

Raúl Salinas raulsalinas

:octocat:
Focus
View GitHub Profile
@raulsalinas
raulsalinas / splice-object-array.js
Created August 25, 2018 15:32 — forked from scottopolis/splice-object-array.js
Remove object from array of objects in Javascript
// source: http://stackoverflow.com/questions/16491758/remove-objects-from-array-by-object-property
// we have an array of objects, we want to remove one object using only the id property
var apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}];
// get index of object with id:37
var removeIndex = apps.map(function(item) { return item.id; }).indexOf(37);
// remove object
apps.splice(removeIndex, 1);
@raulsalinas
raulsalinas / media-query.css
Created December 24, 2018 00:04 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@raulsalinas
raulsalinas / .vimrc
Last active October 18, 2020 16:09
neovim config
set number
set mouse=a
set numberwidth=1
set clipboard=unnamed
syntax enable
set showcmd
set ruler
set cursorline
set encoding=utf-8
set showmatch
@raulsalinas
raulsalinas / 01 - Crear columna duplicado.sql
Last active November 13, 2021 05:05
Depuración de tabla tesoreria.cliente e inserción a tabla contabilidad.adm_contri y comercial.com_cliente
ALTER TABLE tesoreria.cliente
ADD COLUMN duplicado BOOLEAN;