A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| CGFloat ScaleToAspectFitRectInRect(CGRect rfit, CGRect rtarget) | |
| { | |
| // first try to match width | |
| CGFloat s = CGRectGetWidth(rtarget) / CGRectGetWidth(rfit); | |
| // if we scale the height to make the widths equal, does it still fit? | |
| if (CGRectGetHeight(rfit) * s <= CGRectGetHeight(rtarget)) { | |
| return s; | |
| } | |
| // no, match height instead | |
| return CGRectGetHeight(rtarget) / CGRectGetHeight(rfit); |
| #!/bin/bash | |
| # | |
| # video conversion script for publishing as HTML 5 video, via videojs (with hd button extension) | |
| # 2011 by zpea | |
| # feel free to use as public domain / Creative Commons CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| # | |
| FFMPEG=/usr/bin/ffmpeg | |
| HD_SUFFIX='_hd' |
#Mac OS X