Skip to content

Instantly share code, notes, and snippets.

View ktortolini's full-sized avatar
Studying/Learning  

Kevin Tortolini ktortolini

Studying/Learning  
View GitHub Profile
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/*
@ktortolini
ktortolini / example-tailwind-selectors.html
Last active December 23, 2024 19:49
🌐 Tailwind CSS Arbitrary Variants
<!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>
@ktortolini
ktortolini / example-jsr-packages.ts
Last active December 23, 2024 17:06
📘 Deno JSR Packages
import { toKebabCase } from "jsr:@std/text@^1.0.9";
const originalString = "My example string with a space.";
const newString = toKebabCase(originalString);
console.log(newString);
@ktortolini
ktortolini / example-iconify-web-components.tsx
Last active December 19, 2024 01:19
💙 Fresh Project Iconify Components
const example = () => {
return (
<div>
{/* @ts-ignore */}
<iconify-icon
icon="tabler:copy"
width="24"
height="24
></iconify-icon>
</div>
@ktortolini
ktortolini / example-regexp-details.ts
Last active December 23, 2024 19:50
🔠 Regular Expression Details
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;
@ktortolini
ktortolini / example-svg-path-details.xml
Last active December 23, 2024 19:51
🟦 SVG Path Details
<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>
@ktortolini
ktortolini / example-tabler-icons.tsx
Last active December 18, 2024 04:14
🧊 Fresh Project Tabler Icons
import IconCopy from '@tabler/icons-tsx/copy.tsx';
const example = () => {
return (
<div>
<IconCopy />
</div>
);
};