Skip to content

Instantly share code, notes, and snippets.

View daylennguyen's full-sized avatar
🐿️

Daylen Nguyen daylennguyen

🐿️
  • University of Washington
  • Seattle, Washington
View GitHub Profile

Keybase proof

I hereby claim:

  • I am daylennguyen on github.
  • I am flanyan (https://keybase.io/flanyan) on keybase.
  • I have a public key ASAPjtTBlg55qsqrMTo6EE577-Q3vtt4VR1wLukDrafQ7Qo

To claim this, I am signing this object:

@daylennguyen
daylennguyen / ls_filter.sh
Created September 29, 2020 22:39
UNIX Linux MacOS Filter the output of ls for specific file format(s)/type(s)
#!/usr/bin/env bash
ls *.{mp3,exe,mp4}
@daylennguyen
daylennguyen / js-oneliner.js
Created December 20, 2019 17:05 — forked from hk-skit/js-oneliner.js
Useful Array One-liners.
// Remove Duplicates from an array
const removeDuplicates =
arr => arr.filter((item, index) => index === arr.indexOf(item));
const removeDuplicates1 = array => [...new Set(array)];
const removeDuplicates2 = array => Array.from(new Set(array));
// Flattens an array(doesn't flatten deeply).