Add this to your devtools console.
var oldEPD = Event.prototype.preventDefault;
Event.prototype.preventDefault = function() {
debugger;
| let members = new Map([["Sam", 56], ["Sandy", 86]]); | |
| let youngestMemberAge = Math.min(...members.values()) // 86 | |
| let Over60s = new Map( | |
| [...members].filter(([name, age]) => 60 < age) | |
| ); | |
| let Over60sUserNames = new Map( | |
| [...members].map(([name, age]) => { |
| RenderModal(settings) { | |
| const { modalIsOpen, targetDomNode } = settings; | |
| const closeModal = () => { | |
| this.RenderModal( | |
| Object.assign(settings, { | |
| modalIsOpen: false | |
| }) | |
| ); | |
| }; |
| /** | |
| * API Service | |
| * @async | |
| * @returns {Promise<Object>} | |
| */ | |
| async function Service() { | |
| let response = await fetch('/api.json'); | |
| if (response.ok) return await response.json(); | |
| throw new Error(response.statusText); | |
| } |
| function getEncoder(encoding) { | |
| const encoder = encoding === "utf8" ? new UTF8Encoder() | |
| : encoding === "utf16le" ? new UTF16Encoder(false) | |
| : encoding === "utf16be" ? new UTF16Encoder(true) | |
| : throw new Error("Unsupported encoding"); | |
| } |
What would a Immediately Invoked Class Expression in JavaScript look like. This is the question I asked myself. I couldnt find anything online, so I created one.
Below we have a Immediately Invoked Class Expression. This could also be called a Self-Executing Anonymous Class.
void new class {
constructor () {
console.log("hello world")| *Expected Behaviour:* | |
| *Current Behaviour:* | |
| *Possible Solution:* | |
| *Steps to Reproduce:* | |
| 1. |
| const sample = require("lodash/sample"); | |
| const flatMapDeep = require("lodash/flatMapDeep"); | |
| const lineCollection = [ | |
| { symbol: "■", rarity: 25 }, | |
| { symbol: "─", rarity: 25 }, | |
| { symbol: "=", rarity: 20 }, | |
| { symbol: "-=", rarity: 20 }, | |
| { symbol: "✦", rarity: 20 }, | |
| { symbol: "<>", rarity: 20 }, |
Our long term goal will be to use SSH over USB. This means that we have to configure Raspbian to treat the USB port like an ethernet port. Mount the micro SD card in a computer (not Pi Zero) and open it with Finder, or Windows Explorer, or whatever it is that you use.
The first thing that you want to do is open a file at the root of the mounted drive called config.txt. In this file you want to add the following line at the very bottom:
dtoverlay=dwc2
The above line will set us up for the next file that we alter. The next file we alter is cmdline.txt, but it is a bit different. Parameters in this file are not delimited by new lines or commas, they are delimited by space characters. In this file we want to add the following:
| @mixin modify ($modifier) { | |
| $class: quote(#{&}); | |
| $index: str-index($class, '__'); | |
| $parent: str-slice($class, 1, $index - 1); | |
| @at-root #{selector-nest(#{$parent}--#{$modifier}, &)} { | |
| @content; | |
| } | |
| } | |
| .parent { |