Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
#!/usr/bin/env bash | |
set -e | |
if [ ! -d src/amazon-s3-and-cloudfront ]; then | |
echo 'This script must be run from the repository root.' | |
exit 1 | |
fi | |
for PROG in composer find sed |
#!/bin/bash | |
FUNCTIONS=" | |
woocommerce_email_order_schema_markup, | |
add_to_cart_fragments, | |
add_to_cart_redirect, | |
woocommerce_product_width, | |
woocommerce_product_height, | |
woocommerce_product_length, | |
woocommerce_product_weight, |
<?php | |
/* | |
Plugin Name: Force Plugin Activation/Deactivation (except if WP_DEBUG is on) | |
Plugin URI: http://tri.be/ | |
Description: Make sure the required plugins are always active. | |
Version: 1.0 | |
Author: Modern Tribe, Inc. | |
Author URI: http://tri.be/ | |
*/ |
<?php | |
/** | |
* Make sure the function does not exist before defining it | |
*/ | |
if( ! function_exists( 'remove_class_filter' ) ){ | |
/** | |
* Remove Class Filter Without Access to Class Object | |
* | |
* In order to use the core WordPress remove_filter() on a filter added with the callback |
<?php | |
// DEPRECATED. See https://github.com/alleyinteractive/wp-bulk-task as the successor to this trait. | |
/** | |
* Chunk up the task when you need to iterate over many posts. | |
* | |
* For instance, to iterate over every post on the site and add post meta: | |
* | |
* $this->bulk_task( function( $post ) { |
var gulp = require('gulp'), | |
imagemin = require('gulp-imagemin'), | |
notify = require('gulp-notify'), | |
plumber = require('gulp-plumber'), | |
rename = require('gulp-rename'), | |
rimraf = require('gulp-rimraf'), | |
imageResize = require('gulp-image-resize'); | |
gulp.task('clean:favicons', function() { | |
return gulp.src('dist/favicon*') |
import React, { | |
Linking, | |
StyleSheet, | |
WebView, | |
} from 'react-native'; | |
import SomeHTMLFile from './some-html-file.html | |
export default class WebViewExt extends React.Component { | |
constructor() { |
On a shared hosting service like dreamhost, how do you get your twitter bot up and running? Problems:
I'm still figuring this stuff out myself, so nothing is clear as it should be. Hope this page will be a resource that will improve over time.
<?php | |
/* | |
Manipulates the metadata for uploaded images at upload time to make better use | |
of IPTC data that may be present. | |
An image is stored as an attachment, which is a special type of post. It is | |
handled the same way as any other post type. | |
As far as the meta goes, it's stored like this: |