Skip to content

Instantly share code, notes, and snippets.

View elib0's full-sized avatar
🏠
Working from home

Eli j. Chavez elib0

🏠
Working from home
View GitHub Profile
@elib0
elib0 / compile-aseprite-win.md
Created October 17, 2024 15:57 — forked from Mitra-88/compile-aseprite-win.md
Compile Aseprite from source code for Windows 11/10 x64
@elib0
elib0 / README.txt
Last active December 15, 2022 16:55
Configuración de Vs Code 2023
Dump extensions:
code --list-extensions > extensions_list.txt
Install extensions with Bash (Linux, OS X and WSL):
cat extensions_list.txt | xargs code --list-extensions {}
Install extensions on Windows with PowerShell:
cat extensions_list.txt |% { code --install-extension $_}
/**
* @description
* Takes an Array<V>, and a grouping function,
* and returns a Map of the array grouped by the grouping function.
*
* @param list An array of type V.
* @param keyGetter A Function that takes the the Array type V as an input, and returns a value of type K.
* K is generally intended to be a property key of V.
*
* @returns Map of the array grouped by the grouping function.
@elib0
elib0 / BitMEX Jazz BEEP
Created July 30, 2020 19:06 — forked from strikeout/BitMEX Jazz BEEP
Aural indication of XBTUSD price movements via BitMEX websocket realtime-trade data. Uses the blues scale to add some funk to your trading. Copy & paste into your browser's console..
/**
* BitMEX JAZZ BEEP
*
* Aural indication of XBTUSD price movements via BitMEX websocket realtime-trade data.
* Uses the blues scale to add some funk to your trading.
*
*/
var options = {
@elib0
elib0 / android-release.sh
Created January 9, 2020 01:35 — forked from j3k0/android-release.sh
Generate an android release build with cordova
#!/bin/bash
cd "$(dirname "$0")"
ROOT_DIR="$(pwd)"
FINAL_APK="${FINAL_APK:-$ROOT_DIR/android-release-$(date +%Y%m%d-%H%M).apk}"
KEYSTORE="${KEYSTORE:-$ROOT_DIR/android-release.keystore}"
if test ! -e "$KEYSTORE"; then
echo "ERROR: Keystore file $KEYSTORE not found."
@elib0
elib0 / main.ts
Created November 26, 2019 17:36
Retorna rango de fecha(inicio - fin) de un mes
getWeeksInMonth(year: number, month: number) {
const weeks = [];
const firstDay: Date = new Date(year, month, 1);
const lastDay: Date = new Date(year, month + 1, 0);
const daysInMonth: number = lastDay.getDate();
let dayOfWeek: number = firstDay.getDay();
let start: number;
let end: number;
@elib0
elib0 / cloudSettings
Last active May 6, 2020 02:00
VsCode Sync
{"lastUpload":"2020-05-06T02:00:37.303Z","extensionVersion":"v3.4.3"}
@elib0
elib0 / bancos
Created September 21, 2017 14:46 — forked from xombra/bancos
Codigo y Bancos correspondientes de Venezuela
Banco:
<select name="banco">
<option value=""></option>
<option value="0156">100%BANCO</option>
<option value="0196">ABN AMRO BANK</option>
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option>
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option>
<option value="0166">BANCO AGRICOLA</option>
<option value="0175">BANCO BICENTENARIO</option>
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option>
@elib0
elib0 / http.php
Created March 21, 2017 19:03
simple http request example in php
<?php
/*
* simple HttpRequest example using PHP
* tom slankard
*/
class HttpRequest {
public $url = null;