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:
| <?php | |
| $arr = [ | |
| 'a' => 1, | |
| 'b' => [ | |
| 'c' => 2, | |
| 'd' => 3 | |
| ], | |
| 'e' => [ | |
| 'f' => [ | |
| 'g' => 4, |
| <?php | |
| class Users implements ArrayAccess, Countable { | |
| private $users = []; | |
| public function __toString() { | |
| return 'Total users: ' . $this->count() . PHP_EOL; | |
| } | |
| public function count() : int { |
| <?php | |
| class Invoker { | |
| private $args = []; | |
| function __invoke($a) { | |
| if (is_callable($a)) { | |
| $result = array_shift($this->args); | |
| foreach ($this->args as $arg) { |
| <?xml version="1.0"?> | |
| <ruleset name="MyStandard"> | |
| <description>PSR2 with tabs instead of spaces.</description> | |
| <arg name="tab-width" value="4"/> | |
| <rule ref="PSR2"> | |
| <exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
| </rule> | |
| <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | |
| <rule ref="Generic.WhiteSpace.ScopeIndent"> | |
| <properties> |
| <?php | |
| $files = array("testFiles/1.jpg", "testFiles/2.jpg", "testFiles/3.jpg"); | |
| //Getting the total size of the files array | |
| $totalSize = 0; | |
| foreach ($files as $file) { | |
| $totalSize += filesize($file); | |
| } | |
| $totalSize += 300; //I don't understand why, but the totalSize is always 300kb short of the correct size |
I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).
The solution is to compile libimobiledevice and ifuse from source.
Who is this guide intended for?