Skip to content

Instantly share code, notes, and snippets.

View niallrobinson's full-sized avatar

Niall Robinson niallrobinson

  • Met Office
  • Exeter
View GitHub Profile
@niallrobinson
niallrobinson / cube_explorer.py
Last active December 18, 2015 03:49 — forked from ajdawson/cube_explorer.py
an attempt at classifying and adding a picker. Doesn't work but you get the idea
'''
Proof of concept class for making interactive plot object which allow the addition
of navigation buttons.
Created on Jul 3, 2013
@author: nrobin
'''
import iris
@niallrobinson
niallrobinson / pre-commit
Last active November 27, 2015 12:38 — forked from DmZ/pre-commit
Git pre-commit hook to search for Amazon AWS API keys.
#!/usr/bin/env bash
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
EMPTY_TREE=$(git hash-object -t tree /dev/null)
against=$EMPTY_TREE
fi
@niallrobinson
niallrobinson / pre-commit.sh
Created November 27, 2015 09:24 — forked from czardoz/pre-commit.sh
Git pre-commit hook that checks for AWS keys
#!/usr/bin/env bash
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
EMPTY_TREE=$(git hash-object -t tree /dev/null)
against=$EMPTY_TREE
fi