Skip to content

Instantly share code, notes, and snippets.

View joshgreen's full-sized avatar
🏠
Working from home

Josh Green joshgreen

🏠
Working from home
View GitHub Profile
<table cellpadding="0" cellspacing="0" border="0" width="200" height="50" style="background-color:#deb500;">
<tr>
<td align="center">
<img src="images/spacer.gif" alt="" style="display: block; border: 0" width="1" height="50"></td>
<td valign="middle" style="font-family: sans-serif; font-size:24px; font-weight: bold" align="center">
<a href="http://www.sdl.com/" style="color:#fff; display: inline-block; text-decoration: none;">Register here</a>
</td>
</tr>
</table>
@joshgreen
joshgreen / gist:6183691
Created August 8, 2013 10:56
Email button
<table cellpadding="0" cellspacing="0" border="0" width="190" height="25" style="background-color:#000;">
<tr>
<td align="center">
<img src="images/spacer.gif" alt="" style="display: block; border: 0" width="1" height="25"></td>
<td valign="middle" style="font-family: san-serif; font-size:14px;" align="center"><a href="#" style="color:#fff; display: inline-block; text-decoration: none;">Button text</a>
</td>
</tr>
</table>
@joshgreen
joshgreen / gist:d910c4e8ad01418ef929
Last active August 29, 2015 14:03
Sublime Text 3 User settings 20140901
{
"auto_complete": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"color_scheme": "Packages/User/predawn (SL).tmTheme",
"detect_slow_plugins": false,
"dictionary": "Packages/Language - English/en_GB.dic",
"draw_white_space": "selection",
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:$PATH"
if [ -f ~/.git-completion ]; then
source ~/.gitcompletion.bash
fi
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then export TERM=gnome-256color
[
{ "keys": ["ctrl+,"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+]"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+m"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } },
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } },
{ "keys": ["super+ctrl+u"], "command": "upper_case" },
{ "keys": ["super+ctrl+i"], "command": "lower_case" },
{ "keys": ["super+ctrl+y"], "command": "title_case" }
@joshgreen
joshgreen / gist:a3514348fcc85650fc36
Last active August 29, 2015 14:04
Typekit for wordpress
// TypeKit Fonts
/*
* @since Theme 1.0
*/
function theme_typekit() {
wp_enqueue_script( 'theme_typekit', '//use.typekit.net/KITNUMBER.js');
}
add_action( 'wp_enqueue_scripts', 'theme_typekit' );
function theme_typekit_inline() {
@joshgreen
joshgreen / gist:5e171e817041e6535c86
Created July 28, 2014 15:52
Custom comment in functions.php
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
if ( 'div' == $args['style'] ) {
$tag = 'div';
$add_below = 'comment';
} else {
$tag = 'li';
$add_below = 'div-comment';
register_sidebar( array(
'name' => 'new-text-widget-name',
'id' => 'left-sidebar',
'before_widget' => '<div id="%1$s" class="%2$s widget">',
'after_widget' => '</div>',
@joshgreen
joshgreen / gist:0e7824a33a7893e03fa7
Created July 28, 2014 15:56
hide theme editor from WordPress dashboard
//hide theme editor from WordPress dashboard
function wpr_remove_editor_menu() {
remove_action('admin_menu', '_add_themes_utility_last', 101);
}