Skip to content

Instantly share code, notes, and snippets.

View aopell's full-sized avatar

Aaron Opell aopell

View GitHub Profile
@aopell
aopell / schoology-plus-survey-2019.ipynb
Created December 29, 2019 00:12
Schoology Plus Survey 2019.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aopell
aopell / Monopoly_Simulation.ipynb
Last active December 28, 2019 23:53
Simulating games of Monopoly to determine which spaces are most common to land on
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aopell
aopell / Cal1CardStats.js
Last active May 14, 2019 02:42
Cal 1 Card Statistics
function initialize() {
let script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/npm/chart.js@2.8.0/dist/Chart.min.js";
script.onload = processData;
document.head.appendChild(script);
let style = document.createElement("style");
style.textContent = `
body {
font-family: sans-serif;
}
@aopell
aopell / Schoology Update.md
Last active December 8, 2018 00:52
Important Information Regarding Schoology Plus

Important Information Regarding Schoology Plus


TL;DR: LAUSD is updating the Schoology interface on December 15, which will cause Schoology Plus to function incorrectly until the next version.


On December 15, LAUSD is updating Schoology for all users (click here for more info). This will result in significant changes to the Schoology interface (notably the navigation bar at the top of the page), breaking many of the features of Schoology Plus. This change will take place during winter break, so hopefully it will not be a major inconvenience. Nonetheless, we will be working hard to get a working version of Schoology Plus out as soon as possible after the update. Thank you for understanding.

@aopell
aopell / TimeSpan.js
Created October 25, 2018 06:03
A Javascript module with similar behavior to a TimeSpan from C#
/**
* Represents a time interval (i.e. the difference between two times or an amount of time)
*/
export default class TimeSpan {
/**
* Creates a new TimeSpan with the given values for each portion
* @param {Date|TimeSpan|number} [t=0] Date, TimeSpan, or number of milliseconds
* @param {number} [s=0] Seconds
* @param {number} [m=0] Minutes
* @param {number} [h=0] Hours
@aopell
aopell / notifications.json
Last active September 27, 2018 19:28
Schoology Plus Update
[
{
"id": 1,
"title": "Welcome to Schoology Plus!",
"message": "Thanks for installing Schoology Plus! <a href=\"https://github.com/aopell/SchoologyPlus\">Click here</a> to check out all of the interesting features! Be sure to check out the Schoology Plus menu at the top of the page next to the messages button.",
"shortMessage": "Thanks for installing Schoology Plus! Click here for more info.",
"timestamp": "2018-03-06T02:54:26.758Z"
},
{
"id": 2,
@aopell
aopell / changelog.md
Last active September 4, 2018 19:59
Schoology Plus Changelog

Changelog

Version 4.0 - September 4, 2018

Additions

  • Course aliases
    • Friendly nicknames can now be set for courses, replacing AP ENG LANG A: TERM AF - PER 1 with nicer names, like "English (P1)"
    • Course aliases are used everywhere the full course name would be used
    • Available as a new setting in Course Options
  • Material tooltips
@aopell
aopell / RotN.cs
Created April 27, 2017 18:52
C# Rot-N one-liner
static string rot(string s, int n) => return string.Concat(s.Select(x => (char)(x >= 'A' && x <= 'Z' ? (x + n > 'Z' ? x - 26 + n : x + n) : x >= 'a' && x <= 'z' ? (x + n > 'z' ? x - 26 + n : x + n) : x)));
@aopell
aopell / SettingsManager.cs
Last active May 7, 2021 13:30
C# JSON Settings Manager
using System;
using System.IO;
using System.Threading;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace DiscordBotNew.Settings
{
public class SettingsManager
@aopell
aopell / rates.c
Last active February 16, 2017 22:49
Calculated rate of reaction for Chem Lab 7 - Results and graph here: https://goo.gl/NlgIoD
#include <stdio.h>
#define RATE_CONSTANT 20 //in L/(mol*s)
#define TIME_STEP 0.001 //in s
double hso3minus = 0.01; //in mol /L
double io3minus = 0.015; //in mol/L
double time = 0.001; //in seconds
double rate = 0; //in mol/(L*s)