This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( function_exists( 'contact_detail' ) ) { | |
$chair = contact_detail( 'chair' ); | |
$address = contact_detail( 'address' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="grid"> | |
<div class="grid__item one-whole lap-one-half desk-two-thirds"> | |
... | |
</div> | |
<div class="grid__item one-whole lap-one-half desk-one-third"> | |
... | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Deny Giant Image Uploads | |
* Description: Prevents Uploads of images greater than 3.2MP | |
* Author: TJNowell | |
* Author URI: http://tomjn.com | |
* Plugin URI: http://tomjn.com/164/clients-who-upload-huge-camera-photos-decompression-bombs/ | |
* Version: 1.1 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function indicator_helloworld( $indicator_text ) { | |
return 'Hello World!!!'; | |
} | |
add_action( 'tomjn_indicator_text', 'indicator_helloworld' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function indicator_colour( $indicator_colour ) { | |
return 'yellow'; | |
} | |
add_action( 'tomjn_indicator_colour', 'indicator_colour' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Have you tried using git to do that? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! function_exists( 'shortcode_exists' ) ) { | |
/** | |
* Check if a shortcode is registered in WordPress. | |
* | |
* Examples: shortcode_exists( 'caption' ) - will return true. | |
* shortcode_exists( 'blah' ) - will return false. | |
*/ | |
function shortcode_exists( $shortcode = false ) { | |
global $shortcode_tags; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Twitter Follower Audit Tracker | |
Plugin URI: http://interconnectit.com/products/the-auditor/ | |
Description: Uses the auditor to track twitter follower counts, requires v1.63+ | |
Author: Tom J Nowell, interconnect/it | |
Version: 1.1 | |
Author URI: http://interconnectit.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
TExcavate by Tom J Nowell | |
A modified version of the excavate command, mines 3 layers of rock at a time, and keeps persistent variables | |
requires: http://www.computercraft.info/forums2/index.php?/topic/1195-132-yet-another-persistent-variables-api-uses-metatable/ | |
]]-- | |
os.loadAPI("apis/persistentVar") -- Only use this line if you copied the API in your computers apis folder | |
local state = persistentVar:new( "/vars_texcavate/" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local slots ={} | |
function plantTree() | |
turtle.select(1) | |
turtle.place() | |
end | |
function chopTree() | |
turtle.select(4) | |
turtle.dig() |