Skip to content

Instantly share code, notes, and snippets.

👀
Currently looking, ideally for a good cause!

David Calhoun davidcalhoun

👀
Currently looking, ideally for a good cause!
Block or report user

Report or block davidcalhoun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gricard
gricard / webpack4upgrade.md
Last active Feb 5, 2020
Just some notes about my attempt to upgrade to webpack 4
View webpack4upgrade.md

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ webpack@4.0.0-beta.2
View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@david-mark
david-mark / usestrict.md
Last active May 4, 2020
'use strict' Considered Pointless and Harmful
View usestrict.md

'use strict' Considered Pointless and Harmful

What is strict mode?

According to the MDN reference, it is:

ECMAScript 5's strict mode is a way to opt in to a restricted variant of JavaScript [sic].

It goes on to say:

View convert-to-kebab-case.js
const convertToKebabCase = (string) => {
return string.replace(/\s+/g, '-').toLowerCase();
}
@nolanlawson
nolanlawson / why_we_dropped_lerna_from_pouchdb.md
Last active Dec 9, 2019
Why we dropped Lerna from PouchDB
View why_we_dropped_lerna_from_pouchdb.md

Why we dropped Lerna from PouchDB

We dropped Lerna from our monorepo architecture in PouchDB 6.0.0. I got a question about this from @reconbot, so I thought I'd explain our reasoning.

First off, I don't want this post to be read as "Lerna sucks, don't use Lerna." We started out using Lerna, but eventually outgrew it because we wrote our own custom thing. Lerna is still a great idea if you're getting started with monorepos (monorepi?).

Backstory:

@conspect
conspect / cult_of_ignorance.md
Last active Apr 22, 2019
A Cult Of Ignorance, Isaac Asimov
View cult_of_ignorance.md

It's hard to quarrel with that ancient justification of the free press: "America's right to know." It seems almost cruel to ask, ingeniously, "America's right to know what, please? Science? Mathematics? Economics? Foreign languages?"

None of those things, of course. In fact, one might well suppose that the popular feeling is that Americans are a lot better off without any of that tripe.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way throughout political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."

Politicians have routinely striven to speak the language of Shakespeare and Milton as ungrammaticaly as possible in order to avoid offending their audiences by appearing to have gone to school. Thus, Adlai Stevenson, who incautiously allowed intelligence and learning and wit to peep out of his speeches, found the American people

@rhyolight
rhyolight / request-to-travis-ci.md
Last active May 13, 2020
An Open Request to Travis-CI
View request-to-travis-ci.md

An Open Request to Travis-CI

I run open source projects for Numenta, and we are heavy users of Travis-CI. Most aspects of your service are oustanding. Here is a short list of the ways in which I love Travis-CI:

  • Your customer support is immediately responsive, via email and chat.
  • Your service integrates wonderfully with all the other services we use.
  • Your API is excellent and well-documented.
  • The rest of your documentation is also very complete and easy to read.
  • You provide an OS X build environment!
  • Builds are extremely customizable.
@staltz
staltz / introrx.md
Last active May 29, 2020
The introduction to Reactive Programming you've been missing
View introrx.md
@ixisio
ixisio / README.md
Last active Sep 7, 2019
The LEBRON stack
View README.md
@traviskaufman
traviskaufman / jasmine-this-vars.md
Last active Apr 26, 2020
Better Jasmine Tests With `this`
View jasmine-this-vars.md

Better Jasmine Tests With this

On the Refinery29 Mobile Web Team, codenamed "Bicycle", all of our unit tests are written using Jasmine, an awesome BDD library written by Pivotal Labs. We recently switched how we set up data for tests from declaring and assigning to closures, to assigning properties to each test case's this object, and we've seen some awesome benefits from doing such.

The old way

Up until recently, a typical unit test for us looked something like this:

describe('views.Card', function() {
You can’t perform that action at this time.