I hereby claim:
- I am jordelver on github.
- I am jordelver (https://keybase.io/jordelver) on keybase.
- I have a public key whose fingerprint is FCF1 85F0 6DBF 112D 8F8E DEEC CAE8 72D7 E87D 5AFF
To claim this, I am signing this object:
| local RemoveComments = function() | |
| local ts = vim.treesitter | |
| local bufnr = vim.api.nvim_get_current_buf() | |
| local ft = vim.bo[bufnr].filetype | |
| local lang = ts.language.get_lang(ft) or ft | |
| local ok, parser = pcall(ts.get_parser, bufnr, lang) | |
| if not ok then return vim.notify("No parser for " .. ft, vim.log.levels.WARN) end | |
| local tree = parser:parse()[1] |
| local RemoveComments = function() | |
| local ts = vim.treesitter | |
| local bufnr = vim.api.nvim_get_current_buf() | |
| local ft = vim.bo[bufnr].filetype | |
| local lang = ts.language.get_lang(ft) or ft | |
| local ok, parser = pcall(ts.get_parser, bufnr, lang) | |
| if not ok then return vim.notify("No parser for " .. ft, vim.log.levels.WARN) end | |
| local tree = parser:parse()[1] |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
I hereby claim:
To claim this, I am signing this object:
From
{
:FNAME => attributes.contact_first_name,
:LNAME => attributes.contact_last_name,
:LEVEL => attributes.level,
:COUNTRY => attributes.country,
:TWITTER => attributes.twitter,
:JOIN_DATE => attributes.join_date,In the root of my project I have a directory called features. I also have a Git branch called origin/feature-add-coupon-code-to-report.
When I do git co fe<TAB> the Git branch is matched and completed to git co origin/feature-add-coupon-code-to-report which seems strange to me.
Shouldn't the local directory be matched before the branch give that feature is not present at the start of the branch name?
If I type 3 or more characters then it completes to git co features/.
What is the expected behaviour?
| require "mechanize" | |
| USERNAME = ENV.fetch("USERNAME") do | |
| puts "Letterboxd USERNAME environment variable must be supplied" | |
| exit | |
| end | |
| WATCHLIST = "http://letterboxd.com/%s/watchlist/" % USERNAME | |
| agent = Mechanize.new |
| if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) | |
| silent !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| silent !vim +PluginInstall +qall | |
| endif |
Person = Struct.new(:name, :age)
peeps = [
Person.new("Jordan", 33),
Person.new("Bob", 19),
Person.new("Frank", 55)
]Learnt this from Avdi Grimm's Ruby Tapas
def content_for(tag, content = yield)
"<%s>%s</%s>" % [tag, content, tag]
end
content_for("p", "hi")
=> "<p>hi</p>"