Skip to content

Instantly share code, notes, and snippets.

View LekoArts's full-sized avatar
ars aurea

Lennart LekoArts

ars aurea
View GitHub Profile
@LekoArts
LekoArts / Windows install
Last active September 1, 2022 05:49 — forked from wardpeet/Windows install
Using Scoop + Powershell to setup new Windows machine
# Disable executionpolicy
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# install scoop
iwr -useb get.scoop.sh | iex
# setup applications
scoop bucket add github-gh https://github.com/cli/scoop-gh.git
scoop bucket add extras
@LekoArts
LekoArts / multiFilter.js
Created May 16, 2019 09:11 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple criteria.
/**
* Filters an array of objects with multiple criteria.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria as the property names
* @return {Array}
*/
function multiFilter(array, filters) {
const filterKeys = Object.keys(filters);
// filters all elements passing the criteria