Skip to content

Instantly share code, notes, and snippets.

Out sick

Brendan Forster shiftkey

Out sick
View GitHub Profile
shiftkey /
Last active Jun 4, 2019
latest build output of github/semantic on WSL
shiftkey@perfectly-mediocre:~/src/semantic$ cat /etc/lsb-release

shiftkey@perfectly-mediocre:~/src/semantic$ cabal -V
cabal-install version
compiled using version of the Cabal library

Keybase proof

I hereby claim:

  • I am shiftkey on github.
  • I am shiftkey ( on keybase.
  • I have a public key ASDmd1m3Cn2xb5L97wxA5O338UyHWeulLdG3-S2FYIXNQAo

To claim this, I am signing this object:

shiftkey /
Created Dec 31, 2018
new file to trigger "too large" warning inside GitHub Desktop

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ut tincidunt felis, et viverra mauris. Suspendisse eu tellus nec lorem ornare facilisis. Integer euismod volutpat elit a faucibus. Vestibulum tellus justo, congue at sapien id, semper sagittis neque. Proin ornare nisl eu quam molestie, sed tempor quam viverra. Cras scelerisque, est in mattis ultricies, dui leo laoreet turpis, et mattis arcu nunc ac est. Etiam id dolor et ligula interdum mattis. Nullam purus urna, porttitor in varius quis, rutrum ac purus. Ut metus tellus, aliquam eu eros a, venenatis congue tellus. Nullam id enim ut ipsum ultrices auctor.

Duis tristique in nisi non laoreet. Nullam et velit nulla. Aliquam erat volutpat. Praesent vitae auctor purus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus volutpat, velit sed sagittis egestas, nulla nisl consequat metus, luctus elementum tellus ex vitae ante. Donec augue lectus, condimentum nec dui eget, tristique imperdiet risus. Intege

shiftkey / field-input.js
Created Jul 25, 2017
[react] a workaround for the caret position being reset after updating the value
View field-input.js
// source: @aliaksandr-master at
// documenting it here in case it gets edited or disappeared from the issue
const FieldInput = class FieldInput extends Component {
static propTypes = {
onChange: PropTypes.func,
value: PropTypes.oneOfType([ PropTypes.number, PropTypes.string ])
constructor (...args) {
shiftkey /
Created Dec 1, 2016
SSL issue with rubygems on Windows - explainer and workaround

SSL upgrades on and RubyInstaller versions

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


If you reached this page, means you've hit this SSL error when trying to

shiftkey / program.cs
Created Aug 17, 2016
a quick and simple implementation of Pausable
View program.cs
static void Main(string[] args)
var range = Observable.Interval(TimeSpan.FromSeconds(1));
var sampler = new Subject<bool>();
var sendWhileTrue = range.CombineLatest(sampler, Tuple.Create)
.Where(tuple => tuple.Item2)
.Select(tuple => tuple.Item1)
shiftkey /
Last active Jul 28, 2018
Working Distributed - Cliff Notes
View gist:094546527734f4d48673
View gist:6eb57144d06275bdfdb0
Library -- 1
Command-line -- 1
Version -- 1
AD -- 1
Active Directory -- 1
Semantic Versioning -- 1
Player -- 1
actormodel -- 1
akka -- 1
concurrency -- 1
  • Chocolatey - $51k raised of $40k goal = 1,044 donors, $48.99 average

  • Read the Docs - $26k raised of $24k goal = 174 donors, $149 average

  • Ghost - £196k of £25k goal = 5236 donors, £37.50 average (USD $56.43 as at 2013-05-28)

  • Tokaido - $51k of $25k goal = 739 donors, $69.30 average

  • Mailpile - $163k of 100k goal = 3639 donors, $44.84 average