Skip to content

Instantly share code, notes, and snippets.

View alistairtweedie's full-sized avatar

Alistair Tweedie alistairtweedie

  • United Kingdom
View GitHub Profile
@alistairtweedie
alistairtweedie / chartist-plugin-tooltip-custom.js
Created September 25, 2016 20:09
Custom chartist tooltip plugin - modified from original
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(["chartist"], function (Chartist) {
return (root.returnExportsGlobal = factory(Chartist));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
var gulp = require('gulp'),
sass = require('gulp-sass'),
minifyCSS = require('gulp-minify-css'),
rename = require('gulp-rename');
gulp.task('sass-to-css-please', function() {
return gulp.src('./scss/site.scss')
// Gulp tasks
var gulp = require('gulp'),
fs = require('fs'),
psi = require('psi'),
site = 'https://newproject.localtunnel.me';
key = '';
gutil = require('gulp-util'),
watch = require('gulp-watch'),
prefix = require('gulp-autoprefixer'),
@alistairtweedie
alistairtweedie / Normalise.css
Created September 3, 2013 13:51
Normalise.css
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@alistairtweedie
alistairtweedie / Quickstart.html
Last active December 17, 2015 14:19
HTML5 Quick start template
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">