Skip to content

Instantly share code, notes, and snippets.

View jasonhodges's full-sized avatar

Jason Hodges jasonhodges

  • out in the country
View GitHub Profile
%icon {
font-family: $icon-font; //set as a variable - it's whatever your icon font name is
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
# Author: Brandon Mathis
# Description: Provides plugins with a method for wrapping and unwrapping input to prevent Markdown and Textile from parsing it.
# Purpose: This is useful for preventing Markdown and Textile from being too aggressive and incorrectly parsing in-line HTML.
module TemplateWrapper
# Wrap input with a <div>
def safe_wrap(input)
"<div class='bogus-wrapper'><notextile>#{input}</notextile></div>"
end
# This must be applied after the
def unwrap(input)
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@jasonhodges
jasonhodges / Google maps geocode.txt
Last active September 2, 2015 19:03 — forked from boldfacedesign/Google maps geocode.txt
Google maps geocode multiple addresses and add info windows
var locations = [
['Bondi Beach', '850 Bay st 04 Toronto, Ont'],
['Coogee Beach', '932 Bay Street, Toronto, ON M5S 1B1'],
['Cronulla Beach', '61 Town Centre Court, Toronto, ON M1P'],
['Manly Beach', '832 Bay Street, Toronto, ON M5S 1B1'],
['Maroubra Beach', '606 New Toronto Street, Toronto, ON M8V 2E8']
];
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 10,
@jasonhodges
jasonhodges / gulpfile.js
Last active September 10, 2015 13:56 — forked from swashcap/gulpfile.js
Gulpifying Jekyll
/* global -$ */
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var browserSync = require('browser-sync');
var reload = browserSync.reload;
gulp.task('styles', function () {
return gulp.src('app/css/main.scss')
@jasonhodges
jasonhodges / .bash_profile
Created October 19, 2015 16:23 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jasonhodges
jasonhodges / Sass rgba() fallback mixin
Created November 27, 2013 19:30
Sass mixin copied from a fiddle by csswizardry http://jsfiddle.net/csswizardry/h3eG8/
/**
* A very simple, pragmatic Sass mixin for generating any property with an rgba() colour
* and its associated fallback (sourced from the original rgba() colour).
*
* Do not use if you require a fallback vastly different from the rgba().
*
* 1. Strip the alpha value and write out a solid rgb() color.
* 2. Drop the red, green, blue, and alpha paramaters into the relevant places.
*/
@mixin rgba($property, $red, $green, $blue, $alpha) {
@jasonhodges
jasonhodges / index.html
Last active December 31, 2015 18:39
A Pen by Jason Hodges.
<div class="container">
<div class="flash"></div>
<div class="solid"></div>
<div>
<ul id="images">
<li><img class="img1" src="" /></li>
<li><img class="img1" src="" /></li></ul>
</div>
</div>
@jasonhodges
jasonhodges / mixins.scss
Last active January 1, 2016 18:39
A scss mixins file I'd like to start compiling from self-education and resources I come across while learning.
/* From Sass for Web Designers by Dan Cederholm (A Book Apart No.10) */
@mixin rounded($radius){
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
border-radius: $radius;
}
@mixin shadow($x, $y, $blur, $color){
-webkit-box-shadow: $x $y $blur $color;
-moz-box-shadow: $x $y $blur $color;
<!-- the standard loop for all your posts -->
{% for post in site.posts %}
<!-- check if there is a portfolio thing set inside the Front Matter
Note: Do not set "portfolio: false" on normal posts - this is not needed
and could lead to problems
-->
{% if post.portfolio %}
<!-- do nothing here -->
{% endif %}