Skip to content

Instantly share code, notes, and snippets.

View asimpson's full-sized avatar

Adam Simpson asimpson

View GitHub Profile
@asimpson
asimpson / jekyll-siteleaf.rb
Last active August 29, 2015 13:56 — forked from sskylar/jekyll-siteleaf.rb
Automatically post all Jekyll posts to Siteleaf via Siteleaf API.
require "siteleaf"
require "yaml"
# API settings
Siteleaf.api_key = ''
Siteleaf.api_secret = ''
# site settings
extension = 'md' # set this to whatever extension you are using for your posts.
site_id = ''
@asimpson
asimpson / 0_reuse_code.js
Created November 3, 2013 00:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@mixin rem-fix( $property, $a:0, $b:$a, $c:$a, $d:$b ) {
@if ( $property == "font-size" ) {
// $a is the font size
// %b is the keyword
@if ( $a != $b ) {
font-size: $b;
}
@else {
font-size: $a * $base-font-multiplier * 16px;
}
@asimpson
asimpson / _mixins.scss
Created September 17, 2012 21:14 — forked from robtarr/_mixins.scss
SASS Mixin with keyword font-size fallback
@mixin font-size( $decimal-size, $keyword: null ) {
@if $keyword{ font-size: $keyword; }
@else { font-size: $decimal-size * $base-font-multiplier * 16px;}
font-size: $decimal-size * 1rem;
}