Skip to content

Instantly share code, notes, and snippets.

View olie-chan's full-sized avatar
🤘

Olie Chan olie-chan

🤘
  • UK
View GitHub Profile
@olie-chan
olie-chan / download.js
Created May 8, 2022 19:41
Download all videos on a webpage
function download() {
Array.from(document.querySelectorAll('video')).forEach((video) => {
const { src } = video
const a = document.createElement('a')
a.href = src
a.download = true
document.body.prepend(a)
a.click()
@olie-chan
olie-chan / README-Template.md
Created February 11, 2020 12:11 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@olie-chan
olie-chan / init.vim
Created April 25, 2019 21:41 — forked from celso/init.vim
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@olie-chan
olie-chan / cloudSettings
Created January 18, 2018 16:28
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-18T16:28:25.288Z","extensionVersion":"v2.8.7"}