Skip to content

Instantly share code, notes, and snippets.

Avatar

Aidan Fitzgerald aidan-fitz

View GitHub Profile
@aidan-fitz
aidan-fitz / contract.md
Created Mar 14, 2020
COVID-19 special housing terms for spring 2020
View contract.md

I agree to comply with all terms and conditions of my Academic Year Housing Contract 2019-2020 (“Housing Contract”), I acknowledge that my Housing Contract is modified as follows:

The occupancy period of my Academic Year Housing Contract 2019-2020 (“Housing Contract”) was previously modified to end on March 29, 2020. I have requested that Cornell extend the occupancy period of my Housing Contract through May 17, 2020 at 2:00 pm.

The University may reassign me to a different room or building at any time and for any reason, including for purposes of quarantine or isolation of myself or others.

The University has the right to close the residence halls at any time during the occupancy period. If this occurs, I will comply with the University’s instructions and regulations for vacating my room.

I will notify the Housing Office if I vacate my room prior to May 17, 2020. If I do so, I will not be entitled to any rebates or credits of housing or dining fees.

@aidan-fitz
aidan-fitz / Models.scala
Last active Aug 11, 2019
Data model for the Kindred web app (Violet Hacks 2019)
View Models.scala
trait Model
trait User extends Model {
// Personally identifiable information
def name: String
def pronouns: String
def email: String
// Interests and skills
def causes: Set[Cause]
def skills: Set[Skill]
View resume.json
{
"basics": {
"name": "Evelyn Fitzgerald",
"email": "acf67@cornell.edu",
"phone": "(347) xxx-xxxx",
"website": "http://aidan-fitz.com"
},
"work": [
{
"company": "Asana",
@aidan-fitz
aidan-fitz / output.log
Created Apr 9, 2019
Citation bot output - April 9, 2019 at 16:41:00 UTC
View output.log
Activated by Qzekrom. The bot will automatically make edit(s) if it can.
> Expanding 'Criticism of Islam'; will commit edits.
[16:41:00] Processing page 'Criticism of Islam' — edit—history
> Remedial work to prepare citations
~ Converted ISBN10 to ISBN13
~ Converted ISBN10 to ISBN13
~ Converted ISBN10 to ISBN13
@aidan-fitz
aidan-fitz / BitSort.java
Created Oct 1, 2017
Sort a bit vector in O(n) time
View BitSort.java
import java.util.BitSet;
public class BitSort {
public BitSet sort(BitSet bits) {
// Count the number of ones: O(n)
int numOnes = bits.cardinality();
// Overwrite the array with the ones first followed by the zeros
bits.set(0, numOnes);
@aidan-fitz
aidan-fitz / Gender.java
Last active Jun 8, 2017
Mockup of an inclusive version of Attract
View Gender.java
enum Gender {MALE, FEMALE, GENDERLESS}
@aidan-fitz
aidan-fitz / alt_subtract.c
Last active Feb 5, 2017
An alternative method for subtracting two 32-bit signed integers in a two's complement system.
View alt_subtract.c
/**
* Performs the subtraction p - q.
* This is an alternative method to simply computing p + (-q).
* TODO I'll prove why it works later.
*/
int alt_subtract(int p, int q) {
// First, take the ones' complement of the minuend
int p1 = ~p;
// Next, add the subtrahend
int sum = p1 + q;
@aidan-fitz
aidan-fitz / snippet.py
Created Jan 7, 2017
this is a cool snippet
View snippet.py
L = [x*x*x for x in range(10)]
for i in L:
print L
@aidan-fitz
aidan-fitz / copyright-101.md
Last active Nov 7, 2016
Cornell Splash! - Intro to Copyright
View copyright-101.md
You can’t perform that action at this time.