theme = "catppuccin_mocha"
[editor]
true-color = 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
{ | |
"breadcrumbs.enabled": false, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"diffEditor.maxComputationTime": 0, | |
"editor.bracketPairColorization.enabled": false, | |
"editor.cursorBlinking": "phase", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.fontFamily": "JetBrainsMono Nerd Font", |
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 sticker = (set: string[], canvas: HTMLElement | null) => { | |
let z = 0; | |
if (canvas) { | |
canvas.onclick = (event: MouseEvent) => { | |
let randomImage = set[Math.floor(Math.random() * set.length)]; | |
let randomRotation = Math.random() * (45 - -45) + -45 | |
const element = document.createElement('img'); |
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 const drag = (elements: NodeListOf<HTMLElement>) => { | |
let z = 0; | |
if (elements) { | |
for (const element of elements) { | |
let [adjustedX, adjustedY, currentX, currentY] = [0, 0, 0, 0]; | |
let moved = false; | |
const dragMouseUp = (event: MouseEvent) => { | |
document.onmousemove = null; |
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
:root { | |
font-size: max(calc(16vmin * 100 / 1440), 16px); | |
} | |
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) { | |
all: unset; | |
display: revert; | |
outline: revert; | |
} |
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
# https://github.com/nvm-sh/nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
# https://github.com/zsh-users/zsh-autosuggestions | |
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# https://starship.rs/ | |
eval "$(starship init zsh)" |
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 { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; | |
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js"; | |
import { | |
AnimationMixer, | |
Clock, | |
Color, | |
DirectionalLight, | |
HemisphereLight, | |
PerspectiveCamera, |
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 scrollVideo = (media, threshold = 1) => { | |
const video = document.querySelector(media); | |
const target = video.parentNode; | |
const scrollDistance = target.clientHeight - window.innerHeight; | |
let observer = new IntersectionObserver( | |
(entries, observer) => { | |
entries.forEach((entry) => { | |
if (entry.isIntersecting) { |
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
// Transform a ISO 8601 format date string to a given locale ―――――――――――――――― // | |
const date = (input, locale = "de-DE", options = { dateStyle: "long" }) => { | |
const date = Date.parse(input); | |
return new Intl.DateTimeFormat(locale, options).format(date); | |
}; | |
// Mount, toggle and store dark mode theme on client ―――――――――――――――――――――――― // | |
/** | |
* @param {object} night Configure night mode controls and targets. | |
* @param {string} night.mount Mount theme class to single given DOM element. |
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
<?php | |
$response = new \stdClass(); | |
$response->state = [ | |
'code' => 200, | |
'type' => 'success', // Can be used for CSS indicators classes such as `.is-[type]` | |
'message' => 'Your data has ben successfully submitted.' | |
]; |
NewerOlder