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
FROM denoland/deno | |
EXPOSE 8000 | |
WORKDIR /app | |
ADD . /app | |
# Install CA certificates for SSL connections | |
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* |
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
<!DOCTYPE html> | |
<html> | |
<body class="[&>#a]:text-sm [&>#b]:text-lg"> | |
<p id="a">My example body text.</p> | |
<p id="b">Another example body text.</p> | |
</body> | |
</html> |
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 { toKebabCase } from "jsr:@std/text@^1.0.9"; | |
const originalString = "My example string with a space."; | |
const newString = toKebabCase(originalString); | |
console.log(newString); |
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 example = () => { | |
return ( | |
<div> | |
{/* @ts-ignore */} | |
<iconify-icon | |
icon="tabler:copy" | |
width="24" | |
height="24 | |
></iconify-icon> | |
</div> |
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 cpmString: string = 'CPM 450 | Correct 45 | Incorrect 23'; | |
/* this is the regular expression to search for the cpm */ | |
const regularExpression: RegExp = new RegExp('[^0-9]*([0-9]+)', ''); | |
/* finds a match in the cpm string */ | |
const cpmMatch: string | number = cpmString.match(regularExpression) | |
? cpmString.match(regularExpression)![1] | |
: 0; |
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
<svg width="500" height="500" viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<path | |
d="M140 20C73 20 20 74 20 140c0 135 136 170 228 303 88-132 229-173 229-303 0-66-54-120-120-120-48 0-90 28-109 69-19-41-60-69-108-69z" | |
stroke="#fff" | |
/> | |
</svg> |
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 IconCopy from '@tabler/icons-tsx/copy.tsx'; | |
const example = () => { | |
return ( | |
<div> | |
<IconCopy /> | |
</div> | |
); | |
}; |