Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| # http://henrik.nyh.se/2008/12/git-dirty-prompt | |
| # http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
| # username@Machine ~/dev/dir[master]$ # clean working directory | |
| # username@Machine ~/dev/dir[master*]$ # dirty working directory | |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
| # YAML -> CouchDB fixture loader for Rails | |
| # ======================================== | |
| # by Jiri Stransky (http://twitter.com/jistr) | |
| # for use with testing database instances only ;) | |
| # | |
| # What it does: | |
| # * Loads fixtures from "test/fixtures" directory. | |
| # * Permits use of ERB in the fixtures. | |
| # * Uses CouchRest. | |
| # |
| source 'https://rubygems.org' | |
| gem 'rails' | |
| gem 'haml-rails' | |
| gem 'coffee-rails' | |
| gem 'sass-rails' | |
| # Build process dependencies | |
| gem 'uglifier' # javascript compression | |
| gem 'yui-compressor' # css compression |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.