Skip to content

Instantly share code, notes, and snippets.

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

Bùi Minh Vũ vub

🚀
Make it launch!
View GitHub Profile
@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 / 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 / LayoutComponent.md
Last active June 24, 2019 08:30
Layout component

Fly component

  • Toast

  • Snack bar

  • Dialog

  • Alert

  • Popup

  • Popover

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 / .gitignore
Created April 3, 2019 08:13 — forked from iffy/.gitignore
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot
@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'
{
"\u00e1\u00bb\u00a3": "ợ",
"\u00e1\u00bb\u009b": "ớ",
"\u00e1\u00bb\u0085": "ễ",
"\u00c3\u00a0": "à",
"\u00c6\u00a1": "ơ",
"\u00e1\u00bb\u0083": "ể",
"\u00c5\u00a9": "ũ",
"\u00c6\u00b0": "ư",
"\u00c3\u00ba": "ú",
@vub
vub / Nginx setup
Last active January 2, 2019 03:24
Setup Grafana
sudo service nginx start
sudo systemctl restart nginx.service
@vub
vub / Expose
Created December 27, 2018 10:48
Server maintainer
# Linux Distribution Name and Version
cat /etc/*-release
lsb_release -a
uname -a
cat /proc/version
# Displaying Detailed Hardware Information
lshw -short
lscpu
lsblk
@vub
vub / gist:d021e7acce667e20f00d2676a30a989b
Created November 13, 2018 02:57
Image error replace
onError={ e => {e.target.src = '/person.png'; }}