Skip to content

Instantly share code, notes, and snippets.

@sardisson
sardisson / linkify-microdotblog-names.php
Last active December 10, 2019 04:54
WordPress filter to auto-linkify @NAMEs for Micro.blog
/* Auto-linkify @names for Micro.blog */
/* Add to your child theme's functions.php or your site's functionality plugin */
/* You should not put this in a stock theme's functions.php because any update */
/* to that theme will overwrite functions.php and this code will have to be */
/* added back again. */
// Props to Chris Reed for his helpful pointers to make this only run on actual posts
function linkify_microdotblog_names( $data ) {
$content = $data['post_content'];
@steventroughtonsmith
steventroughtonsmith / gist:6763213
Created September 30, 2013 12:39
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef enum _UIBackgroundStyle {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
} UIBackgroundStyle;
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active February 18, 2025 18:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: