This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Full command line options | |
| ``` | |
| ffmpeg -f gif -i FOO.gif -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' BAR.mp4 | |
| ``` | |
| ### Notie | |
| * output mp4 is encoded with h264, support Firefox/Chrome/Safari in Windows, Mac OSX, Android, and iOS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require 'json.php'; | |
| $json = new JSON; | |
| $json->foo->bar->baz = "foo"; | |
| $json->foo->biz = "test"; | |
| $json->baz = array(); | |
| $json->baz[1] = "testing"; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* This script generates a mapping of factory methods/parameters to the resulting class | |
| * names in such a way that PhpStorm 6.0.1 can use for autocompletion and chaining. | |
| * | |
| * Example: | |
| * cd [magento root] | |
| * php ~/makePhpstormMap.php > .phpstorm.meta.php | |
| * | |
| */ |