Skip to content

Instantly share code, notes, and snippets.

View hoangbits's full-sized avatar
🏝️
Working from earth

Le Gia Hoang hoangbits

🏝️
Working from earth
  • Thanh Hoa, Vietnam
  • 03:27 (UTC +07:00)
View GitHub Profile
@hoangbits
hoangbits / git shortcut
Last active August 24, 2017 06:53
source ~/.bash_profile
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
alias gau='git add --update'
alias gb='git branch'
alias gbd='git branch --delete '
alias gc='git commit'

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@hoangbits
hoangbits / index.html
Last active July 31, 2017 04:12
css box-sizing
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='style.css'>
</head>
<body>
<h1 class="title">My App </h1>
<div class="app">
https://udacity.github.io/frontend-nanodegree-styleguide/css.html#type-selectors
https://udacity.github.io/frontend-nanodegree-styleguide/javascript.html
<div class="row">
<div class="col-lg-12">
<% if (typeof success_msg !== 'undefined' && success_msg) { %>
<div class="alert alert-success"><%= success_msg %></div>
<% } %>
<% if(typeof error_msg !== 'undefined'){ %>
<div class="alert alert-danger"><%= error_msg %></div>
<% } %>
<% if (typeof error !== 'undefined' && error){ %>
<div class="alert alert-danger"><%= error %></div>
npm i -g npm-check-updates
npm-check-updates -u
npm install
{
"extends": "airbnb",
"disallowMultipleVarDecl": false,
"rules": {
"one-var": 0,
"comma-dangle": 0,
"max-len": [0, 120, 4],
"indent": [2, 4],
"key-spacing": [2, {
"beforeColon": false,
{
"extends": "airbnb",
"disallowMultipleVarDecl": false,
"rules": {
"one-var": 0,
"comma-dangle": 0,
"max-len": [0, 120, 4],
"indent": [2, 4],
"key-spacing": [2, {
"beforeColon": false,
<h:form>
<h:commandButton value="Deposit"
action="#{nganLuongBean.sentRequest}">
<f:ajax render="popup" />
</h:commandButton>
<h:panelGroup id="popup">
<ui:fragment rendered="#{not empty nganLuongBean.link_checkout}">
<script>
window
02-10 18:08:11.221 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.233 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.241 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.349 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.353 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.357 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.361 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.365 12592-12592/? W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.441 12592-12592/com.example.hoanglg.exchangerateviewer W/Zygote: Zygote SIGCHLD error in waitpid: No child processes
02-10 18:08:11.441 12592-12592/com.example.hoanglg.exchangerateviewer W/Zygote: Zygote SIGCHLD error in waitpid: No child processes