Skip to content

Instantly share code, notes, and snippets.

Avatar
🤦‍♂️
Coding

Zander Martineau mrmartineau

🤦‍♂️
Coding
View GitHub Profile
@mrmartineau
mrmartineau / googleAnalytics.html
Created Mar 11, 2016
Google Analytics embed code for Kickoff. http://trykickoff.com
View googleAnalytics.html
<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');
View _module-naming-mixins.scss
@include component('foo') {
margin: auto;
@include modifier('bar') {
padding: 20px;
}
@include modifier('baz') {
padding: 50px;
View keybase.md

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:

View kickoff-readme.md

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 Sep 9, 2016
Simple Video player
View markup.html
<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 Oct 29, 2016
Bash-it settings
View .bash_profile
#!/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
View node-sass.log
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 Jan 20, 2017
Creating dynamic layouts with Jekyll
View Colour-scheme.mustache
<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 Jan 20, 2017
From my blog post: Creating dynamic layouts with Jekyll
View for-loop.mustache
{% 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 Jan 20, 2017
From my blog post: Creating dynamic layouts with Jekyll Raw
View section-module.mustache
<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>