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:
| #!/bin/bash | |
| # Install script for Latest WordPress by Johnathan Williamson - extended by Don Gilbert | |
| # Disclaimer: It might not bloody work | |
| # Disclaimer 2: I'm not responsible for any screwups ... :) | |
| # DB Variables | |
| echo "MySQL Host:" | |
| read mysqlhost | |
| export mysqlhost |
| <?php | |
| /** | |
| * Duplicate this file as many times as you would like, just be sure to change the | |
| * Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
| * | |
| * Plugin Name: Empty Widget | |
| * Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
| * Author: RedRokk Interactive Media | |
| * Version: 1.0.0 | |
| * Author URI: http://www.redrokk.com |
| <?php | |
| class Widget_Name extends WP_Widget { | |
| function Widget_Name() { | |
| $widget_opts = array( | |
| 'classname' => 'your-awesome-class', | |
| 'description' => 'Your awesome Description', | |
| ); | |
| /* ========================================================== | |
| * | |
| * Log on a remote server most of the errors in the browser | |
| * | |
| * @author Chris Cinelli | |
| * | |
| * Depends on: | |
| * stacktrace.js - https://github.com/eriwen/javascript-stacktrace | |
| * jsonStringify.js - http://www.thomasfrank.se/json_stringify_revisited.html | |
| * |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| <!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ --> | |
| <style type="text/css"> | |
| .no-fouc {display: none;} | |
| </style> | |
| <script type="text/javascript"> | |
| document.documentElement.className = 'no-fouc'; | |
| // add to document ready: $('.no-fouc').removeClass('no-fouc'); | |
| </script> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Javascript #router. Features:
| /** | |
| * Add ipad IOS7 Classes | |
| * Allows us to temporariliy try to fix the slight scroll 100% hack. | |
| * http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerheight-outerheight-layout-issue | |
| */ | |
| if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) { | |
| $('html').addClass('ipad ios7'); | |
| } | |
| /** |