group | name | emojis |
---|---|---|
positive | ||
winning | 🥳😎🤩🤑🤓🤠😇🫡 | |
cheeky | 😏😉😋😛😝😜🤪 | |
happy | 🙂🙃😀😃😁😄😆😅😂🤣 | |
content | 😌 |
|
amorous | 😗😙😚😘😍 | |
neutral | ||
shy | 🫢🤭 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Prepare_CSV() | |
' | |
' Prepare Barclays bank CSV export | |
' | |
' - formats number, date and amount columns | |
' - splits memo column | |
' - trims resulting cells | |
' - consolidates amazon payees | |
' - copies data to clipboard | |
' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type Region | |
src As Range | |
col As Long | |
End Type | |
Sub Copy_Columns() | |
' | |
' This Excel macro copies columns from a <source> sheet to a <target> sheet: | |
' | |
' - by default, sheets 1 and 2 will be used as <source> and <target> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let values = [] | |
let scores = [] | |
function prepare (length = 10_000_000) { | |
values = (new Array(length)).fill(1).map((e, i) => i) | |
} | |
function forIn () { | |
const output = [] | |
for (let i = 0; i < values.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: document.querySelectorAll('*').forEach(e => { | |
if (e.childNodes.length === 1 && e.childNodes[0].nodeType === Element.TEXT_NODE) { | |
if (e.innerText && e.innerText === e.innerText.toUpperCase()) { | |
e.innerText = e.innerText.toLowerCase() | |
.replace(/^\w|\.\s+\w/gm, t => t.toUpperCase()) | |
.replace(/\si\s/, ' I '); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CSP = require('./csp') | |
// --------------------------------------------------------------------------------------------------------------------- | |
// variables | |
// --------------------------------------------------------------------------------------------------------------------- | |
const csp = `script-src 'self' *; img-src data: *` | |
const isDev = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Typora GitHub user theme | |
* | |
* Makes markdown docs look *exactly* like they do on GitHub | |
* | |
* To install, drop in your Typora themes folder and open a new window | |
*/ | |
body { | |
font-family: BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; | |
font-size: 16px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modules/content-indexer.ts | |
import Fs from 'fs' | |
import Path from 'path' | |
import { defineNuxtModule, extendPages, extendRouteRules } from '@nuxt/kit' | |
import { ModuleOptions, Nuxt } from '@nuxt/schema' | |
import { MountOptions } from '@nuxt/content' | |
const name = 'content-indexer' | |
export default defineNuxtModule({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function isObject (value?: unknown): boolean { | |
return !!value && typeof value === 'object' | |
} | |
export function isPlainObject (value?: unknown): boolean { | |
return isObject(value) && !Array.isArray(value) | |
} | |
export function isEmpty (value?: unknown): boolean { | |
if (value === null || value === undefined) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>See: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element">https://developer.mozilla.org/en-US/docs/Web/HTML/Element</a></p> | |
<section> | |
<h1>Heading 1</h1> | |
<h2>Heading 2</h2> | |
<h3>heading 3</h3> | |
<h4>Heading 4</h4> | |
<h5>Heading 5</h5> | |
<h6>Heading 6</h6> | |
</section> |
NewerOlder