Skip to content

Instantly share code, notes, and snippets.

View diondirza's full-sized avatar
馃殌
Trying harder for here and hereafter

Dion Dirza diondirza

馃殌
Trying harder for here and hereafter
View GitHub Profile
@diondirza
diondirza / oneliners.js
Created April 2, 2019 06:28 — forked from mikowl/oneliners.js
馃憫 Awesome one-liners you might find useful while coding.
// By @coderitual
// https://twitter.com/coderitual/status/1112297299307384833
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// Type this in your code to break chrome debugger in that line.
@diondirza
diondirza / hosts
Created July 8, 2018 04:30 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo and Reddit
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
151.101.64.217 player.vimeo.com
151.101.129.194 vimeo-hp-videos.global.ssl.fastly.net
151.101.66.109 f.vimeocdn.com
151.101.64.217 vimeo.com
151.101.130.109 i.vimeocdn.com
151.101.64.217 developer.vimeo.com
@diondirza
diondirza / iterm2-solarized.md
Created July 26, 2017 15:31 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k