Skip to content

Instantly share code, notes, and snippets.

Avatar

Alistair Tweedie alistairtweedie

  • United Kingdom
View GitHub Profile
View config_hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@alistairtweedie
alistairtweedie / chartist-plugin-tooltip-custom.js
Created Sep 25, 2016
Custom chartist tooltip plugin - modified from original
View chartist-plugin-tooltip-custom.js
(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,
View gulpfile.js
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')
View gulpfile.js
// 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'),
View 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 Dec 17, 2015
HTML5 Quick start template
View Quickstart.html
<!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="">