All applications in this monorepo are static React apps deployed to S3. There are no server-side runtimes. The deployment target is the key distinguishing factor.
apps/ |
packages/ |
|---|
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Fava balance input — mobile keyboard test</title> | |
| <style> | |
| :root { | |
| --bg: #f7f7f8; | |
| --card: #fff; |
| #!/usr/bin/env bash | |
| # git-diagnostic.sh | |
| # Based on: https://piechowski.io/post/git-commands-before-reading-code/ | |
| # Runs five git diagnostics before reading a codebase. | |
| set -euo pipefail |
| import { ReactNode, useEffect, useRef, useState } from 'react' | |
| import { createRoot, Root } from 'react-dom/client' | |
| import { ResourceResolver, InjectionStrategy, HybridInjectionStrategy } from './ResourceResolver' | |
| export type IndependentWindowConfig = { | |
| width?: number | |
| height?: number | |
| left?: number | |
| top?: number | |
| resizable?: boolean |
| # 2023-11-27 MIT LICENSE | |
| Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com. | |
| It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town. | |
| Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same! | |
| Send me your ChatGPT text adventure game on X, I'd love to try it! |
| // check version | |
| node -v || node --version | |
| // list installed versions of node (via nvm) | |
| nvm ls | |
| // install specific version of node | |
| nvm install 6.9.2 | |
| // set default version of node |
| /** | |
| * HOW TO | |
| * | |
| * 1. go to the classwork (open the classroom > classwork) | |
| * 2. open developer console ( F12 or right click > inspect element > console in top) | |
| * 3. copy and paste this code, assignments will be downloaded in 1 second intervals. A list of the documents outside Google Drive will be available at the end | |
| */ | |
| const listItemClass = '.jWCzBe' | |
| const materialClass = '.vwNuXe' |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: plus-square; | |
| /** | |
| * @akosma wrote this nice little script (in python) to try to figure out when the | |
| * Swiss population would be fully vaccinated (with both doses of | |
| * the COVID-19 vaccination). The script would print out the result to the | |
| * console. This is the JS version, which displays the result in a widget. | |
| * |
| .career-list { | |
| background-color: transparent; | |
| } | |
| .career-list .career-list__item { | |
| color: #333; | |
| } | |
| .career-list__item { | |
| padding: 12px; |
| // the strings without format can be included here | |
| "foo" = "bar"; |