Skip to content

Instantly share code, notes, and snippets.

View cameronhunter's full-sized avatar

Cameron Hunter cameronhunter

View GitHub Profile
@cameronhunter
cameronhunter / keybase.md
Created November 19, 2016 22:04
keybase.md

Keybase proof

I hereby claim:

  • I am cameronhunter on github.
  • I am cameronhunter (https://keybase.io/cameronhunter) on keybase.
  • I have a public key whose fingerprint is 96DA 316E C416 C535 0DBA 285A B518 7FF2 2BD2 4938

To claim this, I am signing this object:

{
"v": 2,
"parserID": "babylon7",
"toolID": "babelv7",
"settings": {
"babylon7": null
},
"versions": {
"babylon7": "7.0.0",
"babelv7": "7.0.0"

Keybase proof

I hereby claim:

  • I am cameronhunter on github.
  • I am cameronhunter (https://keybase.io/cameronhunter) on keybase.
  • I have a public key ASA3DI6aob5qHrmI2Zhe3-leKg8teAhnP4cFdtwJP9vsRwo

To claim this, I am signing this object:

@cameronhunter
cameronhunter / semver.sh
Last active April 9, 2022 04:12
Parse a semver string in bash using a regular expression
#!/usr/bin/env bash
##
# Get the major/minor/patch semver from a string.
#
# Author: Cameron Hunter <hello@cameronhunter.co.uk>
# License: MIT 2022
#
# Examples:
# semver v14.22.1 major → 14