This is Faddah Typing into FancyGit for the first time.
- An interesting App
- Created by @Cassidoo
- Minimalist, yet full-featured
| #include "Arduino.h" | |
| const byte leds[6] = {13, 12, 11, 10, 9, 8}; // Red, Green, Blue LEDs | |
| const byte dips[3] = {4, 3, 2}; // Corresponding DIP switches | |
| void setup() { | |
| // Set up LED pins as outputs | |
| for (byte i = 0; i < 6; i++) { | |
| pinMode(leds[i], OUTPUT); | |
| // Ensure LEDs start OFF |
| cdk bootstrap aws://415740581749/us-west-2 | |
| ⏳ Bootstrapping environment aws://415740581749/us-west-2... | |
| Trusted accounts for deployment: (none) | |
| Trusted accounts for lookup: (none) | |
| Using default execution policy of 'arn:aws:iam::aws:policy/AdministratorAccess'. Pass '--cloudformation-execution-policies' to customize. | |
| CDKToolkit: creating CloudFormation changeset... | |
| CDKToolkit | 0/10 | 4:36:16 PM | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | CDKToolkit User Initiated | |
| CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | ImagePublishingRole | |
| CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::SSM::Parameter | CdkBootstrapVersion | |
| CDKToolkit | 0/10 | 4:36:19 PM | UPDATE_IN_PROGRESS | AWS::IAM::Role | LookupRole |
| #15 0.894 ▶ Astro collects anonymous usage data. | |
| #15 0.894 This information helps us improve Astro. | |
| #15 0.894 Run "astro telemetry disable" to opt-out. | |
| #15 0.894 https://astro.build/telemetry | |
| #15 0.894 | |
| #15 2.391 21:25:27 [types] Generated 406ms | |
| #15 2.400 21:25:27 [check] Getting diagnostics for Astro files in /app... | |
| #15 6.809 src/actions/index.ts:40:21 - warning ts(6133): 'input' is declared but its value is never read. | |
| #15 6.809 | |
| #15 6.809 40 orThrow: function (input: FormData): Promise<SafeResult<{ id: number; text: string; good: boolean; }, string>> { |
| import { defineAction, type SafeResult } from "astro:actions"; | |
| import { db, Idea } from "astro:db"; | |
| import { z } from "astro:content"; | |
| interface IdeaInput { | |
| id: number; | |
| text: string; | |
| good: boolean; | |
| } |
| function Logger(logString: string) { | |
| console.log('LOGGER FACTORY'); | |
| return function (constructor: Function) { | |
| console.log(logString); | |
| console.log(constructor); | |
| }; | |
| } | |
| @Logger(`LOGGING - PERSON...`) | |
| class anotherPerson { |
| # import sys | |
| # print('Number of Mintues in 20 Days:', 20 * 60 * 24) | |
| calculate_days_to_seconds = 60 * 60 * 24 | |
| name_of_units = 'seconds' | |
| def days_to_units(num_of_days): | |
| return print(f"{num_of_days} Days are {num_of_days * calculate_days_to_seconds} {name_of_units}. ") | |
| it('clears all input fields when you click the clear button', async () => { | |
| const user = userEvent.setup(); | |
| const mockClear = vi.fn(); | |
| const address = { | |
| lastPermanentStreet: '20th ave', | |
| lastPermanentCity: 'Portland', | |
| lastPermanentState: 'Oregon', | |
| lastPermanentZIP: '97205', | |
| monthsHomeless: '1 Month', | |
| timesHomeless: 'One Time', |
| client.ts:18 [vite] connecting... | |
| 15:45:35.744 client.ts:150 [vite] connected. | |
| 15:45:36.029 AppRoutes.jsx:58 Warning: A props object containing a "key" prop is being spread into JSX: | |
| let props = {key: someKey, path: ..., label: ..., element: ...}; | |
| <Route {...props} /> | |
| React keys must be passed directly to JSX without using spread: | |
| let props = {path: ..., label: ..., element: ...}; | |
| <Route key={someKey} {...props} /> | |
| at AppRoutes (http://192.168.12.238:5173/src/AppRoutes.jsx:36:23) | |
| at main |
| // create a function called generatePlayerCard that takes in three arguments: name, age, and height | |
| const generatePlayerCard = (name, age, height) => ` | |
| <div class="player-card"> | |
| <h2>${name} — ${age}</h2> | |
| <p>Their height is ${height} and they are ${age} years old. In Dog years this person would be ${ | |
| age * 7 | |
| }. That would be a tall dog!</p> | |
| <button onClick={this.closest('.player-card').remove()} class="card-delete-button" type="button">× Delete</button> | |
| <style> |