Skip to content

Instantly share code, notes, and snippets.

View devonmather's full-sized avatar

Devon Mather devonmather

View GitHub Profile
@devonmather
devonmather / CSS Snippets
Last active December 22, 2015 10:19
Various CSS Snippets
/* Center Items without floats */
.centeredItems {
text-align: center;
text-align: left; /*if you want left aligned items*/
}
.centeredItems .item {
display: inline-block;
zoom: 1;
*display: inline;
vertical-align: top;
@devonmather
devonmather / JS Snippets
Created July 23, 2013 00:57
Various JS Snippets
_
@devonmather
devonmather / Git Snippets
Created July 4, 2013 01:33
Various Git Snippets
$ git config --global alias.unstage 'reset HEAD --'
This makes the following two commands equivalent:
$ git unstage fileA
$ git reset HEAD fileA
This seems a bit clearer. It’s also common to add a last command, like this:
$ git config --global alias.last 'log -1 HEAD'
@devonmather
devonmather / Sublime Text Snippets
Last active December 18, 2015 11:49
Sublime Text Key Bindings / Settings
/* User Key Bindings */
[
{
"keys": ["f1"],
"command": "reindent",
"args": {
"single_line": false
}
},
{
@devonmather
devonmather / Wordpress Snippets
Last active August 12, 2022 09:29
Various common Wordpress Snippets
<?php // Load in WP functions outside of wordpress
define('WP_USE_THEMES', false);
require('/home/kindyhub/public_html/wp-blog-header.php'); ?>
add_action('wp_enqueue_scripts', 'no_more_jquery');
function no_more_jquery(){
//if(!is_bbpress()) { //sample condition inside function
wp_deregister_script('jquery');
//}
}