Skip to content

Instantly share code, notes, and snippets.

View hansanghoon's full-sized avatar

Han, Sanghoon hansanghoon

  • SK Holdings
  • Seoul, South Korea
View GitHub Profile
@hansanghoon
hansanghoon / switch.md
Created February 20, 2018 02:19
Change nodejs link to a specific version using Homebrew on macOS

Note

You can downgrade nodejs to a specific version installed on your mac using brew before.

Downgrade

For example, I want to downgrade node from 9(current/head version) to 6. Simplest way is just unlink and link. Since node@6 is keg-only, we use brew link --force command.

$ node --version
v9.5.0
$ brew unlink node
@hansanghoon
hansanghoon / index.html
Created January 31, 2018 16:01
Vue + Vue-Router + Vuex simple example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue router + Vuex</title>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-router"></script>
<script src="https://unpkg.com/vuex"></script>