Skip to content

Instantly share code, notes, and snippets.

🔫
I am not throwing away my shot!

Aidan Fitzgerald aidan-fitz

🔫
I am not throwing away my shot!
Block or report user

Report or block aidan-fitz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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
@aidan-fitz
aidan-fitz / heathens.js
Last active Apr 3, 2017
"Heathens" by Twenty One Pilots in JavaScript
View heathens.js
/**
* Adapted from "Heathens" by Twenty One Pilots
* (C) Warner/Chappell Music, Inc.
*
* All original modifications are (C) Aidan Fitzgerald and licensed under the
* Creative Commons Attribution 4.0 International License.
* https://creativecommons.org/licenses/by/4.0
*/
function you() {
friends.forEach(function(friend) {
You can’t perform that action at this time.