Skip to content

Instantly share code, notes, and snippets.

View khoadnguyen's full-sized avatar

Khoa Nguyen khoadnguyen

View GitHub Profile
@B3nnyL
B3nnyL / StorybookVueProjectSetup .md
Last active October 21, 2018 20:58
A simple how-to guide for setting up Storybook+Vue project via StorybookCLI and VueCLI3
  • Step 1: Initiate a Vue project with Vue CLI 3
  • Step 2: Install @storybook/cli@4.0.0-alpha.24 globally: npm i -g @storybook/cli@4.0.0-alpha.24
  • Step 3: Add Storybook to Vue project via storybook CLI: getStorybook
  • Step 4: Update @storybook/vue to 4.0.0-alpha.24: npm i @storybook/vue@^4.0.0-alpha.24
  • Step 5: Install babel-preset-vue as devDependency: npm i -save-dev babel-preset-vue
  • Start storybook and happy storybook time:
@sinedied
sinedied / angular.md
Last active November 8, 2023 22:53
The Missing Introduction to Angular 2 and Modern Design Patterns

Introduction to Angular

Angular (aka Angular 2) is a new framework completely rewritten from the ground up, replacing the famous AngularJS framework (aka Angular 1.x).

More that just a framework, Angular should now be considered as a whole platform which comes with a complete set of tools, like its own CLI, debug utilities or performance tools.

Getting started

@staltz
staltz / introrx.md
Last active July 26, 2024 04:24
The introduction to Reactive Programming you've been missing
@digitaljhelms
digitaljhelms / gist:3099010
Created July 12, 2012 15:58
Squash the first two commits in a git repository's history

The scenario

Your repository has two commits:

$ git log --oneline
957fbfb No, I am your father.
9bb71ff A long time ago in a galaxy far, far away....
@terrancesnyder
terrancesnyder / regex-japanese.txt
Created November 7, 2011 14:05
Regex for Japanese
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)