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
import type { SetupFunction } from '@nuxtjs/composition-api' | |
import type { CreateElement, VNode } from 'vue' | |
function useModifiedSlot( | |
slotName: string, | |
dataToAppend: Required<Parameters<CreateElement>>['1'], | |
) { | |
const slot = getCurrentInstance()?.slots[slotName] | |
const slotVnode = Array.isArray(slot) && slot[0].data |
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
@tailwind base; | |
@mixin tw-base-layer-wrap { | |
@layer base { | |
@content; | |
} | |
@content; | |
} |
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
// connect the left joycon to any computer via bluetooth and paste the following script in the console of a webpage | |
(() => { | |
const VENDOR_ID = '057e'; | |
const DEVICE_ID = '2006'; | |
const [LEFT_BUTTON, RIGHT_BUTTON] = [0, 3]; | |
const [LEFT_ARROW_KEY_CODE, RIGHT_ARROW_KEY_CODE] = [37, 39]; | |
let gamepadIndex, intervalID, isPressing = false; | |
function pressKey(keyCode) { |
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
/** | |
* Debounces (postpones) executing `func` until _at least_ `msWait` seconds have elapsed | |
* since the last time the same function had again been requested to execute. | |
* | |
* Example: | |
* const repaintElem = setRandomBgColorToElem(elem); | |
* document.addEventListener('resize', debounce(repaintElem, 10, true)); | |
* | |
* @param {function} func The function to be debounced | |
* @param {number} [msWait=50] The minimum amount of time in miliseconds to wait before executing `func` |
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
// CONSTANTS | |
// ===================== | |
const a = 210; // length of a possible cut | |
const b = 156; // length of another possible cut | |
const c = 138; // length of another possible cut | |
const K = 590; // length of the wood plank to be cut in pieces of the above lengths | |
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
/* ------ Input Data ---------------------------*/ | |
let people = [ | |
{ | |
"age": 34, | |
"name": "Malone Warren" | |
}, | |
{ | |
"age": 50, |
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
{"version":1,"resource":"file:///mnt/Kinder/work/Codica/code/gentwo.com/composables/useClassesInBody.ts","entries":[{"id":"r6zN.ts","timestamp":1652182261912},{"id":"Uarg.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1654880390400},{"id":"dvfh.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1654880536159},{"id":"ntrZ.ts","timestamp":1654881076174},{"id":"YDXZ.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1654881334709},{"id":"hY0c.ts","source":"Fix all ESLint auto-fixable problems","timestamp":1654881400556},{"id":"GigS.ts","timestamp":1654881678684},{"id":"Keo4.ts","timestamp":1654881728721},{"id":"mQ0I.ts","timestamp":1654881885787}]} |
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
[user] | |
email = [email protected] | |
name = Firstname Lastname | |
[merge] | |
# delete if you don't use meld | |
tool = meld # sudo apt-get install meld | |
conflictStyle = diff3 | |
[init] |