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 | |
/** | |
* by setting the regex condition for the :method param to '.+', it matches | |
* everything, including "/" chars. this lets us match any URL of the format. | |
* | |
* /api/foo outputs "foo" | |
* /api/foo/bar/baz outputs "foo/bar/baz" | |
*/ | |
$app->get('/api/:method', function($method) use ($app) { | |
echo $method; |
<figure class="quote"> | |
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote> | |
</figure> |
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist
<?php | |
// Clean argument values | |
$phpStormRunner = null; | |
$cleanedArgv = array(); | |
foreach ($_SERVER['argv'] as $key => $value) { | |
if (strpos($value, 'ide-phpunit.php') === false) { | |
$cleanedArgv[] = $value; | |
} else { | |
$phpStormRunner = $value; | |
} |
// Create an Array from an Array-like Object such as NodeList. | |
function toArray(arrayLike) { | |
return Array.prototype.slice.call(arrayLike); | |
} | |
// Create an Object from an Array of objects. | |
function toObject(objects, keyName, valueName) { | |
return objects.reduce(function(acc, obj) { | |
acc[obj[keyName]] = obj[valueName]; | |
return acc; |
/* | |
* Copyright (C) 2016 Jeff Gilfelt. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
#include <GLFW/glfw3.h> | |
#include <yoga/Yoga.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
GLFWwindow* window; | |
/* Initialize the library */ | |
if (!glfwInit()) |
Please note: See character.construction/emoji-categories for more up-to-date listings.
😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 🥰 😗 😙 😚