- Create a new Email Worker with this script (modify to your needs)
- Enable catch-all in CloudFlare Email Routing and send all catch-all mail to this worker
- Make sure the forwarded emails are in fact verified to receive email forwarding
- You should still keep the "plain" custom mapping without alias enabled; like
dad => [email protected]
- ??
- Profit
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
<a href="#"> | |
COOL TEXT | |
<span class="outline">COOL TEXT</span> | |
</a> | |
<style type="text/css"> | |
body { | |
background: #000; |
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
/* | |
1. Go to a liveScore.com match page showing a FC København game | |
2. Run this script in the browser console | |
3. Enjoy FCKKøbenhavnLIVE tweets, liveScore updates and FCK fan banter live chatting | |
4. Good game. | |
Disclaimer: Use at own discretion. | |
*/ | |
(()=>{ | |
const renderGrid = ()=>{ |
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
/* | |
Sådan gemmer du dine ønskelister fra AddWish.com til CSV | |
-------------------------------------------------------- | |
1) Log ind på din ønskeliste på www.addwish.com | |
2) Start console i din browser (fx. tryk [ctrl+shift+i] i Chrome) | |
3) Copy/paste dette script ind i console og tryk [enter] for at køre det | |
4) Kopier CSV-teksten som vises i din browser prompt ind i Google sheets og tryk "Split text to columns" og vælg "Semicolon" | |
5) Din ønskeliste er nu gemt i Sheets |
Previously I've been using GifCam, but it doesn't play well with my retina display, so I had to come up with something. There's strong options for Mac but no good free options for Windows.
I can use the native Windows snipping tool to record my screen, but I'm unable to save the recording as a gif, resulting in pretty big MP4 files. I don't want that. So I created this little script that can convert the recorded MP4 file to GIF for a great reduction in file size.
- Install ffmpeg from www.ffmpeg.org
- Update the path to ffmpeg in the bat file
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
"use client"; | |
import { useForm } from "react-hook-form"; | |
import { useEffect } from "react"; | |
const AdvancedForm = () => { | |
const { register, handleSubmit, setValue, watch } = useForm(); | |
const watchedValues = watch(); | |
// Function to update the query string | |
const updateQueryString = () => { |
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
import { useState, useEffect } from "react"; | |
export const useAudioContext = () => { | |
const [audioContext, setAudioContext] = useState(null); | |
const [currentSourceNode, setCurrentSourceNode] = useState(null); | |
const [gainNode, setGainNode] = useState(null); | |
useEffect(() => { | |
const context = new AudioContext(); | |
setAudioContext(context); |
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
/* | |
HOW TO USE: | |
import React from "react"; | |
import useScrollableMask from "./useScrollableMask"; | |
const Example = () => { | |
const { scrollDiv, scrollDivStyles } = useScrollableMask(); | |
return ( |
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 parseCSVLine = (line: string): string[] => { | |
const parts = line.split(","); | |
const result: string[] = []; | |
parts.reduce( | |
(accumulator, currentPart) => { | |
if (!accumulator.insideQuotes) { | |
if (currentPart.startsWith('"') && currentPart.endsWith('"')) { | |
// Handle the case when the value is enclosed in double quotes | |
result.push(currentPart.slice(1, -1)); |