Skip to content

Instantly share code, notes, and snippets.

View ChaDonSom's full-sized avatar
🎯
Focusing

ChaDonSom

🎯
Focusing
View GitHub Profile
@ChaDonSom
ChaDonSom / readme.md
Last active April 6, 2023 21:06
Modern Web Development on Crostini

Getting started

  1. Enable Linux on your Chromebook, then start Terminal.
  2. From here, we will mostly focus on the command line in Terminal.

Notes

  • You should regularly (somewhere around weekly - quarterly, and also any time you start on a new machine or install some new package) update your Linux packages:
    sudo apt update
    sudo apt upgrade
    
@ChaDonSom
ChaDonSom / LocalStorage.js
Created March 29, 2020 20:41
Use localstorage as a Vue Composition Api ref
import { ref, watch } from '@vue/composition-api'
export default key => {
let init = localStorage.getItem(key)
const variable = ref(init ? JSON.parse(init) : undefined)
watch(
() => variable.value,
to => {