Skip to content

Instantly share code, notes, and snippets.

View israelss's full-sized avatar
📚
Learning 📚

Israel Sant'Anna israelss

📚
Learning 📚
View GitHub Profile
@israelss
israelss / range.js
Created May 29, 2017 16:45 — forked from Woodsphreaker/range.js
range.js
const range = (start = 0, end = 1) => Array.from({"length": (end + 1) - start})
.map((_, i) => start + i);
console.log(range(-10, 10)); // [ -10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
@israelss
israelss / keyindicator
Created February 7, 2017 03:34
Script to display [Caps/Num/Scroll]Lock on Polybar
#! /usr/bin/env bash
#
# Copyright 2016 Israel Sant'Anna <israelsantanna at gmail dot com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,