- Cmd + Shift + N: Open file searcher
- Cmd + 1: toggle project explorer
- Cmd + Shift + T: open corresponding test file
- Cmd + B: go to definition
- Cmd + E: Recent Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell -${SHELL} | |
defscrollback 10000 | |
hardstatus string '%H:%' | |
bindkey -k F1 prev | |
bindkey -k F2 next | |
caption always "%{= kc}load: %l | %{W} %-w%{+br}%n %t%{-br}%+w %-21=%{= .m}%D %d.%m.%Y %0c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table books (tags varchar(1000)); | |
insert into books values | |
('A, B, C, D'), | |
('D, E'), | |
('F'), | |
('G, G, H') | |
; | |
select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table nick(a varchar, b varchar, num integer); | |
insert into nick values ('a', 'a', 2), ('b', 'b', 1), ('c', 'c', 3); | |
with R as ( | |
select a, b, generate_series(1, num) from nick | |
) | |
select a, b from R; |
I hereby claim:
- I am nvquanghuy on github.
- I am nvquanghuy (https://keybase.io/nvquanghuy) on keybase.
- I have a public key whose fingerprint is BA03 1572 5DAF 7195 03E0 2DEE 9181 4298 F4C5 39AD
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a resizeEnd event trigger | |
$(function () { | |
$(window).resize(function () { | |
if (this.resizeTO) clearTimeout(this.resizeTO); | |
this.resizeTO = setTimeout(function () { | |
$(this).trigger('resizeEnd'); | |
}, 500); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JsonCoder | |
# Called to deserialize data to ruby object. | |
def load(data) | |
d = Oj.load(data || '{}') | |
d.recursive_symbolize_keys | |
end | |
# Called to convert from ruby object to serialized data. | |
def dump(obj) | |
obj.kind_of?(String) ? obj : Oj.dump(obj, mode: :compat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# p1.conf | |
<source> | |
type http | |
port 20001 | |
</source> | |
include shared.conf | |
# p2.conf | |
<source> | |
type http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# File location: ~/.nvm/ | |
DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
source "$DIR/nvm.sh" | |
if [ ! "$NODE_VERSION" ]; then | |
echo 'NODE_VERSION not set' | |
exit 1 |