Skip to content

Instantly share code, notes, and snippets.

@shiftkey
shiftkey / output.md
Last active June 4, 2019 19:55
latest build output of github/semantic on WSL
shiftkey@perfectly-mediocre:~/src/semantic$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"

shiftkey@perfectly-mediocre:~/src/semantic$ cabal -V
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library
@shiftkey
shiftkey / keybase.md
Created May 10, 2019 23:20
keybase.md

Keybase proof

I hereby claim:

  • I am shiftkey on github.
  • I am shiftkey (https://keybase.io/shiftkey) on keybase.
  • I have a public key ASDmd1m3Cn2xb5L97wxA5O338UyHWeulLdG3-S2FYIXNQAo

To claim this, I am signing this object:

@shiftkey
shiftkey / lipsum.md
Created December 31, 2018 15:15
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
shiftkey / field-input.js
Created July 25, 2017 19:13
[react] a workaround for the caret position being reset after updating the value
// source: @aliaksandr-master at https://github.com/facebook/react/issues/955#issuecomment-316118969
// 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
shiftkey / howto-manually-add-trust-cert-to-rubygems.md
Created December 1, 2016 01:20
SSL issue with rubygems on Windows - explainer and workaround

SSL upgrades on rubygems.org 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.


Hello,

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

@shiftkey
shiftkey / program.cs
Created August 17, 2016 05:08
a quick and simple implementation of Pausable
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)
.DistinctUntilChanged();
@shiftkey
shiftkey / cliff-notes.md
Last active July 28, 2018 22:20
Working Distributed - Cliff Notes
https://github.com/octokit/octokit.net/issues/new?body=%23%23%23%20Story%20%2F%20Task%0A%0A%23%23%23%20Value%0A%0A%23%23%23%20Acceptance%20Criteria%0A%20-%20%5B%20%5D%20%0A%0A%23%23%23%20Notes
@shiftkey
shiftkey / gist:6eb57144d06275bdfdb0
Created January 5, 2016 03:27
tags sorted by popularity
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