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
| # Modelfile generated by "ollama show" | |
| # | |
| # To build a new Modelfile based on this, replace FROM with: | |
| # FROM hf.co/bartowski/Ministral-8B-Instruct-2410-HF-GGUF-TEST:latest | |
| FROM hf.co/bartowski/Ministral-8B-Instruct-2410-HF-GGUF-TEST:latest | |
| PARAMETER stop [INST] | |
| PARAMETER stop [/INST] |
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
| # Server | |
| FROM node:22-bookworm | |
| WORKDIR /app | |
| COPY . . | |
| RUN npm install | |
| RUN npm run build | |
| EXPOSE 1337 | |
| CMD ["npm", "run", "prod"] |
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
| # Popular sort algorithms in Python | |
| def bubble_sort(arr: list[int]) -> list[int]: | |
| for _ in range(len(arr)): | |
| for j in range(len(arr) - 1): | |
| if arr[j] > arr[j + 1]: | |
| arr[j], arr[j + 1] = arr[j + 1], arr[j] | |
| return arr | |
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
| function insertLinks() { | |
| const products = document.querySelectorAll('div[data-product-endpoint]'); | |
| for (const product of products) { | |
| var productUrl = product.getAttribute('data-product-endpoint'); | |
| var link = document.createElement('a'); | |
| link.href = productUrl; | |
| link.innerHTML = product.outerHTML; | |
| link.target = '_blank'; | |
| product.parentNode.insertBefore(link, product); | |
| product.remove(); |
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 {randomBytes} from "node:crypto"; | |
| import fs from 'fs' | |
| function randomString(length = 10) { | |
| return randomBytes(length).toString('hex'); | |
| } | |
| interface wgetOpts { | |
| out_path?: string | null |
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 { remember } from "@epic-web/remember"; | |
| import mysql from "mysql2/promise"; | |
| import "./config"; | |
| import { Player } from "./types"; | |
| import { nomrmalizeNumber } from "./utils"; | |
| var conn: mysql.Connection; |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Action | Mean duration (s) | Num calls | Total time (s) | Percentage % |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Total | - | 14775
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
| [package] | |
| name = "present" | |
| version = "0.0.0" | |
| description = "A Tauri App" | |
| authors = ["you"] | |
| edition = "2021" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [build-dependencies] |
PS D:\kebo\clients\present> bunx tauri dev -- -vv
Running BeforeDevCommand (`bun run dev`)
$ vite
VITE v5.3.1 ready in 328 ms
➜ Local: http://localhost:1420/
➜ Network: use --host to expose
Info Watching D:\kebo\clients\present\src-tauri for changes...