(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
add_action( 'wp_ajax_nopriv_ajax_pagination', 'my_ajax_pagination' ); | |
add_action( 'wp_ajax_ajax_pagination', 'my_ajax_pagination' ); | |
function my_ajax_pagination() { | |
echo get_bloginfo( 'title' ); | |
die(); | |
} |
#!/bin/bash | |
# (not really -- run these commands by hand & pay attention to the comments) | |
# Homebrew: The missing package manager for OS X | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Git | |
brew install git | |
git config --global --add merge.ff false |
<?php | |
/** | |
* Basic Theme Support usage. Add this to your functions.php file | |
*/ | |
add_theme_support( 'custom-footer-text' ); | |
/** | |
* Elsewhere in your theme... | |
*/ | |
if( current_theme_supports( 'custom-footer-text' ) ) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import android.text.SpannableStringBuilder; | |
import java.util.ArrayDeque; | |
import java.util.Deque; | |
import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE; | |
/** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */ | |
public class Truss { | |
private final SpannableStringBuilder builder; | |
private final Deque<Span> stack; |
<?php | |
/** | |
ReduxFramework Sample Config File | |
For full documentation, please visit: https://docs.reduxframework.com | |
* */ | |
if (!class_exists('Redux_Framework_sample_config')) { | |
class Redux_Framework_sample_config { |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
var gulp = require('gulp'); | |
var coffee = require('gulp-coffee'); | |
gulp.task('scripts', function () { | |
gulp.src('src/*.coffee') | |
.pipe(coffee()) | |
.pipe(gulp.dest('./')); | |
}); | |
gulp.task('watch', function () { |
<?php | |
/** | |
* We need to filter our post thumbnails so we can output them in a format that Foundations Interchange needs. | |
* We also need a fallback for no JavaScript | |
* | |
* @param $html | |
* @param $post_id | |
* @param $post_thumbnail_id | |
* @param $size | |
* @param $attr |