Skip to content

Instantly share code, notes, and snippets.

View vub's full-sized avatar
🚀
Make it launch!

Vu Bui vub

🚀
Make it launch!
View GitHub Profile
@vub
vub / Nginx setup
Last active January 2, 2019 03:24
Setup Grafana
sudo service nginx start
sudo systemctl restart nginx.service
{
"\u00e1\u00bb\u00a3": "ợ",
"\u00e1\u00bb\u009b": "ớ",
"\u00e1\u00bb\u0085": "ễ",
"\u00c3\u00a0": "à",
"\u00c6\u00a1": "ơ",
"\u00e1\u00bb\u0083": "ể",
"\u00c5\u00a9": "ũ",
"\u00c6\u00b0": "ư",
"\u00c3\u00ba": "ú",
@vub
vub / build-installer.js
Last active April 2, 2019 08:36
Angular electron build app
var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
appDirectory: './dist/build/Release/app-win32-ia32',
outputDirectory: './dist/',
exe: 'app.exe',
setupExe: 'app.exe',
noMsi: true,
authors: 'vubui',
description: 'App'
@vub
vub / .gitignore
Created April 3, 2019 08:13 — forked from iffy/.gitignore
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@vub
vub / LayoutComponent.md
Last active June 24, 2019 08:30
Layout component

Fly component

  • Toast

  • Snack bar

  • Dialog

  • Alert

  • Popup

  • Popover

@vub
vub / destructuring.js
Created August 13, 2019 06:34 — forked from mikaelbr/destructuring.js
Complete collection of JavaScript destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@vub
vub / SCSS Technique.md
Last active October 9, 2019 08:18
Coding

Một số kĩ thuật viết SCSS đảm bảo tính tái sử dụng, đóng gói và dễ maintain:

I. Một số "lỗi" thường gặp khi viết SCSS

a. 2 component có view giống y hệt nhau nhưng thực sự chúng là 2 component khác nhau và cần phải viết CSS riêng

=> Nhầm tưởng là một và dùng chung CSS

=> quá nhiều global css và sửa chỗ này hỏng chỗ khác

@vub
vub / _webserver.md
Created November 24, 2019 05:58 — forked from jgravois/_webserver.md
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@vub
vub / model.js
Last active December 2, 2019 01:56
export default TEST = {
createdAt: '2019/12/11 00.00.000',
updatedAt: '2019/12/11 00.00.000',
publishAt: '2019/12/11 00.00.000',
views: 1000,
taken: 100,
homeworkId: Object('12345'),
name: 'Listening test',
description: 'This test get from ABC IELTS book',
type: 'reading || listening || writing',