An animated HTML5 canvas logo. I was toying with the idea of using this for a project, but opted against it.
A Pen by Philip Newborough on CodePen.
// Internal LEDs | |
int blue1 = 12; | |
int blue2 = 13; | |
// Eye LEDs | |
int led1 = 2; | |
int led2 = 3; | |
int led3 = 4; | |
int led4 = 5; | |
int led5 = 6; |
# humanstxt.org/ | |
# The humans responsible & technology colophon | |
# TEAM | |
_ _ | |
___ ___ _ __ ___ _ __ ___ _ __ ___ (_)_ __ __ _| | | |
/ __/ _ \| '__/ _ \ '_ \ / _ \| '_ ` _ \| | '_ \ / _` | | | |
| (_| (_) | | | __/ | | | (_) | | | | | | | | | | (_| | | | |
\___\___/|_| \___|_| |_|\___/|_| |_| |_|_|_| |_|\__,_|_| |
<?php | |
/** | |
* Doh! | |
*/ | |
die('This is not the gist you are looking for!'); |
#!/bin/bash | |
# To mount drives, add to fstab, e.g. | |
# =================================== | |
# UUID=5b4b881f-8d88-4faf-9e76-6bbed8e92002 /home/user/data-one ext2 auto 0 0 | |
# UUID=46910aac-a24e-422a-b871-74e0cbf4850c /home/user/data-two ext2 auto 0 0 | |
# Crontab entries | |
# =============== | |
# * * * * * /home/user/bin/camd.sh |
<?php | |
/** | |
* Theme activation/setup functions | |
* Notes: | |
* - after_switch_theme is triggered on the request immediately following a theme switch. | |
* - switch_theme is triggered when the blog's theme is changed. Specifically, it fires after the theme has been switched but before the next request. Theme developers should use this hook to do things when their theme is deactivated. | |
*/ | |
function corenominal_set_theme_options() | |
{ |
<?php | |
/** | |
* Kill all emojis | |
* =============== | |
* See: http://wordpress.stackexchange.com/a/185578 | |
*/ | |
function disable_emojis() | |
{ | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); |
An animated HTML5 canvas logo. I was toying with the idea of using this for a project, but opted against it.
A Pen by Philip Newborough on CodePen.
An animated HTML5 canvas logo. I was toying with the idea of using this for a project, but opted against it.
A Pen by Philip Newborough on CodePen.
<?php | |
/** | |
* WordPress function to fix pagination when combining custom post types in a single loop. | |
*/ | |
function fix_allcustomposts_pagination($qs) | |
{ | |
if( !isset( $qs['post_type'] ) && isset($qs['paged']) ) | |
{ | |
$qs['post_type'] = get_post_types($args = array( | |
'public' => true, |
<?php | |
// Set-up the loop with all custom post types | |
$post_types = array( 'post', 'link', 'snippet', 'doodle' ); | |
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; | |
$args = array( | |
'post_type' => $post_types, | |
'paged' => $paged, | |
'posts_per_page' => 10 | |
); | |
query_posts( $args ); |