Skip to content

Instantly share code, notes, and snippets.

View matt-west's full-sized avatar

Matt West matt-west

View GitHub Profile
@matt-west
matt-west / json-split.rb
Last active March 22, 2022 16:41
Ruby script to split a JSON file
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
puts "Opening File"
file = File.open('input.json')
puts "Fetching Contents"
content = file.read
@matt-west
matt-west / grid.sass
Created February 12, 2015 20:04
Simple Grid System
/*
* File: Grid System
* Author: Matt West <matt.west@kojilabs.com>
*/
$gd-container-width: 1200px
$gd-column-width: 100%/12
$gd-padding: 2em
.container

Keybase proof

I hereby claim:

  • I am matt-west on github.
  • I am mattwest (https://keybase.io/mattwest) on keybase.
  • I have a public key whose fingerprint is 8598 3B27 6E26 F063 3E64 092A D11B 1A14 E76F C18D

To claim this, I am signing this object:

@matt-west
matt-west / postachio-form-styling.css
Created July 8, 2014 11:05
Postach.io: Form Styling Code Placement
<style type="text/css">
#mc_embed_signup{
background:#F7F7F7;
border: 1px solid #EEE;
border-radius: 3px;
margin-top: 3em;
clear:left;
font:14px Helvetica,Arial,sans-serif;
}
@matt-west
matt-west / mailchimp-form-styling-placement.html
Created July 8, 2014 11:01
Postach.io: Form Styling Code Placement
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#">
<head>
...
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
@matt-west
matt-west / mailchimp-form-placement.html
Created July 8, 2014 11:00
Postach.io: MailChimp Form Placement
<div class="post-footer">
...
<ul class="post-options">
<li>{{ theme.social.share }}</li>
<li>{{ theme.social.follow }}</li>
<li>{{ theme.social.like }}</li>
</ul>
</div>
<!-- INSERT FORM CODE HERE -->
@matt-west
matt-west / mailchimp-form-example.html
Created July 8, 2014 10:58
Postach.io: MailChimp Form Example
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="//kojilabs.us4.list-manage.com/subscribe/post?u=f8cbddda8612357bfc16b352d&amp;id=b5f20267d6" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<h2>Subscribe to our mailing list</h2>
@matt-west
matt-west / postachio-is-tag.html
Created May 23, 2014 11:19
Postach.io: is_tag
{% if is_tag %}
<h3 class="tag-header">Showing all posts tagged "{{ tag|format_tag(False, True) }}"</h3>
{% endif %}
@matt-west
matt-west / postachio-posts-loop.html
Created May 23, 2014 11:18
Postach.io: Posts Loop
{% for post in posts %}
<div class="item">
<h3><a href="{{ post.permalink }}">{{ post.title }}</a></h3>
<div class="post-content" data-type-cleanup="true">
{{ post.content }}
</div>
<a class="post-author" href="{{ site.base_url }}">
<img src="{{ post.author.avatar }}" />
<p>
<span class="post-author-name">{{ post.author.name }}</span>
@matt-west
matt-west / postachio-tag-cloud-styling.html
Created May 23, 2014 10:39
Postach.io: Tag Cloud Styling
<!-- Styling for tag cloud -->
<style>
.tag-cloud {
width: 60%;
max-width: 1280px;
margin: 5em auto 1em;
text-align: center;
}
.tag-cloud h4 {