Skip to content

Instantly share code, notes, and snippets.

View ggsalas's full-sized avatar

Gabriel Salas ggsalas

View GitHub Profile
@ggsalas
ggsalas / multipleSelect.js
Created May 28, 2019 13:52
multiple selection array, inspired on selection of gmail list of emails
// Reusable function to select multimple itens
// with start and end element
// array: array of elements to select
// selection: previously selected elements
// start: first element selected
// end: last element selected
function multipleSelect(array, selection, start, end) {
const startIndex = array.findIndex(item => item == start)
const endIndex = array.findIndex(item => item == end)
{
"suggest.echodocSupport": true,
"suggest.maxCompleteItemCount": 20,
"prettier.eslintIntegration": true,
"prettier.tslintIntegration": true,
"coc.preferences.formatOnSaveFiletypes": ["javascript", "typescript", "typescriptreact", "json", "javascriptreact"],
"eslint.filetypes": ["javascript", "typescript", "typescriptreact", "javascriptreact"],
"diagnostic.errorSign": "x",
"diagnostic.warningSign": "i",
"diagnostic.infoSign": "-"
@ggsalas
ggsalas / .tmux.conf
Created August 11, 2019 01:54
Tmux config
unbind-key C-b
set-option -g prefix C-s
bind-key -r C-s send-prefix
set-environment -g "LC_ALL" "en_US.UTF-8"
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color*:Tc:smso"
# Allow us to reload our Tmux configuration while
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
@ggsalas
ggsalas / alarcitty.yml
Created August 11, 2019 01:55
Alarcitty config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@ggsalas
ggsalas / Diario Perfil_1003.recipe
Last active November 6, 2019 01:19
Recipe for Calibre to get https://www.perfil.com
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
from calibre import strftime
class AdvancedUserRecipe1572824592(BasicNewsRecipe):
title = 'Diario Perfil'
oldest_article = 1
max_articles_per_feed = 35
@ggsalas
ggsalas / Diario La Capital de Mar del Plata_1005.recipe
Created November 6, 2019 01:19
Recipe for Calibre to get lacapitalmdp.com
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import AutomaticNewsRecipe
from calibre import strftime
class BasicUserRecipe1572999042(AutomaticNewsRecipe):
title = 'Diario La Capital de Mar del Plata'
oldest_article = 1
max_articles_per_feed = 35
@ggsalas
ggsalas / Clarin_1000.recipe
Created November 6, 2019 01:20
Recipe for Calibre to get clarin.com
#!/usr/bin/env python2
# -*- mode: python -*-
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
__license__ = 'GPL v3'
__copyright__ = '2008-2016, Darko Miletic <darko.miletic at gmail.com>'
'''
clarin.com
'''