Skip to content

Instantly share code, notes, and snippets.

View benbrignell's full-sized avatar

Ben Brignell benbrignell

View GitHub Profile
@benbrignell
benbrignell / new.sh
Last active June 1, 2017 13:01
Create jekyll my-post-title.md with today's date and folder in /assets
#!/bin/bash -xe
if [ "$#" -eq 0 ]; then
echo "Usage: '$0 my-post-title'"
exit 1
fi
name=$(date +"%d-%m-%y")-$1
mkdir -p _posts
touch "_posts/$name.md"
mkdir -p "assets/$name"
@benbrignell
benbrignell / sketch-plugins.md
Created April 8, 2015 16:30
Sketch plugins
@benbrignell
benbrignell / import.io map app code snippet
Last active August 29, 2015 13:58
Web designer import.io map app code snippet
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.2/mapbox.css' rel='stylesheet' />
</head>
<body>
<div id='map'></div>
<script>