Skip to content

Instantly share code, notes, and snippets.

View acarabott's full-sized avatar

Arthur Carabott acarabott

View GitHub Profile
@acarabott
acarabott / C.sublime-build
Created September 27, 2012 11:52
C Build (and run) System for Sublime Text 2 (OS X)
{
"cmd" : ["gcc ${file} -o ${file_base_name}.out && ./${file_base_name}.out"],
"path" : "/usr/bin:/usr/local/bin",
"shell" : true
}
@acarabott
acarabott / gist:1022656
Created June 13, 2011 11:47
Removing non-validating links from Wordpress header
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'index_rel_link' ); // index link
(from http://wpengineer.com/1438/wordpress-header/ )
@acarabott
acarabott / wp_mce_metabox_save.php
Created June 13, 2011 11:44
Wordpress custom metabox with TinyMCE saving formatting properly
add_action( 'add_meta_boxes', 'add_metaname_box');
add_action( 'save_post', 'metaname_save');
function add_metaname_box() {