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 | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
Event::listen('illuminate.query', function($sql) | |
{ | |
Log::info('Request URL: '.Request::url() .' Query: '.$sql); | |
}); |
<?php | |
class PhotoApiTest extends TestCase { | |
public function setUp() | |
{ | |
parent::setUp(); | |
Route::enableFilters(); |
//retrieve the image | |
$image = Input::file('image'); | |
// initialize imageworkshop layer | |
$layer = PHPImageWorkshop\ImageWorkshop::initFromPath($image['tmp_name']); | |
if (File::is('jpg', $image['tmp_name'])) | |
{ | |
$exif = exif_read_data($image['tmp_name']); |
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Break Wrap</title> | |
<style> | |
body { | |
background: #efefdd; | |
} |
<?php | |
function mmstrlen($str) { | |
$standalones = array("α€", "α", "αͺ", "α", "α", "α", "α"); | |
$consonants = array("α", "α", "α", "α", "α", "α ", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α", "α ", "α‘"); | |
$numbers = array("α", "α", "α", "α", "α", "α ", "α", "α", "α", "α"); | |
$len = mb_strlen($str, "UTF-8"); | |
$count = 0; | |
for($i = 0; $i < $len; $i++) { |