Skip to content

Instantly share code, notes, and snippets.

@jebright
jebright / software_requirements_specification.md
Last active January 8, 2024 22:57
Software Requirements Specification (SRS) Template

Revision History

Purpose: The revision history section tracks changes made to the SRS document over time. It provides transparency and accountability for modifications, ensuring that stakeholders are aware of the document's evolution. Best practices involve documenting the date, author, and a brief description of each revision, facilitating clear communication and traceability.

|Date|Author|Description|:(table="column-widths:-1,132,152,500"): |||| ||||

1. Introduction

@jebright
jebright / project_charter_template.md
Created January 5, 2024 18:48
Project Charter Template (Software Development Project)

Project Charter Template

1. Project Title

The project title section serves as the official name of the project. It should be clear, concise, and reflective of the project's primary purpose. The title provides a quick reference point for all stakeholders and helps in creating a common understanding of the project's scope and objectives.

**Example:**Project Title: Enhancement of Sales CRM System

2. Project Overview

@jebright
jebright / main.dart
Created April 16, 2019 19:12
Using an Isolate in Flutter
import 'dart:async';
import 'package:flutter/material.dart';
import 'dart:isolate';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@jebright
jebright / sort-objects
Created September 23, 2018 17:19
Dart Fundamentals - List - Sort Objects
class Sale {
int employeeId;
double price;
Sale(this.employeeId, this.price);
}
class Employee {
int id;
List<Sale> sales;
Employee (this.id, this.sales);
@jebright
jebright / sort
Created September 23, 2018 16:22
Dart Fundamentals - Lists - Sort
void main() {
List<double> prices = [0.25, 1.00, 3.33, 0.75, 4.25, 5.99];
prices.sort();
log(prices); //prints 0.25, 0.75, 1, 3.33, 4.25, 5.99
List<String> alphabet = ["b", "c", "a"];
alphabet.sort();
log(alphabet); //prints a,b,c
}
@jebright
jebright / where
Created September 23, 2018 16:02
Dart Fundamentals - Lists - Filtering
void main() {
List<double> prices = [0.25, 1.00, 3.33, 0.75, 4.25, 5.99];
var overOneDollar = prices.where((p) => p > 1.00);
log(overOneDollar); //prints 3.33, 4.25, 5.99
}
void log(var lst) {
lst.forEach((n) => print(n));
}
@jebright
jebright / map
Created September 23, 2018 15:46
Dart Fundamentals - Lists - Map
class Person
{
String firstName;
String lastName;
Person(this.firstName, this.lastName);
}
void main() {
List<Person> people = new List<Person>();
@jebright
jebright / lists
Last active September 23, 2018 16:23
Dart Fundamentals - Lists - Creating
void main() {
//Fix lengthed list
var namesFixed = new List<String>(3);
namesFixed[0] = "Joe";
namesFixed[1] = "Frankie";
namesFixed[2] = "Tom";
//namesFixed[3] = "Kaboom!"; //this would be an error
log(namesFixed) ;
@jebright
jebright / foreach
Last active September 23, 2018 15:50
Dart Fundamentals - Lists - foreach
void main() {
List<String> names = ["Joe", "Frankie", "Tom"];
names.forEach((n) =>
print('Hello Mr. ${n}'));
}
@jebright
jebright / loop
Last active September 23, 2018 15:50
Dart Fundamentals - Lists -loop
void main() {
List<String> names = ["Joe", "Frankie", "Tom"];
for (var n in names) {
print('Hello ${n}');
}
}