Skip to content

Instantly share code, notes, and snippets.

View JJGO's full-sized avatar

Jose Javier JJGO

View GitHub Profile
@JJGO
JJGO / aoc.css
Created December 10, 2023 09:30
body {
font-size: 1em;
padding-bottom: 500px;
}
main {
margin-left: auto;
margin-right: auto;
width: 700px;
}
code {
@media (prefers-color-scheme: light) {
div#notebook {
font-family: sans-serif;
font-size: 14pt;
line-height: 170%;
color: #303030;
-webkit-font-smoothing: antialiased !important;
padding-top: 25px !important;
}
body,
@media (prefers-color-scheme: light) {
div#notebook {
font-family: sans-serif;
font-size: 14pt;
line-height: 170%;
color: #303030;
-webkit-font-smoothing: antialiased !important;
padding-top: 25px !important;
}
body,
@media (prefers-color-scheme: light) {
div#notebook {
font-family: sans-serif;
font-size: 14pt;
line-height: 170%;
color: #303030;
-webkit-font-smoothing: antialiased !important;
padding-top: 25px !important;
}
body,
["tench, Tinca tinca",
"goldfish, Carassius auratus",
"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"tiger shark, Galeocerdo cuvieri",
"hammerhead, hammerhead shark",
"electric ray, crampfish, numbfish, torpedo",
"stingray",
"cock",
"hen",
"ostrich, Struthio camelus",
def check_libjpeg_turbo():
from PIL import features
return features.check_feature("libjpeg_turbo")
def check_pillow_simd():
import PIL
return ".post" in PIL.__version__
@JJGO
JJGO / dstest
Last active July 31, 2024 11:48
Utility for running MIT 6.824 lab test in parallel and saving failed logs
#!/usr/bin/env python
import itertools
import math
import signal
import subprocess
import tempfile
import shutil
import time
import os
@JJGO
JJGO / dslogs
Last active May 22, 2024 06:40
Script for pretty printing logs of MIT 6.824 labs
#!/usr/bin/env python
import sys
import shutil
from typing import Optional, List, Tuple, Dict
import typer
from rich import print
from rich.columns import Columns
from rich.console import Console
from rich.traceback import install
@JJGO
JJGO / getfit.py
Created February 5, 2019 20:22
Getfit automation
from selenium.webdriver import Firefox
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options
import time
def getfit_submit(user, pwd, minutes, activity, intensity):
URL = 'https://getfit.mit.edu/user/login?current=team-fitness/home'
options = Options()
options.headless = True

Under Construction

Things to add to other sections

Course Overview

Virtual Machines