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/ |
|---|
| 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"; |
| func keyboardWillChangeFrame(notification: NSNotification) { | |
| // Add this in to your code: | |
| // NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(keyboardWillChangeFrame), name: UIKeyboardWillChangeFrameNotification, object: nil) | |
| let keyboardFrame = notification.userInfo![UIKeyboardFrameEndUserInfoKey]!.CGRectValue | |
| // Do something with it | |
| } |
| #!/bin/bash | |
| ln -s "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool" /usr/local/bin/altool | |
| ln -s "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms" /usr/local/bin/itms #itms is needed, otherwise altool will not work correctly |