Skip to content

Instantly share code, notes, and snippets.

View lmfresneda's full-sized avatar

Luis Miguel lmfresneda

View GitHub Profile
{
"name": "Crypto Price",
"version": "1.0",
"url_ws": "wss://streamer.cryptocompare.com/",
"base_api": "https://min-api.cryptocompare.com/data/",
"default_exchange": "Bitfinex",
"exchanges": {
"Bitstamp": [
"BTC|USD,EUR",
"ETH|USD,EUR",
@lmfresneda
lmfresneda / remove_duplicates.js
Last active January 17, 2021 15:36
Remove duplicates from an array of objects in javascript
// FUN METHOD
/**
* Remove duplicates from an array of objects in javascript
* @param arr - Array of objects
* @param prop - Property of each object to compare
* @returns {Array}
*/
function removeDuplicates( arr, prop ) {
let obj = {};
return Object.keys(arr.reduce((prev, next) => {
@lmfresneda
lmfresneda / webstorm.bat
Last active September 21, 2016 06:54 — forked from amnuts/phpstorm.bat
Add context menu to Windows 7 to open file/folder in PhpStorm
@echo off
SET WebStormPath=C:\Program Files (x86)\JetBrains\WebStorm 2016.1.1\bin\WebStorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_SZ /v "" /d "Open in WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open in WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f
echo Adding folder entries
@lmfresneda
lmfresneda / Crear archivo CSV con array de objecto en Javascript.markdown
Last active July 11, 2022 22:14
Crear archivo CSV con array de objecto en Javascript
@lmfresneda
lmfresneda / Coverage & Data Transmission HTML+CSS+JS.markdown
Last active September 26, 2015 09:45
Coverage & Data Transmission HTML+CSS+JS
@lmfresneda
lmfresneda / Coverage HTML+CSS+JS.markdown
Last active September 15, 2015 17:47
Coverage HTML+CSS+JS