How do the frameworks do it?
framework | generation cmd | files |
---|---|---|
nextjs | ||
vite (vanilla ) | ||
vite react | ||
Create React App |
// src/functions/readMessage.ts | |
import { SQSClient, ReceiveMessageCommand, DeleteMessageCommand } from '@aws-sdk/client-sqs'; | |
import type { APIGatewayProxyHandler } from 'aws-lambda'; | |
const sqsReaderClient = new SQSClient({}); | |
export const handler: APIGatewayProxyHandler = async () => { | |
const QUEUE_URL = process.env.QUEUE_URL; | |
if (!QUEUE_URL) { |
# 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! |
#!/bin/env bash | |
set -e | |
RED="\e[31m" | |
GREEN="\e[32m" | |
YELLOW="\e[33m" | |
ENDCOLOR="\e[0m" | |
CLUSTER_NAME=$1 |
This Gist hopes to document my efforts to try and get past the Firebase Setup Step of the Fireship.io Flutter course and to understand Flutter and Fireship
From Step 3 of CodeLab Firebase get to know Flutter
import { useState } from "react"; | |
const App = () => { | |
const [onOffStatus, setOnOffStatus] = useState(false); | |
return ( | |
<div className="App" style={{ margin: "1rem" }}> | |
<header className="App-header"> | |
<h1>Seriously, this is a React App</h1> | |
</header> | |
<main> | |
<div |
const AWS = require('aws-sdk') | |
AWS.config.update({region: 'eu-west-1'}) | |
const ec2 = new AWS.EC2() | |
const inst = ec2.describeInstances().promise() | |
async function main(){ | |
const result = await inst |
.vscode/ | |
tmp/ | |
# Packages # | |
############ | |
# it's better to unpack these files and commit the raw source | |
# git has its own built in compression methods | |
*.7z | |
*.dmg | |
*.gz |