If you don't already have one npm create vite@latest, and cd into the directory. Then:
git init
git add .
git commit -m "first-commit"
git branch -M main| /**! | |
| @license | |
| handlebars v4.0.6 | |
| Copyright (C) 2011-2016 by Yehuda Katz | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| var prefs = Services.prefs; | |
| var prefNames = prefs.getChildList("", {}); | |
| var prefSizes = {}; | |
| for (var i = 0; i < prefNames.length; i++) { | |
| var prefName = prefNames[i]; | |
| if (prefs.getPrefType(prefName) !== prefs.PREF_STRING) continue; | |
| prefSizes[prefName] = new Blob([prefs.getStringPref(prefName)]).size; |
| var EOL = {}, EOF = {}, QUOTE = 34, NEWLINE = 10, RETURN = 13; | |
| function objectConverter(columns) { | |
| return new Function("d", "return {" + columns.map(function(name, i) { | |
| return JSON.stringify(name) + ": d[" + i + '] || ""'; | |
| }).join(",") + "}"); | |
| } | |
| function customConverter(columns, f) { | |
| var object = objectConverter(columns); | |
| return function(row, i) { | |
| return f(object(row), i, columns); |
| function zoomOnMarkers(marker1, marker2) { | |
| const zeroAt = selectors.profile.getZeroAt(getState()); | |
| dispatch(actions.commitRange(marker1.start - zeroAt, marker2.start - zeroAt)); | |
| } | |
| function resetRange() { | |
| dispatch(actions.popCommittedRanges(0)); | |
| } | |
| function findRanges(suiteName) { |
| #!/bin/bash | |
| # First install whisper.cpp: | |
| # xcode-select --install # if necessary | |
| # git clone https://github.com/ggerganov/whisper.cpp.git | |
| # cd whisper.cpp && make && cd models && bash ./download-ggml-model.sh small | |
| # Next, install ffmpeg if necessary (`brew install ffmpeg`) | |
| if [[ ! -f $1 ]]; then | |
| echo "$1 is not a file." |
First open a simulator:
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.appThen open a given URL in mobile Safari:
/Applications/Xcode.app/Contents/Developer/usr/bin/simctl openurl `/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list | grep Booted | perl -ne'/\(([A-Z,0-9,-]+)\)/ && print "$1"'` "http://localhost:3000"| # Automatically restart datasette when a db file changes | |
| sh -c '$PWD/scripts/restart-datasette.sh &' && fswatch -o fixtures.db | xargs -n1 -I{} sh -c '$PWD/scripts/restart-datasette.sh &' |
| deno eval 'let nanoid=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"");console.log(nanoid())' |
| import { parse } from "https://deno.land/std/flags/mod.ts"; | |
| import { DB } from "https://deno.land/x/sqlite/mod.ts"; | |
| import { faker } from "https://esm.sh/@faker-js/[email protected]?dts"; | |
| // deno run --allow-read --allow-write fake-db.js --seed=1 --locale=fr --file=fake-data.db | |
| const args = parse(Deno.args, { | |
| default: { | |
| seed: null, | |
| locale: "en", | |
| file: "fake-data.db", |