Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nguyễn Thành Luân lrandom

🏠
Working from home
View GitHub Profile
@lrandom
lrandom / PhpStorm Keyboard Shortcuts.md
Created Aug 27, 2020 — forked from koomai/PhpStorm Keyboard Shortcuts.md
Frequently Used PhpStorm Keyboard Shortcuts
View PhpStorm Keyboard Shortcuts.md

Note: Some of these shortcuts have been remapped for my own convenience (Preferences->Keymap). These are Mac shortcuts, just use the Windows/Linux equivalent of the Cmd/Option/Ctrl/Del keys.

####Search, Go to, Navigation ####

Cmd + P - Search file

Cmd + Shift + O - Search everywhere

(I swapped the above two recently because I use Cmd + P to search for files most of the time).

@lrandom
lrandom / cycle-metasyntactic-variables.vim
Created Dec 1, 2018 — forked from hail2u/cycle-metasyntactic-variables.vim
'foo', 'bar', 'baz', 'qux', 'quux', 'corge', 'grault', 'garply', 'waldo', 'fred', 'plugh', 'xyzzy', 'thud'の上で<C-a>/<C-x>すると順にサイクルしてくれるやつ。レジスター使ってる。
View cycle-metasyntactic-variables.vim
" Cycle metasyntactic variables
function! s:CycleMetasyntacticVariables(num)
if type(a:num) != type(0)
return
endif
let vars = ['foo', 'bar', 'baz', 'qux', 'quux', 'corge', 'grault', 'garply', 'waldo', 'fred', 'plugh', 'xyzzy', 'thud']
let cvar = expand('<cword>')
let i = index(vars, cvar)
@lrandom
lrandom / USstates_avg_latLong
Created Jul 7, 2018 — forked from meiqimichelle/USstates_avg_latLong
JSON of US states (full names) and their average lat/long
View USstates_avg_latLong
[
{
"state":"Alaska",
"latitude":61.3850,
"longitude":-152.2683
},
{
"state":"Alabama",
"latitude":32.7990,
"longitude":-86.8073