Skip to content

Instantly share code, notes, and snippets.

View jhnns's full-sized avatar
🧀
When in doubt add cheese!

Johannes Ewald jhnns

🧀
When in doubt add cheese!
View GitHub Profile
@jhnns
jhnns / bundle.js
Created November 30, 2016 22:13
Simple webpack 2 bundle (containing ES2015 modules)
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
test
@jhnns
jhnns / DuplicateDependenciesError.js
Created February 1, 2017 14:58
Duplicate Dependencies Webpack Plugin
class DuplicateDependenciesError extends Error {
constructor(duplicateDependencies) {
super();
Error.captureStackTrace(this, DuplicateDependenciesError);
const messages = duplicateDependencies.map(helpfulErrorMessage);
const dedupedMessages = dedupeMessages({})(messages);
this.name = "DuplicateDependenciesError";
this.message = "compilation\nDuplicate dependencies found:\n" + dedupedMessages.join("\n");
@jhnns
jhnns / fragment.md
Created April 25, 2017 15:34
Introducing `<fragment>` element

Introducing <fragment> element

The problem

Web pages are often built of several high-level building blocks, like <Navigation>, <Content>, <Aside> and <Footer>. A typical web page looks roughly like this:

<html>
	<head>
 
@jhnns
jhnns / index.json
Last active May 26, 2020 03:10
Most popular web repositories with at least 10.000 stars. Compiled in May 2017 with https://github.com/jhnns/popular-javascript-projects. The list of repo types can be found at https://gist.github.com/jhnns/d233e88b40f5a2993c240847ccef4ee3.
[
{
"name": "freeCodeCamp/freeCodeCamp",
"description": "The https://freeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.",
"stars": 266038,
"type": "other"
},
{
"name": "twbs/bootstrap",
"description": "The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.",
@jhnns
jhnns / index.json
Last active May 31, 2017 15:39
Github stars history of Redux. Compiled with https://github.com/jhnns/popular-javascript-projects
[
"2015-05-30T00:12:13Z",
"2015-05-30T02:40:26Z",
"2015-05-30T08:24:06Z",
"2015-05-30T10:05:08Z",
"2015-05-30T10:33:28Z",
"2015-05-30T15:12:24Z",
"2015-05-30T17:04:57Z",
"2015-05-30T20:20:12Z",
"2015-05-30T21:58:50Z",
@jhnns
jhnns / index.json
Last active May 31, 2017 15:38
Github stars history of React. Capped at 40.000 entries due to API restrictions. Compiled with https://github.com/jhnns/popular-javascript-projects
This file has been truncated, but you can view the full file.
[
"2013-05-29T20:59:49Z",
"2013-05-29T21:18:36Z",
"2013-05-29T21:19:34Z",
"2013-05-29T21:20:23Z",
"2013-05-29T21:20:24Z",
"2013-05-29T21:20:24Z",
"2013-05-29T21:20:33Z",
"2013-05-29T21:20:55Z",
"2013-05-29T21:22:29Z",
@jhnns
jhnns / index.json
Last active May 31, 2017 15:36
Github stars history of Vue. Capped at 40.000 entries due to API restrictions. Compiled with https://github.com/jhnns/popular-javascript-projects
This file has been truncated, but you can view the full file.
[
"2013-08-09T04:48:33Z",
"2013-10-13T09:14:30Z",
"2013-10-14T22:25:14Z",
"2013-10-15T00:11:43Z",
"2013-11-03T01:11:46Z",
"2013-11-19T06:14:53Z",
"2013-12-05T16:15:28Z",
"2013-12-24T12:29:11Z",
"2014-01-08T18:56:13Z",
@jhnns
jhnns / index.json
Last active May 31, 2017 15:34
Github stars history of Angular 2+. Compiled with https://github.com/jhnns/popular-javascript-projects
[
"2014-09-29T20:45:14Z",
"2014-09-30T12:13:06Z",
"2014-09-30T12:15:17Z",
"2014-10-01T05:30:17Z",
"2014-10-01T05:31:02Z",
"2014-10-01T06:37:08Z",
"2014-10-01T20:10:12Z",
"2014-10-01T21:28:17Z",
"2014-10-02T07:28:39Z",
@jhnns
jhnns / index.json
Last active May 31, 2017 15:33
Github stars history of Angular 1. Capped at 40.000 entries due to API restrictions. Compiled with https://github.com/jhnns/popular-javascript-projects
This file has been truncated, but you can view the full file.
[
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",
"2010-01-06T00:34:37Z",