git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
# collections_sort.rb | |
# | |
# Sort Jekyll collections items based on arbitrary yaml front matter variables. | |
# | |
# example usage: | |
# | |
# if you want to sort a collection based on a yaml variable of "order": | |
# | |
# {% assign filtered_events = site.my_collection | collection_sort: 'order' %} | |
# |
find . -name "*.unison.tmp" -delete |
// Returns black if the given background color is light or white if the given color is dark | |
func textColor(bgColor: UIColor) -> UIColor { | |
var r: CGFloat = 0.0 | |
var g: CGFloat = 0.0 | |
var b: CGFloat = 0.0 | |
var a: CGFloat = 0.0 | |
var brightness: CGFloat = 0.0 | |
bgColor.getRed(&r, green: &g, blue: &b, alpha: &a) |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 120 | |
tab_width = 4 | |
trim_trailing_whitespace = true | |
ij_continuation_indent_size = 8 |
/** | |
* Determine if a post exists based on post_name and post_type | |
* | |
* @param $post_name string unique post name | |
* @param $post_type string post type (defaults to 'post') | |
*/ | |
function post_exists( $post_name, $post_type='post' ) { | |
global $wpdb; |
<?php | |
/** | |
* @package Jetpack_Test | |
* @version 1.0 | |
*/ | |
/* | |
Plugin Name: Jetpack Test | |
Description: Allows certain Jetpack modules that would otherwise require a connection to WordPress.com to be run in a local development environment. | |
Author: Del Putnam |
svn status --ignore-externals | grep ! | tr -s ' ' | cut -d ' ' -f2 | xargs svn rm |
openssl genrsa -out private.pem 2048 | |
openssl rsa -in private.pem -outform PEM -pubout -out public.pem |
svn status | grep ^\? | cut -c9- | xargs -d \\n rm -r |