Skip to content

Commit

Permalink
Remove katex
Browse files Browse the repository at this point in the history
  • Loading branch information
jezen committed Jan 27, 2024
1 parent b617d25 commit ebee71f
Show file tree
Hide file tree
Showing 66 changed files with 21 additions and 1,287 deletions.
1,265 changes: 0 additions & 1,265 deletions css/katex.css

This file was deleted.

38 changes: 21 additions & 17 deletions posts/2022/05/solving-a-maths-riddle-with-bad-haskell.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,22 +123,26 @@ approach? Also no. Who said Haskell can't do quick and dirty scripting work?

Running this produces 14 possible answers, and that's without enumerating all
those possible answers that would result from changing the order of operations
with brackets. After submitting my answers, my colleague rejected my approach
because I "used a program", and "that's cheating."

\$$ 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 * 9 \$$
\$$ 1 + 2 + 3 - 4 * 5 + 6 * 7 + 8 * 9 \$$
\$$ 1 + 2 - 3 * 4 + 5 * 6 + 7 + 8 * 9 \$$
\$$ 1 + 2 - 3 * 4 - 5 + 6 * 7 + 8 * 9 \$$
\$$ 1 + 2 * 3 + 4 * 5 - 6 + 7 + 8 * 9 \$$
\$$ 1 - 2 + 3 * 4 * 5 + 6 * 7 + 8 - 9 \$$
\$$ 1 - 2 + 3 * 4 * 5 - 6 + 7 * 8 - 9 \$$
\$$ 1 - 2 * 3 + 4 * 5 + 6 + 7 + 8 * 9 \$$
\$$ 1 - 2 * 3 - 4 + 5 * 6 + 7 + 8 * 9 \$$
\$$ 1 - 2 * 3 - 4 - 5 + 6 * 7 + 8 * 9 \$$
\$$ 1 * 2 * 3 + 4 + 5 + 6 + 7 + 8 * 9 \$$
\$$ 1 * 2 * 3 - 4 * 5 + 6 * 7 + 8 * 9 \$$
\$$ 1 * 2 * 3 * 4 + 5 + 6 + 7 * 8 + 9 \$$
\$$ 1 * 2 * 3 * 4 + 5 + 6 - 7 + 8 * 9 \$$
with brackets.

```
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 * 9
1 + 2 + 3 - 4 * 5 + 6 * 7 + 8 * 9
1 + 2 - 3 * 4 + 5 * 6 + 7 + 8 * 9
1 + 2 - 3 * 4 - 5 + 6 * 7 + 8 * 9
1 + 2 * 3 + 4 * 5 - 6 + 7 + 8 * 9
1 - 2 + 3 * 4 * 5 + 6 * 7 + 8 - 9
1 - 2 + 3 * 4 * 5 - 6 + 7 * 8 - 9
1 - 2 * 3 + 4 * 5 + 6 + 7 + 8 * 9
1 - 2 * 3 - 4 + 5 * 6 + 7 + 8 * 9
1 - 2 * 3 - 4 - 5 + 6 * 7 + 8 * 9
1 * 2 * 3 + 4 + 5 + 6 + 7 + 8 * 9
1 * 2 * 3 - 4 * 5 + 6 * 7 + 8 * 9
1 * 2 * 3 * 4 + 5 + 6 + 7 * 8 + 9
1 * 2 * 3 * 4 + 5 + 6 - 7 + 8 * 9
```

After submitting my answers, my colleague rejected my approach because I "used
a program", and "that's cheating."

[0]: https://hackage.haskell.org/package/hint
1 change: 0 additions & 1 deletion src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ styleSheets =
, "css/default.css"
, "css/header.css"
, "css/syntax.css"
, "css/katex.css"
]

config :: Configuration
Expand Down
Binary file removed static/fonts/KaTeX_AMS-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_AMS-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_AMS-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Bold.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Bold.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Bold.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Caligraphic-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Bold.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Bold.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Bold.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Fraktur-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Bold.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Bold.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Bold.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-BoldItalic.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-BoldItalic.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-BoldItalic.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Italic.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Italic.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Italic.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Main-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-BoldItalic.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-BoldItalic.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-BoldItalic.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-Italic.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-Italic.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Math-Italic.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Bold.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Bold.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Bold.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Italic.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Italic.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Italic.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_SansSerif-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Script-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Script-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Script-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size1-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size1-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size1-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size2-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size2-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size2-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size3-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size3-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size3-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size4-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size4-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Size4-Regular.woff2
Binary file not shown.
Binary file removed static/fonts/KaTeX_Typewriter-Regular.ttf
Binary file not shown.
Binary file removed static/fonts/KaTeX_Typewriter-Regular.woff
Binary file not shown.
Binary file removed static/fonts/KaTeX_Typewriter-Regular.woff2
Binary file not shown.
1 change: 0 additions & 1 deletion static/js/katex/auto-render.min.js

This file was deleted.

1 change: 0 additions & 1 deletion static/js/katex/katex.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions templates/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,5 @@
el.innerText = '[' + content + ']';
})
</script>
<script defer src="/static/js/katex/katex.min.js"></script>
<script defer src="/static/js/katex/auto-render.min.js" onload="renderMathInElement(document.body);"></script>
</body>
</html>

0 comments on commit ebee71f

Please sign in to comment.