Skip to content

Instantly share code, notes, and snippets.

View kellylougheed's full-sized avatar

Kelly Lougheed kellylougheed

View GitHub Profile
@kellylougheed
kellylougheed / LinkedList.swift
Created January 24, 2021 18:47
Linked list implementation in Swift
class Node {
var value: String
var next: Node?
init(value: String, next: Node? = nil) {
self.value = value
self.next = next
}
}
//
// ContentView.swift
// Snowglobe
//
// Created by Kelly Lougheed on 12/14/20.
//
import SwiftUI
struct ContentView: View {
@kellylougheed
kellylougheed / xblock.py
Last active November 5, 2019 23:34
Process CSV files of course requests to produce rosters
import csv, operator, random
# Set enrollment limits per day
# Course-specific limits should be set inside the functions make_roster_tues and make_roster_thurs
TUES_LIMIT = 13
THURS_LIMIT = 12
'''
When generating rosters, manually double-check:
* Enrollment for PAWS, Math Cafe, Digital Literacy
var hue;
var rainbow = true;
var rate = 1;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
hue = 0;
}
var hue;
var rainbow = true;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
hue = 0;
}
function draw() {
var hue;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
hue = 0;
}
function draw() {
// background(220);
var hue;
function setup() {
createCanvas(400, 400);
hue = 0;
}
function draw() {
// background(220);
}
var hue;
function setup() {
createCanvas(400, 400);
hue = 0;
}
function draw() {
// background(220);
}
function setup() {
createCanvas(400, 400);
}
function draw() {
// background(220);
}
function setup() {
createCanvas(400, 400);
}
function draw() {
// background(220);
}
function mouseDragged() {
noStroke();