Skip to content

Instantly share code, notes, and snippets.

View richardgill's full-sized avatar

Richard Gill richardgill

View GitHub Profile
@richardgill
richardgill / shouldIPutItInRedux.md
Created December 7, 2017 11:41
Should I put it in Redux?

Should I put it in Redux?

Probably.

Exceptions

1. You want to reuse a component. Put it in multiple projects / put it in NPM.

You don't really want to force other people projects to use redux / setup loads of redux stuff in this case.

@richardgill
richardgill / bashrc.sh
Created January 1, 2019 18:12
Rich's Bash Profile Tips
export PS1="\[\e[30;1m\w\[\e[0m\]\$(git-radar --bash --fetch)\n$ "
alias githubdiff='open "https://github.$(git config remote.origin.url | cut -f2 -d.)/compare/$(git rev-parse --abbrev-ref HEAD)?expand=1"'
alias bitbucketdiff='open "$(git config remote.origin.url)/pull-requests/new#diff"'
// Immediately-invoked function expression
"use strict";
var duration = /(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zµμ]*)/gi;
/**
* conversion ratios
*/
@richardgill
richardgill / microCovidFeedback.md
Last active September 13, 2020 20:42
Micro Covid

Hi Micro Covid team!

First of all - let me say that I think Micro Covid is amazing and your work is fantastic!

I helped build a similar tool https://shouldigooutnow.com/, which is a little bit simpler than Micro Covid. We built it over the last couple of weeks without any knowledge that Micro Covid existed. So, reading your whitepaper and looking at the code has been really interesting. You might find it interesting to read about our methodology - we've done a few things differently.

Our code is open source, here is our core risk model, we've tried to keep it as short and clear as possible.