This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
### | |
# Returns a code that determine whether local branch and its origin's counterpart | |
# are in sync. In sync, in this case, means there's no commits in local branch | |
# that have not been pushed to the origin. In short, it means the following | |
# command returns nothing. | |
# | |
# git log {branch} --not origin/{branch} | |
# | |
# The code will be be in `$?` variable after the funciton call. | |
# The status code can be: |
### | |
# | |
# Echo string in color based on `--type`. | |
# Read `colorEcho()` funncton for more info on type. | |
# | |
# AUTHOR: | |
# | |
# Saophalkun Ponlu (phalkunz@gmail.com) | |
# | |
### |
/** | |
* A really simple template function. | |
* | |
* USAGE: | |
* | |
* 1. Ivoke `prepareTemplate(template)` by provide template string as an argument | |
* 2. The above invocation returns another function which called by with data argument | |
**/ | |
function prepareTemplate(template) { |
""" | |
" USAGE: | |
" | |
" 1. Place the cursor in the rule that you want to look up | |
" 2. :SCSSShowRulePath | |
""" | |
command! ScssShowRulePath :call ScssRulePath() | |
function! ScssRulePath() | |
let start_line_num = 0 |
/** | |
* Usage: | |
* | |
* Set custom (percentage or absolute) width on .video-outer-wrapper | |
* | |
* ``html | |
* <div class="video-outer-wrapper"> | |
* <div class="video-wrapper"> | |
* <iframe ... ></iframe> | |
* </div> |
(function() { | |
var __timerIDs = {}; | |
/** | |
* Make sure the callback won't run more than once | |
* during a specified duration. | |
* | |
* This function relies on variable __timerIDs | |
* in outer scope. | |
* |
{ | |
... | |
"scripts": { | |
"post-install-cmd": "(cd .git/hooks/; ln -s -f ../../mysite/tools/git-pre-commit-hook ./pre-commit)" | |
}, |