NOTICE: I moved most of this content that I no longer maintain within this gist over to its own repo here https://github.com/radum/performance-testing-framework
// https://github.com/WICG/paint-timing
performance.getEntries();
[ | |
{ "keys": ["ctrl+pagedown"], "command": "next_view" }, | |
{ "keys": ["ctrl+pageup"], "command": "prev_view" } | |
] |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>My Angular from Scratch</title> | |
<style> | |
.my-component { | |
font-family: Arial, sans-serif; |
NOTICE: I moved most of this content that I no longer maintain within this gist over to its own repo here https://github.com/radum/performance-testing-framework
// https://github.com/WICG/paint-timing
performance.getEntries();
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
The Map Remote tool changes the request location, per the configured mappings, so that the response is transparently served from the new location as if that was the original request.
Using this feature for http
resources does't require anything else apart from just configuring your Map Remote entry.
Always make sure you are clearing your cache before you test. Even if Charles is configured properly you might not see the changes unless the browser gets the resource again from the server and not for its local cache.
#!/usr/bin/bash | |
########## | |
# contents | |
# https://bitbucket.org/BitPusher16/dotfiles/src/1777024d574c2245193687bd632d056ded41287e/refs/git/git_examples.sh?at=master | |
########## | |
# contents | |
# notes | |
# script setup |
' Before we can start you’ll need to add a reference to your VBA project: | |
' Microsoft ActiveX Data Objects x.x Library | |
Option Explicit | |
Private Conn As ADODB.Connection | |
Function ConnectToDB(Server As String, Database As String) As Boolean | |
Set Conn = New ADODB.Connection | |
On Error Resume Next |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.Use bash. Using zsh or fish or any other, will make it hard for others to understand / collaborate. Among all shells, bash strikes a good balance between portability and DX.
Just make the first line be #!/usr/bin/env bash, even if you don’t give executable permission to the script file.
Use the .sh (or .bash) extension for your file. It may be fancy to not have an extension for your script, but unless your case explicitly depends on it, you’re probably just trying to do clever stuff. Clever stuff are hard to understand.
Use set -o errexit at the start of your script.
So that when a command fails, bash exits instead of continuing with the rest of the script. Prefer to use set -o nounset. You may have a good excuse to not do this, but, my opinion, it’s best to always set it.
<customMapSource> | |
<name>Google Maps</name> | |
<minZoom>0</minZoom> | |
<maxZoom>20</maxZoom> | |
<tileType>PNG</tileType> | |
<tileUpdate>IfNoneMatch</tileUpdate> | |
<url>http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&hl=en-EN&x={$x}&y={$y}&z={$z}&s=Galileo&scale=1</url> | |
<serverParts>0 1 2 3</serverParts> | |
</customMapSource> |