Skip to content

Instantly share code, notes, and snippets.

View mwickett's full-sized avatar

Mike Wickett mwickett

  • HashiCorp
  • London, Ontario
  • 20:28 (UTC -04:00)
  • X @mwickett
View GitHub Profile
@mwickett
mwickett / alfred-test-email.js
Last active May 25, 2018 13:47
Alfred script that creates a test email using the date and a random string
// This is meant to be used with Alfred app - https://www.alfredapp.com/
// Alfred drops args in as {query}
// Customize your default email address as you wish.
function run() {
let email = "{query}"
if (!email) email = 'mike@wickett.ca'
const date = new Date()
.toISOString()
.substring(0, 10)
@mwickett
mwickett / formikApollo.js
Last active December 20, 2022 23:00
Formik + Apollo
import React from 'react'
import { withRouter, Link } from 'react-router-dom'
import { graphql, compose } from 'react-apollo'
import { Formik } from 'formik'
import Yup from 'yup'
import FormWideError from '../elements/form/FormWideError'
import TextInput from '../elements/form/TextInput'
import Button from '../elements/form/Button'
import { H2 } from '../elements/text/Headings'
@mwickett
mwickett / spike-beginner.md
Last active August 3, 2017 18:40
Spike - beginner questions, gotchas & tips - a list of things that either tripped me up, or needed extra explanation

Spike Beginner Thoughts

This is a WIP list of things that either tripped me up, or needed extra explanation and research before I really understood them. This may serve as a starting point for tutorial style articles, or additions and improvements to Spike's documentation.

sugarml / reshape

  1. Includes - the fact that you can use includes as a simple component because inludes receive their parent scope variables
  2. Conditionals - if statements in reshape silently fail if there is a stray space at the end of the line
  3. Loops - difference between of and in
  4. Local functions - using them as 'mixins' - showing a couple of examples would be great. Need to use {{{ }}} 3 curlies rather than 2
@mwickett
mwickett / keybase.md
Created April 18, 2017 15:47
Keybase verification

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mwickett
mwickett / sugarlml-responsive-image.cson
Last active March 22, 2017 16:03
SugarML responsive image snippet (Atom)
'.source.sugarml':
'Responsive Imaage':
'prefix': 'rimg'
'body': """
picture
source(type='image/webp'
srcset='{{ $1 }}?fm=webp&w=2000&fit=fill 2000w,
{{ $1 }}?fm=webp&w=1500&fit=fill 1500w,
{{ $1 }}?fm=webp&w=900 900w,
{{ $1 }}?fm=webp&w=450 450w')
@mwickett
mwickett / Contract Killer 3.md
Created October 31, 2016 13:26 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

Here are a few questions that will tee us up for a good conversation:
- Can you tell me about your project in a few sentences?
- What’s the timeframe? Does a certain event depend on this project launching?
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design?
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site?
- How large is your team? What are the roles you envision on your end?
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on?
- How much money have you set aside for this project?
- Are you talking to others about this project? Might we ask how many? What do you like about their work?