Skip to content

Instantly share code, notes, and snippets.

View mrmartineau's full-sized avatar
👋
Aho Young Warrior

Zander Martineau mrmartineau

👋
Aho Young Warrior
View GitHub Profile
@mrmartineau
mrmartineau / googleAnalytics.html
Created March 11, 2016 16:30
Google Analytics embed code for Kickoff. http://trykickoff.com
<script>
(function(K,i,c,k,o,f,F){K['GoogleAnalyticsObject']=o;K[o]=K[o]||function(){
(K[o].q=K[o].q||[]).push(arguments)},K[o].l=1*new Date();f=i.createElement(c),
F=i.getElementsByTagName(c)[0];f.async=1;f.src=k;F.parentNode.insertBefore(f,F)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-XX', 'http://yourdomain.com', {
//'cookieDomain': 'none' // Use if debugging on localhost
});
ga('send', 'pageview');
@mrmartineau
mrmartineau / _module-naming-mixins.scss
Last active March 14, 2016 11:16
module naming mixins
@include component('foo') {
margin: auto;
@include modifier('bar') {
padding: 20px;
}
@include modifier('baz') {
padding: 50px;

Keybase proof

I hereby claim:

  • I am mrmartineau on github.
  • I am zander (https://keybase.io/zander) on keybase.
  • I have a public key whose fingerprint is B686 75C9 8088 B2AD 9B47 74EF 41F1 9641 16AF 831C

To claim this, I am signing this object:

Kickoff

A lightweight front-end framework for creating scalable and performant, responsive sites

devDependency Status Build status Dependency Status XO code style Commitizen friendly bitHound Overall Score

Developed and maintained by [Ashley Nolan](https://gith

@mrmartineau
mrmartineau / markup.html
Last active September 9, 2016 09:42
Simple Video player
<div class="video">
<video poster="video-poster.png" controls>
<source src="video.mp4" type="video/mp4">
Your browser does not support the <code>video</code> element.
<img src="video-poster.png" alt="launch video" />
</video>
</div>
@mrmartineau
mrmartineau / .bash_profile
Last active October 29, 2016 10:49
Bash-it settings
#!/usr/bin/env bash
# Path to the bash it configuration
export BASH_IT="/Users/mrmartineau/.bash_it"
# Lock and Load a custom theme file
# location /.bash_it/themes/
export BASH_IT_THEME='zander'
# (Advanced): Change this to the name of your remote repo if you
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> tmwsite@0.1.0 preinstall C:\BuildAgent\work\33aa7c45146a0267\source
> bundle install
DL is deprecated, please use Fiddle
Using colorator 1.1.0
Using ffi 1.9.14
@mrmartineau
mrmartineau / Colour-scheme.mustache
Last active January 20, 2017 05:53
Creating dynamic layouts with Jekyll
<style>
.hero {
background-color: {{ page.style.color.primary }};
color:{{ page.hero.color }};
background-image: url({{ site.assets.imgPath }}{{ page.hero.bg }}?w=500&{{ site.assets.params }});
}
.hero-title {
color: {{ page.hero.color }};
}
@mrmartineau
mrmartineau / for-loop.mustache
Last active January 20, 2017 06:00
From my blog post: Creating dynamic layouts with Jekyll
{% for item in page.partials %}
{% include {{item.name}}.html
spaced=item.spaced
padded=item.padded
src=item.src
title=item.title
body=item.body
link=item.link
href=item.href
gutter=item.gutter
@mrmartineau
mrmartineau / section-module.mustache
Created January 20, 2017 06:25
From my blog post: Creating dynamic layouts with Jekyll Raw
<section class="section{%if include.spaced %} section--spaced{% endif %}{%if include.padded %} section--padded{% endif %}{%if include.classes %} {{ include.classes }}{% endif %}{%if include.centred %} section--centred{% endif %}" style="{%if include.color %}color: {{ include.color }};{% endif %}{%if include.bgcolor %}background-color: {{ include.bgcolor }};{% endif %}">
<div class="l-container{%if include.size %} l-container--{{ include.size }}{% endif %}">
{% if include.title %}
<h3 class="h3">{{ include.title }}</h3>
{% endif%}
{{ include.body | markdownify }}
{% if include.link %}
<a href="{{ include.href }}" rel="external">{{ include.link }}</a>
{% endif %}
</div>