Skip to content

Instantly share code, notes, and snippets.

@nickmjones
nickmjones / resume.md
Created December 26, 2017 16:11
Resume - Nick Jones - Winter 2017

Nick Jones
1437 Rhode Island Ave. NW
Apt. 404
Washington, DC 20005
hello@nickmjones.me


Summary

A designer, UX-er and design technologist with 16 years of experience. Team leader, design technologist, user advocate, and relentlessly curious human. User of the Oxford comma sometimes.

@nickmjones
nickmjones / Email Code 004
Created April 4, 2017 15:26
Responsive email code
<head>
<title>Following up on your order</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<style>
table td {
padding: 0;
display: block;
}
@nickmjones
nickmjones / 002.html
Created March 20, 2017 20:34
HTML email code
<head>
<title>Following up on your order</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<style>
table td {
padding: 0;
display: block;
}
guard :bundler do
watch('Gemfile')
end
guard :livereload do
watch(%r{app/views/.+\.(erb|haml|slim)$})
watch(%r{app/helpers/.+\.rb})
watch(%r{public/.+\.(css|js|html)})
watch(%r{config/locales/.+\.yml})
# Rails Assets Pipeline
@nickmjones
nickmjones / search_code.html
Created October 21, 2014 01:27
Search code
<div id="search-controls">
<form accept-charset="UTF-8" action="/search/results" method="get"><div style="display:none"><input name="utf8" type="hidden" value="✓"></div>
<input id="search" name="search" type="text" value="23510">
<input id="category_id" name="category_id" type="hidden" value="2">
<input id="search_trigger" type="submit" value="Search">
</form></div>
@nickmjones
nickmjones / of array values
Created October 10, 2013 21:36
Replace both instances of $of_share_icons (in hi-wpd/admin/options/blog.php and hi-wpd/admin/options/single.php) with the following array. Turn your social icons off and then on again. This will reorder them.
$of_share_icons = array(
"face" => "Facebook",
"twitter" => "Twitter",
"digg" => "Digg",
"delicious" => "Delicious",
"dribble" => "Dribble",
"stumble" => "Stumbleupon",
"myspace" => "MySpace",
"vimeo" => "Vimeo",
"googleplus" => "GooglePlus",
@nickmjones
nickmjones / theme-functions.php
Last active December 25, 2015 05:19
Theme Functions for Hi Theme
<?php
/*-----------------------------------------------------------------------------------*/
/* Default Configuration
/*-----------------------------------------------------------------------------------*/
//Custom menu support
if ( function_exists( 'add_theme_support' ) )
add_theme_support ('nav-menus');
add_action( 'init', 'register_my_menus' );
@nickmjones
nickmjones / gist:2502306
Created April 26, 2012 19:26
Conditional flashes display
<header id="message-display">
<% unless notice.blank? %>
<section class="messages notice">
<div class="message notice has-padding">
<h2><%= notice %><h2>
</div>
</section>
<% end %>
<% unless alert.blank? %>
<section class="messages alert">
@nickmjones
nickmjones / side-by-side.html
Created December 21, 2011 21:07
Simple side by side form, bulletproof for IE
<!--
The trick is to wrap the labels in p elements. They're always
block level and IE seems to get the hint. It also gives you two
hooks on the label element to style or use with ujs.
-->
<style type="text/css" media="screen">
p {
font-size: 14px;
font-family: Helvetica, Arial, sans-serif;
margin-bottom: 4px;
@nickmjones
nickmjones / ipad.scss
Created October 5, 2011 20:59
Example of iPad media queries
@media screen and (max-width: 1024px) {
body {
// Insert conditional rules for iPad here
}
}