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 | |
| /* | |
| * Usage for a custom post type named 'movies': | |
| * unregister_post_type( 'movies' ); | |
| * | |
| * Usage for the built in 'post' post type: | |
| * unregister_post_type( 'post', 'edit.php' ); | |
| */ | |
| function unregister_post_type( $post_type, $slug = '' ){ |
| <?php | |
| /* | |
| * Solution to order first by date, then by start time (both are meta values) | |
| * http://wordpress.stackexchange.com/a/67391/5045 | |
| * */ | |
| add_action( 'pre_get_posts', 'pre_get_posts_programpunkter' ); | |
| function pre_get_posts_programpunkter( $query ) { | |
| if( !is_admin() && is_post_type_archive( 'programpunkt' ) && $query->is_main_query() ) { |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| <?php | |
| /** | |
| * Limit IP to One Submission Per Time Period | |
| * http://gravitywiz.com/2012/05/12/limit-ip-to-one-submission-per-time-period | |
| */ | |
| $gws_limit_message = 'You may only submit this form once every 24 hours.'; | |
| $gws_limit_time = 86400; // must be specified in seconds; 86400 seconds is equal to 24 hours | |
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-random-fields.php | |
| */ | |
| /** | |
| * Gravity Wiz // Gravity Forms // Random Fields | |
| * | |
| * Randomly display a specified number of fields on your form. |
| /* | |
| * parse_link_header() | |
| * | |
| * Parse the Github Link HTTP header used for pageination | |
| * http://developer.github.com/v3/#pagination | |
| */ | |
| function parse_link_header(header) { | |
| if (header.length == 0) { | |
| throw new Error("input must not be of zero length"); | |
| } |
| <head> | |
| <title>meteor_servercall</title> | |
| </head> | |
| <body> | |
| {{> simple}} | |
| {{> passData}} | |
| </body> | |
| <template name="simple"> |
This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.
Give me feedback on Twitter (@nicoleslaw) or by email (nicole@nicolefenton.com).