Skip to content

Instantly share code, notes, and snippets.

View bdurrani's full-sized avatar
:octocat:
Computering all the things

Bilal Durrani bdurrani

:octocat:
Computering all the things
View GitHub Profile
@bdurrani
bdurrani / curry-record.md
Created September 18, 2019 16:48 — forked from timhwang21/curry-record.md
Curry unary functions that take a record as an argument

curryRecord

This is an example of a function whose logic lives in the type definition rather than in the function body.

/**
 * @name `curryRecord`
 *
 * Takes a unary function that takes a record as an argument, and makes the
 * record partially applicable. Returns a new function that takes a partial of
@bdurrani
bdurrani / README.md
Created August 26, 2019 16:59 — forked from boneskull/README.md
example of how to debug mocha v4 if hanging

Here's an example of how to debug Mocha v4 if it hangs.

Ensure you're using a Node.js 8 or newer (or any version with async_hooks support).

If you run your test, you'll notice it hangs:

$ mocha test.js
@bdurrani
bdurrani / boxstarter.ps1
Last active February 4, 2018 18:57 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt: