tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"target": **TARGET**,
...
/* | |
Lets you extract the properties of an interface that are of a specific type, | |
such as "this parameter takes the name of any propert of T that maps to a string value". | |
See "groupObjectsByProperty.ts" for an example. | |
*/ | |
// region ExtractPropertiesOfType | |
type FilterFlags<O, T> = { [K in keyof O]: O[K] extends T ? K : never }; | |
type AllowedNames<O, T> = FilterFlags<O, T>[keyof O]; |
patch-package | |
--- a/node_modules/webpack/lib/dependencies/ImportParserPlugin.js | |
+++ b/node_modules/webpack/lib/dependencies/ImportParserPlugin.js | |
@@ -28,7 +28,8 @@ class ImportParserPlugin { | |
const param = parser.evaluateExpression(expr.arguments[0]); | |
let chunkName = null; | |
- let mode = "lazy"; | |
+ // let mode = "lazy"; | |
+ let mode = "eager"; |
/// <reference path="typings/node/node.d.ts" /> | |
/// <reference path="typings/typescript/typescript.d.ts" /> | |
import ts = require("typescript"); | |
import fs = require("fs"); | |
import path = require("path"); | |
function transform(contents: string, libSource: string, compilerOptions: ts.CompilerOptions = {}) { | |
// Generated outputs | |
var outputs = []; |
# Update to Latest Windows 10 Spring Refresh | |
# Install WSL | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
# Get Ubuntu installed - https://docs.microsoft.com/en-us/windows/wsl/install-on-server | |
wsl.exe | |
# Install ChefDK deb package |
by Bruce Pascoe - 1 May, 2019
"A monad is just a monoid in the category of endofunctors. What's the problem?" ~James Iry[^1]
The problem... is that there are several problems.
It's been said that monads bear a dreadful curse. Once you finally understand what they are, you begin to see them everywhere--but somehow become completely incapable of explaining them to anyone else. Many tutorial writers have tried to break the Great Curse--the Web is lousy with bold attempts and half successes that attest to this--and just as many have failed. Well, I'm here to address the elephant in the room[^2] and tell you that I intend to break the Great Curse once and for all.
There are basically two ways a monad tutorial tends to go. One is a paragraph or two of minimal descriptions of one or two common monads (Haskell's Maybe
in particular is very popular), followed by a lot of intimidating Haskell syntax trying to explain--precisely--how it all fits together. This is well
You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.
(this is no longer an option on any recent Windows 10 build)
Xbox
or Game Bar
, until you get the Xbox Game Bar app to appear in the results.Uninstall
. Answer Yes
to the prompt, and wait for the process to finish.javascript:(function() { | |
let id = parseInt(location.pathname.match("([0-9]{1,5})")[0], 10); if (id === NaN) {return}; | |
fetch("https://api.ageofempires.com/api/v1/mods/Download", {"credentials": "include", "headers": { "Content-Type": "application/json" }, "body": JSON.stringify({id, boolValue: true}), "method": "POST", "mode": "cors"}).then(r => r.json()).then(r => {location.href = r.value.downloadUrl}).catch(e => console.log(e)); | |
})() |