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
| cron() { | |
| interval=$1 | |
| shift | |
| unit=$1 | |
| shift | |
| case "$unit" in | |
| second|seconds) sleep_time=$interval ;; | |
| minute|minutes) sleep_time=$((interval * 60)) ;; | |
| *) echo "Unsupported unit: $unit"; return 1 ;; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { z } from "zod"; | |
| const Post = z.object({ | |
| id: z.string(), | |
| slug: z.string(), | |
| content: z.string(), | |
| title: z.string() | |
| }) | |
| export function createAPIClient() { |
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
| // Remember to install mini-svg-data-uri | |
| // Follow me on twitter for memes @jordienr | |
| import { type Config } from "tailwindcss"; | |
| const { | |
| default: flattenColorPalette, | |
| } = require("tailwindcss/lib/util/flattenColorPalette"); | |
| const svgToDataUri = require("mini-svg-data-uri"); | |
| export default { |
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
| /* | |
| * Stripe WebGl Gradient Animation | |
| * All Credits to Stripe.com | |
| * ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
| * commented out for now. | |
| * https://kevinhufnagl.com | |
| */ |
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
| [build] | |
| publish = "mvp/dist" | |
| command = "yarn build && yarn linkdeps" | |
| [context.production] | |
| environment = { NODE_VERSION = "14.17.0", NETLIFY_USE_YARN = "true" } | |
| [[redirects]] | |
| from = "/*" | |
| to = "/index.html" | |
| status = 200 |
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
| // Rose | |
| $rose-50: #fff1f2; | |
| $rose-100: #ffe4e6; | |
| $rose-200: #fecdd3; | |
| $rose-300: #fda4af; | |
| $rose-400: #fb7185; | |
| $rose-500: #f43f5e; | |
| $rose-600: #e11d48; | |
| $rose-700: #be123c; |
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
| $gray-900: #1A202C; | |
| $gray-800: #2D3748; | |
| $gray-700: #4A5568; | |
| $gray-600: #718096; | |
| $gray-500: #A0AEC0; | |
| $gray-400: #CBD5E0; | |
| $gray-300: #E2E8F0; | |
| $gray-200: #EDF2F7; | |
| $gray-100: #F7FAFC; |