Skip to content

Instantly share code, notes, and snippets.

View johnmartin's full-sized avatar
:shipit:

John Martin johnmartin

:shipit:
View GitHub Profile
@johnmartin
johnmartin / keybase.md
Created June 15, 2016 14:06
keybase.md

Keybase proof

I hereby claim:

  • I am johnmartin on github.
  • I am johnmartin (https://keybase.io/johnmartin) on keybase.
  • I have a public key ASBk1CMlQdaXLy0XNcempZ8whayWEVzm5PuBm05_sZMD2Qo

To claim this, I am signing this object:

@johnmartin
johnmartin / gulpfile.js
Created February 4, 2016 10:47
Fixing icon font generation for Sketch 3.5
var gulp = require("gulp");
var del = require("del");
var rename = require("gulp-rename");
var sketch = require("gulp-sketch");
var iconfont = require("gulp-iconfont");
var consolidate = require("gulp-consolidate");
gulp.task("icons", function () {
del("./dist/", { force: true });
var svg = gulp.src("./icons.sketch")

Scroll Drawing

As you scroll down, the % scrolled of the document is calculated and that same % of an SVG <path> is drawn.

A Pen by Chris Coyier on CodePen.

License.

{
"country": "Bolivia",
"code": "BO",
"obi_score": 12,
"obi_year": 2012,
"date_start": "2012-09-01T00:00:00.000Z",
"date_end": "2014-09-01T00:00:00.000Z",
"data": [
{
"date": "2014-09-01T00:00:00.000Z",
@johnmartin
johnmartin / screens.js
Created March 3, 2014 15:33
Example CKAN instance screenshot taker
var webshot = require('webshot');
var gm = require('gm');
var options = {
screenSize: {
width: 1015, height: 725
},
renderDelay: 500
};
@johnmartin
johnmartin / example.html
Created October 23, 2012 09:39
Dataset list with popover examples
<p>This is a list of <a href="#datasetgroup-1" data-module="popover-list">5 datasets</a>.
Imagine there is more text here and it carries on in a paragraph.</p>
<p id="datasetgroup-1" class="js-hide">Everything in this paragraph
should appear within the popover.</p>
@johnmartin
johnmartin / base.html
Created October 18, 2012 09:45
CKAN 2.0 config to JS module
{% ckan_extends %}
{% block styles %}
{{ super() }}
<div class="js-hide" data-module="google-analytics" data-module-sitetitle="{{ config['ckan.site_title'] }}"></div>
{% endblock %}