Skip to content

Instantly share code, notes, and snippets.

View RDIL's full-sized avatar

Reece Dunham RDIL

View GitHub Profile
@RDIL
RDIL / README.md
Created April 1, 2020 15:11
Delete any PythonAnywhere log file

Usage

  1. install pythonanywhere with pip
  2. run this file
  3. put the log file names in the prompt one-by-one
  4. you are done!

NOTE: you need to run the file in a pythonanywhere console otherwise it will break.

@RDIL
RDIL / webpack-4-runtime~main.js
Created February 16, 2021 19:14
Docusaurus 2: webpack 4 vs webpack 5 dev runtime chunks
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];