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
| #!/usr/bin/env fish | |
| set index 0 | |
| cat pages.txt | while read --line url | |
| set name (echo "$url" | string replace "https://learnmeabitcoin.com/assets/pdf/" "" | string replace --all "/" "_" | string trim --chars "_") | |
| curl "$url" > "$index"_"$name.pdf" | |
| set index (math "$index + 1") | |
| end |
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 { type RecordService, type RecordModel, type RecordSubscribeOptions } from "pocketbase" | |
| import { createSubscriber } from "svelte/reactivity" | |
| export class Collection<M extends RecordModel = RecordModel> { | |
| #recordService: RecordService<M> | |
| #records = $state<Record<string, M>>({}) | |
| #subscribe: () => void | |
| constructor(recordService: RecordService<M>, options?: RecordSubscribeOptions) { | |
| this.#recordService = recordService |
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 'core-js/es6/array'; | |
| import 'core-js/es6/object'; | |
| import 'core-js/es6/string'; | |
| // Global options | |
| import defaults from './_config'; | |
| // general helper functions | |
| import Helper from './_helpers'; | |
| // general pricing and currency functions | |
| import Pricing from './_pricing'; | |
| // throttle and debounce manager |
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 type { RequestHandler } from "@sveltejs/kit" | |
| import { browser } from "$app/env" | |
| export type Method = "get" | "put" | "post" | "patch" | "delete" | |
| export type UnpackHandler<Handler> = Handler extends (RequestHandler<infer Locals, infer Input, infer Output>) ? { locals: Locals, input: Input, output: Output }: unknown | |
| export interface RequestConfig { | |
| method?: Method | |
| body?: any |
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
| <script context="module" lang="ts"> | |
| import type { Load, LoadInput, LoadOutput } from "@sveltejs/kit" | |
| export interface Route { | |
| id: any | |
| load: Load | |
| } | |
| export function rewriteLoad(routes: Route[]): Load { | |
| return async input => { |
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
| <script> | |
| import UrlPattern from 'url-pattern' | |
| import location, { navigate, noMatch } from './location.js' | |
| export let path | |
| export let component = undefined | |
| export let redirect = undefined | |
| $: pattern = new UrlPattern(path) | |
| $: router = { |
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
| // for the headings in sidebars | |
| $braket-border-opposites: ( | |
| left: right, | |
| right: left, | |
| top: bottom, | |
| bottom: top | |
| ); | |
| @mixin braket-border-child($direction, $border-width, $length) { | |
| content: ""; |
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
| <div class="button">Title</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
| statements |
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
| name date gender period grams ethnicity | |
| 0 1 50 25 10 15 | |
| conrad 2 girl pm 3175.15 greek | |
| nic 2 girl am 3373.59 nic | |
| alisha 2 girl pm 3685.44 white | |
| brad 3 boy am 4592.62 greek | |
| aj 4 girl am 2409.71 asian |
NewerOlder