This commit is contained in:
Rico Sta. Cruz 2015-09-08 21:16:39 +08:00
parent d96b33fc67
commit 82a1f5d975
5 changed files with 31 additions and 4 deletions

View File

@ -3,6 +3,19 @@ title: Bundler
layout: default
---
### Commands
bundle # same as bundle install
bundle install # installs gems
bundle install -j3 # faster (3 jobs)
bundle update # update all gems
bundle update --source gemname # update specified gem
bundle outdated # show outdated gems
cd `bundle show rails` # inspect a gem's dir
bundle gem # new gem skeleton
### Gems
gem 'hello'

View File

@ -13,11 +13,12 @@ Options:
Request:
--request POST
-X POST # --request
Data options:
-d <data> # --data: HTTP post data, URL encoded (eg, status="Hello")
-d 'data' # --data: HTTP post data, URL encoded (eg, status="Hello")
-d @file # --data via file
-G # --get: send -d data via get
Headers:
@ -43,3 +44,5 @@ SSL:
# Auth/data:
curl -u user:pass -d status="Hello" http://twitter.com/statuses/update.xml
# multipart file upload
curl -v -include --form key1=value1 --form upload=@localfilename URL

6
git.md
View File

@ -116,3 +116,9 @@ Misc
git bisect start HEAD HEAD~10 -- # culprit is among the last test
git bisect run make
git bisect reset
## Searching
git log --grep="fixes things" # search in commit messages
git log -S"window.alert" # search in code
git log -G"foo.*" # search in code (regex)

View File

@ -12,6 +12,7 @@ layout: default
| --- | --- |
| `brew unlink git` | Unlink |
| `brew link git` | Link |
| `brew switch git 2.5.0` | Change versions |
| --- | --- |
| `brew list --versions git` | See what versions you have |
| `brew info git` | List versions, caveats, etc |

View File

@ -47,10 +47,14 @@ layout: default
### Iterables
.filter(n => ...) => Array
.find(n => ...) // es6
.findIndex(...) // es6
.every(n => ...) // ie9+
.some(n => ..) // ie9+
.every(n => ...) => Boolean // ie9+
.some(n => ..) => Boolean // ie9+
.map(n => ...) // ie9+
.reduce((total, n) => total) // ie9+
.reduceRight(...)