[ Launch: fundamental and harmonics ] 5183149 by tylerkahn[ Launch: fundamental and harmonics ] 5179412 by tylerkahn[ Launch: zeffii default ] 5100062 by zeffii[ Launch: zeffii default ] 5033869 by zeffii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Render LaTeX Equations with KaTeX | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically display properly formatted LaTeX equations from AI output | |
// @author You | |
// @match chat.openai.com | |
// @grant GM_addStyle | |
// @require https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.18/katex.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.18/contrib/auto-render.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"> | |
<title>Sysstat Widgets Demo</title> | |
<!-- To use the widgets in your page, include the line below |
[ Launch: fundamental and harmonics ] 5179412 by tylerkahn[ Launch: zeffii default ] 5100062 by zeffii[ Launch: zeffii default ] 5033869 by zeffii
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add1(arr, val, n) | |
if n.zero? | |
return arr.map! {|i| i == val ? i+1 : i } | |
else | |
arr.each_index do |j| | |
if arr[n < 0 ? -j - 1 : j] == val | |
arr[n < 0 ? -j - 1 : j] += 1 | |
n = n - (n < 0 ? -1 : 1) | |
return arr if n.zero? | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import sys | |
import time | |
def factorial(n): | |
return reduce(int.__mul__, range(1, n+1), 1) | |
def main(): | |
words = map(str.lower, sys.argv[1:]) | |
uniqueLetters = set(reduce(str.__add__, words)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IntervalTree import IntervalTree | |
class ScheduleItem: | |
def __init__(self, course_number, start_time, end_time): | |
self.course_number = course_number | |
self.start_time = start_time | |
self.end_time = end_time | |
def get_begin(self): | |
return minutes_from_midnight(self.start_time) | |
def get_end(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IntervalTree import IntervalTree | |
class ScheduleItem: | |
def __init__(self, course_number, start_time, end_time): | |
self.course_number = course_number | |
self.start_time = start_time | |
self.end_time = end_time | |
def get_begin(self): | |
return minutes_from_midnight(self.start_time) | |
def get_end(self): |