scss.tmbundle
https://github.com/marioricalde/scss.tmbundle
The TextMate SCSS Official Bundle. Now Compatible with SublimeText2.
Gitlab::Utils::StrongMemoize#strong_memoize
Instead of writing patterns like this:
def trigger_from_token
return @trigger if defined?(@trigger)
@trigger = Ci::Trigger.find_by_token(params[:token].to_s)
end
We could write it like:
include Gitlab::Utils::StrongMemoize
def trigger_from_token
strong_memoize(:trigger) do
Ci::Trigger.find_by_token(params[:token].to_s)
end
endEdit
git clone [email protected]:marioricalde/scss.tmbundle.git
cd scss.tmbundle
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Utils--StrongMemoize-strong_memoize-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Utils::StrongMemoize#strong_memoize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Utils--StrongMemoize-strong_memoize-for-pr
hub pull-request
# Celebrate!