Skip to content

Instantly share code, notes, and snippets.

View doowb's full-sized avatar
:octocat:
Creating something awesome!

Brian Woodward doowb

:octocat:
Creating something awesome!
View GitHub Profile
  • Begin with the user in mind
  • Check bug reports, and resolve any critical issues
  • Review yesterday's todo list
  • Create today's todo list
  • Announce todo list to team
  • Identify and discuss blockers
@jonschlinkert
jonschlinkert / patchy-patch-patch.md
Created June 19, 2019 17:37
The very brief guide to getting rid of NPM's annoying "vulnerability" messages for packages that have been patched.

How to get the latest patch

This little guide describes what to do when:

  1. You see a vulnerability warning for a package, and
  2. The package has already been fixed, and a patch version has been released.

TLDR;

  1. Delete all lock files
@jonschlinkert
jonschlinkert / permutations-with-max-depth.js
Last active February 8, 2024 08:26
Generate all permutations of an array. Alternative to the many variants of heap's algorithm I keep finding on the interweb. Every single algorithm I found produced incorrect results. This one is correct.
/**
* This variant takes a max depth as the second argument.
*/
const permutations = (value, max = value.length) => {
let depth = Math.min(max, value.length);
let results = [];
const permute = (queue = []) => {
if (queue.length === depth) {

Guide to Contributing to Enquirer

Welcome!

Thanks for choosing to contribute to Enquirer! We're so happy that you're contributing to open source projects, and we're even happier that one of those projects is ours!

Teamwork

There is no faster, more effective way to improve a product than from the feedback from the first experience of a new user -- Jon Schlinkert

@jonschlinkert
jonschlinkert / repos.sh
Last active March 4, 2021 19:16
Clone all repos for the given user/org. Just replace <USERNAME> and run this in the command line.
curl -s https://api.github.com/users/<USERNAME>/repos?per_page=100 | ruby -rjson -e 'JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["clone_url"]} ]}'
@jonschlinkert
jonschlinkert / longest.js
Created June 13, 2018 14:49
Get the length of the longest item in an array of strings.
const longest = arr => arr.reduce((len, v) => Math.max(v.length, len), 0);
@doowb
doowb / README.md
Last active March 17, 2016 13:33
Use es2015 javascript generators as assemble tasks.

Using es2015 javascript generators in assemble tasks.

Assemble is now able to directly take a generator function as a task function. This removes the need for a callback when running synchronous code inside tasks.

From

app.task('load', function(cb) {
  app.layouts(['src/layouts/**/*.hbs']);
 app.partials(['src/partials/**/*.hbs']);
@bcoe
bcoe / npm-top.md
Last active March 23, 2024 20:02
npm-top.md

npm Users By Downloads (git.io/npm-top)


npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.

Metrics are calculated using top-npm-users.

# User Downloads

Keybase proof

I hereby claim:

  • I am tunnckoCore on github.
  • I am tunnckocore (https://keybase.io/tunnckocore) on keybase.
  • I have a public key whose fingerprint is EF84 4C66 A0E5 90FE 8849 452F 8047 B4A8 262C 7486

To claim this, I am signing this object: