This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum CourseType {intro, advanced} | |
class ICSCourse { | |
final int courseNum; | |
List<ICSCourse> prerequisities = []; | |
ICSCourse(this.courseNum); | |
getType() { | |
return (courseNum <= 200) ? CourseType.intro : CourseType.advanced; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum CourseType {intro, advanced} | |
class ICSCourse { | |
final int courseNum; | |
List<ICSCourse> prerequisities = []; | |
ICSCourse(this.courseNum); | |
getType() { | |
return (courseNum <= 200) ? CourseType.intro : CourseType.advanced; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BirthdayCake { | |
final String ingredient; | |
final String frosting; | |
String inscription = ''; | |
BirthdayCake({required this.ingredient, required this.frosting}); | |
@override | |
String toString() { | |
return '<BirthdayCake ($ingredient, $frosting, $inscription, ${price()})>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Philip Johnson", | |
"label": "Professor", | |
"picture": "https://github.com/philipmjohnson.png", | |
"email": "johnson@hawaii.edu", | |
"phone": "808-956-3489", | |
"website": "https://philipmjohnson.github.io", | |
"summary": "I am a Professor of Information and Computer Sciences at the University of Hawaii at Manoa. I expect to retire in 2025.", | |
"location": { "address": "", "postalCode": "96822", "city": "Honolulu", "countryCode": "USA", "region": "Hawaii" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create the schema for Stuff | |
* See: https://github.com/aldeed/meteor-autoform#common-questions | |
* See: https://github.com/aldeed/meteor-autoform#affieldinput | |
*/ | |
Attractions.attachSchema(new SimpleSchema({ | |
startdate: { | |
label: "Date", | |
type: Date, | |
optional: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Stuff, StuffSchema } from '/imports/api/stuff/stuff'; | |
import { Grid, Segment, Header } from 'semantic-ui-react'; | |
import AutoForm from 'uniforms-semantic/AutoForm'; | |
import TextField from 'uniforms-semantic/TextField'; | |
import SelectField from 'uniforms-semantic/SelectField'; | |
import SubmitField from 'uniforms-semantic/SubmitField'; | |
import ErrorsField from 'uniforms-semantic/ErrorsField'; | |
import { Bert } from 'meteor/themeteorchef:bert'; | |
import { Meteor } from 'meteor/meteor'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Stuff, StuffSchema } from '/imports/api/stuff/stuff'; | |
import { Grid } from 'semantic-ui-react'; | |
import AutoForm from 'uniforms-semantic/AutoForm'; | |
import TextField from 'uniforms-semantic/TextField'; | |
import SubmitField from 'uniforms-semantic/SubmitField'; | |
import ErrorsField from 'uniforms-semantic/ErrorsField'; | |
import { Bert } from 'meteor/themeteorchef:bert'; | |
/** Renders the Page for adding a Stuff document. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ meteor npm run test | |
> radgrad@ pretest /Users/philipjohnson/github/radgrad/radgrad/app | |
> npm run lint | |
> radgrad@ lint /Users/philipjohnson/github/radgrad/radgrad/app | |
> eslint --quiet ./imports | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>tasklist</title> | |
</head> | |
<body> | |
{{> tasks}} | |
</body> | |
<template name="tasks"> | |
{{> loginButtons }} | |
<h1>Add Task</h1> |
NewerOlder