Skip to content

Instantly share code, notes, and snippets.

View thanhan008's full-sized avatar

Trần Thanh Ân thanhan008

View GitHub Profile
@thanhan008
thanhan008 / _invoice.tpl.htm
Created January 5, 2021 07:15 — forked from Encosia/_invoice.tpl.htm
Remote template loading with jQuery Templates
<script id="invoiceTemplate" type="x-jquery-tmpl">
<table class="invoice">
<thead>
<tr>
<th>Service/Item</th>
<th>Price</th>
<th>Qty</th>
</tr>
</thead>
<tbody>
@thanhan008
thanhan008 / alias_matchers.md
Created June 11, 2020 06:18 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@thanhan008
thanhan008 / alias_matchers.md
Created June 11, 2020 06:18 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
Clone a respository to local:
$ git clone [URL or SSH name] -> clone a respository to local.
Init a git for current folder:
$ git init -> init a git for current folder
Show branch list:
$ git branches -> show branch
Go to a branch with name. It can be used to check out a branch from remote after git fetch:
$ git checkout [branche name]
Create a branch from current branch:
$ git checkout -b [branch name] > create a new branch with name