before | after |
---|---|
![]() |
![]() |
![]() |
![]() |
relying on userContent.css
Go to https://github.com/settings/appearance and select Dark or Default to system.
// go to Help > Toggle Developer Tools | |
const toogleInlineStyle = (el, styleProp, styleValue) => | |
!!el.style[styleProp] ? (el.style[styleProp]='') : (el.style[styleProp]=styleValue) | |
const blur = () => | |
document.querySelectorAll('[class="monaco-scrollable-element editor-scrollable vs-dark"]') | |
.forEach(el => toogleInlineStyle(el, 'filter', 'blur(3px)')) | |
before | after |
---|---|
![]() |
![]() |
![]() |
![]() |
relying on userContent.css
Go to https://github.com/settings/appearance and select Dark or Default to system.
import { createMock } from '@golevelup/ts-jest'; | |
import { CallHandler, ExecutionContext, RequestTimeoutException } from '@nestjs/common'; | |
import { throwError } from 'rxjs'; | |
import { marbles } from 'rxjs-marbles/jest'; | |
import { TimeoutInterceptor } from '@/api/interceptors/timeout.interceptor'; | |
describe('TimeoutInterceptor', () => { | |
const TIMEOUT = TimeoutInterceptor.TIMEOUT_RESPONSE_TIME_MS; | |
// |
#!/bin/bash | |
URL="http://localhost:3001" | |
// https://github.com/mcollina/autocannon | |
autocannon "$URL" \ | |
--connections 100 \ | |
--timeout 20 \ | |
--pipelining 1 \ | |
--amount 2000 |
chmod +x *.sh
./set-aliases.sh
./install-exts.sh
mkdir -p ~/.config/prs/ && mv gh-prs--config.yml ~/.config/prs/config.yml
This uses the
files.exclude
setting of Visual Studio Code
You just need to copy the content of exclude.jsonc
to your settings.json
file.
before | after |
---|
// https://redis.io/topics/protocol | |
/** | |
* @param {string} str | |
* @returns {number} | |
* (c) https://stackoverflow.com/a/27377098/5290447 | |
*/ | |
function getBinarySize(str) { | |
return Buffer.byteLength(str, 'utf8'); | |
} |
#!/bin/bash | |
## (c) 2022 Micael Levi L. C. | |
## This script requires: | |
## - npm (https://nodejs.org) | |
## - jq (https://stedolan.github.io/jq) | |
file="${1:-./package.json}" | |
[ -r "$file" ] || { echo "The file $file is not readable" ; exit 1 ; } |