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 { | |
pgEnum, | |
pgTable, | |
uniqueIndex, | |
text, | |
integer, | |
boolean, | |
timestamp, | |
} from "drizzle-orm/pg-core"; |
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
You are a senior software developer, act on senior level. | |
Never repeat the user message. | |
Use Markdown formatting in your answers. Make sure to include the programming language name at the start of the Markdown code blocks. | |
Avoid wrapping the whole response in triple backticks. | |
When responding with html, always use semantic and accessible html5 output. |
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
.wrapper li { | |
} | |
.wrapper li:not(:last-child) { | |
margin-bottom: 0.5rem; | |
} |
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 { load } from "cheerio"; | |
import cuid from "cuid"; | |
import type { Wish } from "@prisma/client"; | |
import { summarizeProductTitle } from "$lib/server/services/openai/summarize_title"; | |
export type Test = Omit<Wish, "wishlistId">; | |
export type Result = { nextLink?: string; items: Test[] }; | |
export async function fetchTitle(listId: string) { | |
const result = await fetch(`https://www.amazon.com/hz/wishlist/ls/${listId}`); |
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 LOG_LEVEL = { | |
DEBUG: 'DEBUG', | |
WARNING: 'WARNING', | |
ERROR: 'ERROR' | |
} as const; | |
type ObjectValues<T> = T[keyof T]; | |
type LogLevel = ObjectValues<typeof LOG_LEVEL> | |
function Log(message: string, level: LogLevel) {} |
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 axios from "axios"; | |
import * as cheerio from "cheerio"; | |
import fs from "fs/promises"; | |
// import prettier from "prettier"; | |
void (async function () { | |
const res = await axios.get( | |
"https://google.com" | |
); | |
// const formatted = prettier.format(res.data); |
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 { patch } = require('cy2'); | |
const cypress = require('cypress'); | |
const fetch = require('node-fetch'); | |
const [BROWSER = 'electron'] = process.argv.slice(2); | |
const { | |
CI_BUILD_ID, | |
CYPRESS_API_URL, | |
CYPRESS_WEB_URL, |
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 privateViewState = { | |
initial: "checkAuthorization", | |
states: { | |
checkAuthorization: { | |
on: { | |
SUCCESS: "showPrivatePage", | |
FAILURE: "canRefreshToken", | |
}, | |
}, |
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://www.reddit.com/r/jellyfin/comments/fgmu6k/custom_css_updated_for_1050/ */ | |
/*Darken background, only works with blue radiance*/ | |
.backgroundContainer {background-color: #000000; filter: brightness(50%);} | |
/*Top menu transparency*/ | |
.skinHeader.focuscontainer-x.skinHeader-withBackground.skinHeader-blurred {background:none; background-color:rgba(0, 0, 0, 0);} | |
.skinHeader.focuscontainer-x.skinHeader-withBackground.skinHeader-blurred.noHomeButtonHeader {background:none; background-color:rgba(0, 0, 0, 0);} | |
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
overwrite: true | |
schema: github:jasonraimondi/scratchy#master:schema.graphql | |
token: ${GH_TOKEN} | |
documents: "graphql/**/*.graphql" | |
generates: | |
generated/graphql.ts: | |
plugins: | |
- typescript | |
- typescript-operations | |
- typescript-graphql-request |
NewerOlder