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 |
|---|
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 |
|---|
This is a strawman proposal for adding pattern matching to ECMAScript. Pattern matching is useful for matching a value to some structure in a similar way to destructuring. The primary difference between destructuring and pattern matching are the use cases involved - destructuring is useful for binding pieces out of larger structures whereas pattern matching is useful for mapping a value's structure to data or a set of behaviors. In practice this means that destructuring tends to allow many shapes of data and will do its best to bind something out of it, whereas pattern matching will tend to be more conservative.
Additionally, the power of pattern matching is increased substantially when values are allowed to participate in the pattern matching semantics as a matcher as well as a matchee. This proposal includes the notion of a pattern matching protocol - a symbol method that can be implemented by objects that enables developers to use those values in pattern matching. A common scenario w
| #!/bin/bash | |
| # | |
| # Written by Corey Haines | |
| # Scriptified by Gary Bernhardt: https://github.com/garybernhardt/dotfiles/blob/master/bin/git-churn | |
| # | |
| # Put this anywhere on your $PATH (~/bin is recommended). Then git will see it | |
| # and you'll be able to do `git churn`. | |
| # | |
| # Show churn for whole repo: | |
| # $ git churn |
Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "[email protected]"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).
Test SSH key:
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var browserify = require('browserify'); | |
| var babelify = require('babelify'); | |
| var source = require('vinyl-source-stream'); | |
| gulp.task('browserify', function() { | |
| return browserify({ debug: true }) | |
| .transform(babelify) |
| cd fonts | |
| mv *.ttf /usr/share/fonts/truetype | |
| cd /usr/share/fonts/truetype | |
| mkfontscale | |
| mkfontdir | |
| fc-cache | |
| xset fp rehash |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
| var gulp = require('gulp'); | |
| var streamify = require('gulp-streamify'); | |
| var uglify = require('gulp-uglify'); | |
| var notify = require('gulp-notify'); | |
| var gutil = require('gulp-util'); | |
| var less = require('gulp-less'); | |
| var rename = require('gulp-rename'); | |
| var nodemon = require('gulp-nodemon'); | |
| var jshint = require('gulp-jshint'); | |
| var react = require('gulp-react'); |
| The MIT License (MIT) | |
| Copyright (c) 2014 Tomas Kafka | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| var express = require('express'), | |
| auth = require('http-auth'); | |
| // Configure basic auth | |
| var basic = auth.basic({ | |
| realm: 'SUPER SECRET STUFF' | |
| }, function(username, password, callback) { | |
| callback(username == 'admin' && password == 'f00lpr00f'); | |
| }); |