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 / webpack-runtime-example.js
Last active September 1, 2018 07:00
Webpack module runtime example
(function(modules) {
// This is the module runtime.
// It's only included once per compilation.
// Other chunks share the same runtime.
var installedModules = {};
// The require function
function __webpack_require__(moduleId) {
...
}
...
@jhnns
jhnns / node-function-wrapper.js
Last active October 23, 2018 04:04
Node function wrapper
const module = {
exports: {}
};
const require = makeRequireFunction();
const filename = "...";
const dirname = "...";
(function (exports, require, module, __filename, __dirname) {
/* YOUR CODE */
})(module.exports, require, module, filename, dirname);
@jhnns
jhnns / generate.js
Created May 12, 2017 23:42
Dynamic modules
module.exports = options => ({
cacheable: true,
code: "console.log('Hello')"
}};
@jhnns
jhnns / index.json
Last active May 31, 2017 15:32
Github stars history of Meteor. Compiled with https://github.com/jhnns/popular-javascript-projects
This file has been truncated, but you can view the full file.
[
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
"2012-01-19T01:58:17Z",
@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",
@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: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: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: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 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.",