Skip to content

Instantly share code, notes, and snippets.

View cmontella's full-sized avatar
🤖

Corey Montella cmontella

🤖
View GitHub Profile
# CSE298 - Foundations of Robotics - Summer 2023
## Instructor
- [Prof. Corey Montella](https://engineering.lehigh.edu/cse/faculty/5300)
- E-mail Address: [cim310@lehigh.edu](mailto:cim310@lehigh.edu)
- Gitlab: https://gitlab.com/cmontella
- Office Hours: By appointment
## Course Learning Objectives
# CSE 109 - Systems Software - Summer 2023
## Instructors
**[Prof. Corey Montella](https://engineering.lehigh.edu/cse/faculty/5300)**
- E-mail Address: [cim310@lehigh.edu](mailto:cim310@lehigh.edu)
- Office: PA 254D
- Gitlab: http://gitlab.cse.lehigh.edu/cmontella
- Office Hours: By appointment
# CSE 109 - Systems Software - Summer 2023
## Instructors
**[Prof. Corey Montella](https://engineering.lehigh.edu/cse/faculty/5300)**
- E-mail Address: [cim310@lehigh.edu](mailto:cim310@lehigh.edu)
- Office: PA 254D
- Gitlab: http://gitlab.cse.lehigh.edu/cmontella
- Office Hours: By appointment
use actix::prelude::*;
use actix_web::{middleware, web, App, Error, HttpRequest, HttpResponse, HttpServer};
use actix_web_actors::ws;
use std::time::Duration;
use std::time;
use std::thread::{self, JoinHandle};
#[macro_use]
extern crate crossbeam_channel;
use crossbeam_channel::{Sender, Receiver};
# Bricks
## The Game
game setup
#system/timer = [resolution: 15 tick: 0 hours: 0 minutes: 0 seconds: 0]
#app/main = [root: "drawing" direction: _ contains: [#game]]
game area
#game = [|type class contains parameters|
# Food Truck App
```css
{for a good time, leave this here}
```
## Page Template
### Starting Page
Set the starting target window to the home page.
# Example 5 - Battle School
## What is this?
This example demonstrates saving state across different pages, and advanced sorting using the `range[]` function. On the "control" page, you can set a schedule of army matchups for the day. Click on an army and then click on the slot you want to place that army. This matchup is saved, and displayed on the "broadcast" page.
## Page Layout
### Containers
# New New York Voting Registration
## What is this?
This example demonstrates how to capture input from forms and create and explore records from that. It should also provide a look at some of the particular complications and pitfalls in dealing with forms. In the future it'll most likely be useful to address a more complicated version of forms, but for now this is a good starting point to develop an intuition of the concepts. If anything seems oversimplified or susceptible to edge cases and user error, it's most likely from the effort to avoid bugs and overly complicated layouts.
## Page Layout
### Containers
# Example 3 - Jurassic Park Terminal
## What is this?
This app demonstrates the use of a custom form component in a basic log in application. The app contains three views: a login form, a registration form, and a user profile form that displays the information entered during registration. These forms are built using a custom form component, which is defined at the end of the program. The form component allows for the concise definition of forms by defining common behavior like form submission and resetting.
## Application Set Up
The app contains the current page, as well as the current user. Initially, though, there is no user, so we just need to specify the current page.
@cmontella
cmontella / sandlot.eve
Last active March 3, 2017 19:42
Sandlot Example App
# Example 2 - The Sandlot
## What is this?
This app demonstrates how to create a reusable component and how to inject it into the browser. This app displays a batting order for a baseball team using a `#player-card` component. This component displays information relating to each player on a baseball team -- picture, name, position, and handedness. A `#player-card` can also be configured with additional functionality using optional tags. The app also shows some of the ways `sort` can be used, and how to choose specific records out of a list of records.
## Page Layout
### Containers