This file contains hidden or 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
😀 😃 😄 😁 😆 😅 🤣 😂 🙂 🙃 🫠 😉 😊 😇 🥰 😍 🤩 😘 😗 ☺ 😚 😙 🥲 😋 😛 😜 🤪 😝 🤑 🤗 🤭 🫢 🫣 🤫 🤔 🫡 🤐 🤨 😐 😑 😶 🫥 😶🌫️ 😏 😒 🙄 😬 😮💨 🤥 🫨 😌 😔 😪 🤤 😴 😷 🤒 🤕 🤢 🤮 🤧 🥵 🥶 🥴 😵 😵💫 🤯 🤠 🥳 🥸 😎 🤓 🧐 😕 🫤 😟 🙁 ☹ 😮 😯 😲 😳 🥺 🥹 😦 😧 😨 😰 😥 😢 😭 😱 😖 😣 😞 😓 😩 😫 🥱 😤 😡 😠 🤬 😈 👿 💀 ☠ 💩 🤡 👹 👺 👻 👽 👾 🤖 😺 😸 😹 😻 😼 😽 🙀 😿 😾 🙈 🙉 🙊 💌 💘 💝 💖 💗 💓 💞 💕 💟 ❣ 💔 ❤️🔥 ❤️🩹 ❤ 🩷 🧡 💛 💚 💙 🩵 💜 🤎 🖤 🩶 🤍 💋 💯 💢 💥 💫 💦 💨 🕳 💬 👁️🗨️ 🗨 🗯 💭 💤 👋 🤚 🖐 ✋ 🖖 🫱 🫲 🫳 🫴 🫷 🫸 👌 🤌 🤏 ✌ 🤞 🫰 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝ 🫵 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 🫶 👐 🤲 🤝 🙏 ✍ 💅 🤳 💪 🦾 🦿 🦵 🦶 👂 🦻 👃 🧠 🫀 🫁 🦷 🦴 👀 👁 👅 👄 🫦 👶 🧒 👦 👧 🧑 👱 👨 🧔 🧔♂️ 🧔♀️ 👨🦰 👨🦱 👨🦳 👨🦲 👩 👩🦰 🧑🦰 👩🦱 🧑🦱 👩🦳 🧑🦳 👩🦲 🧑🦲 👱♀️ 👱♂️ 🧓 👴 👵 🙍 🙍♂️ 🙍♀️ 🙎 🙎♂️ 🙎♀️ 🙅 🙅♂️ 🙅♀️ 🙆 🙆♂️ 🙆♀️ 💁 💁♂️ 💁♀️ 🙋 🙋♂️ 🙋♀️ 🧏 🧏♂️ 🧏♀️ 🙇 🙇♂️ 🙇♀️ 🤦 🤦♂️ 🤦♀️ 🤷 🤷♂️ 🤷♀️ 🧑⚕️ 👨⚕️ 👩⚕️ 🧑🎓 👨🎓 👩🎓 🧑🏫 👨🏫 👩🏫 🧑⚖️ 👨⚖️ 👩⚖️ 🧑🌾 👨🌾 👩🌾 🧑🍳 👨🍳 👩🍳 🧑🔧 👨🔧 👩🔧 🧑🏭 👨🏭 👩🏭 🧑💼 👨💼 👩💼 🧑🔬 👨🔬 👩🔬 🧑💻 👨💻 👩💻 🧑🎤 👨🎤 👩🎤 🧑🎨 👨🎨 👩🎨 🧑✈️ 👨✈️ 👩✈️ 🧑🚀 👨🚀 👩🚀 🧑🚒 👨🚒 👩🚒 👮 👮♂️ 👮♀️ 🕵 🕵️♂️ 🕵️♀️ 💂 💂♂️ 💂♀️ 🥷 👷 👷♂️ 👷♀️ 🫅 🤴 👸 👳 👳♂️ 👳♀️ 👲 🧕 🤵 🤵♂️ 🤵♀️ 👰 👰♂️ 👰♀️ 🤰 🫃 🫄 🤱 👩🍼 👨🍼 🧑🍼 👼 🎅 🤶 🧑🎄 🦸 🦸♂️ 🦸♀️ |
This file contains hidden or 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
root=true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
indent_style = tab | |
trim_trailing_whitespace = true | |
[{package.json,*.yml,*.yaml}] |
This file contains hidden or 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
Show hidden characters
{ | |
"$schema": "https://json.schemastore.org/tsconfig", | |
"display": "Rijk's Preferred Setup 2022", | |
"compilerOptions": { | |
"lib": ["es2022"], | |
"module": "es2022", | |
"target": "es2022", | |
"strict": true, | |
"esModuleInterop": true, | |
"skipLibCheck": true, |
This file contains hidden or 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
// This example uses a "articles" collection with an "image" field that we only want to allow JPEGs in | |
module.exports = function registerHook({ filter, action }, { exceptions, services, logger }) { | |
const { InvalidPayloadException } = exceptions; | |
const { FilesService } = services; | |
//=============================================================================================== | |
// Make sure only JPEGs can be associated to the collection | |
const imageFieldValidator = async (payload, _meta, { database, schema }) => { | |
// Note how the "database" object is passed in from the filter handler to the service, this |
This file contains hidden or 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 axios = require('axios'); | |
const cache = require('memory-cache'); | |
require('dotenv').config(); | |
const api = new axios.create({ | |
baseURL: process.env.API_URL, | |
headers: { | |
'Authorization': 'Bearer ' + process.env.API_TOKEN | |
} |
This file contains hidden or 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
function getViewPercentage(element) { | |
const viewport = { | |
top: window.pageYOffset, | |
bottom: window.pageYOffset + window.innerHeight | |
}; | |
const elementBoundingRect = element.getBoundingClientRect(); | |
const elementPos = { | |
top: elementBoundingRect.y + window.pageYOffset, | |
bottom: elementBoundingRect.y + elementBoundingRect.height + window.pageYOffset |
This file contains hidden or 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
function debounce(callback, wait) { | |
var timeout; | |
return function() { | |
var context = this; | |
var args = arguments; | |
var later = function() { | |
timeout = null; | |
} |
This file contains hidden or 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
:focus:not(:focus-visible) { outline: none } |
This file contains hidden or 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 parseDate = dateString => { | |
const match = dateString.match(/^(\d+)-(\d+)-(\d+) (\d+)\:(\d+)\:(\d+)$/) | |
match[2] = match[2] - 1; // Month must be 0...11 instead of 1...12 | |
match.shift(); | |
return new Date(...match); | |
} |
This file contains hidden or 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
/** | |
* Convert array of objects w/ timestamp to object by date | |
* @param {Array} messages Messages to convert | |
* @return {Object} Messages grouped by date YYYY-MM-DD | |
*/ | |
function groupMessagesByDate(messages = []) { | |
const groupedMessages = {}; | |
messages.forEach(message => { | |
const {timestamp: date} = message; |
NewerOlder