| LaTeX | (render) | typst | (render) |
|---|---|---|---|
$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ |
sum_(i=0)^n i^2 = ((n^2+n)(2n+1))/6 |
||
\lim_{\Delta x \to 0} \frac{\sin (x + \Delta x) - \sin x}{\Delta x} = \frac{d}{dx} \sin x = \cos x |
lim_(Delta x->0) (sin (x + Delta x) - sin(x))/(Delta x) = d/(d x) sin x = cos x |
||
\mathbf{T}(\theta) = \begin{bmatrix}\cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix} |
(won't render in this form in GitHub Markdown math in a table) | #let bf(x) = $upright(bold(#x)) |
This file contains hidden or 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
| #set page(width: 20cm, height:auto) | |
| #set heading(numbering: "1.") | |
| = Fun with typst | |
| The typst program is pretty neat! | |
| - Extremely fast incremental recompile | |
| - Easier syntax | |
| - Markup includes a well-designed scripting language |
This file contains hidden or 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> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| body { | |
| font-family: 'Segoe UI', 'Lucida Grande' | |
| } | |
| table { | |
| border: 1px solid black; | |
| border-collapse: collapse; |
This file contains hidden or 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
| Food side-effects | |
| Jerky Bonus Cul Arts Hunting | |
| ----- | |
| Rabbit +5 Knifesmanship 1 1 | |
| Deer +5 Archery 5 5 (18 Buck) | |
| Bear +5 Hammership 30 50 | |
| Moose +5 Swordsmanship 45 65 | |
| Boar +5 Mining 35 43 | |
| Pigeon +5 Axemanship 1 1 |
I was looking for a motor website and noticed this suspicious looking JavaScript code:
https://web.archive.org/web/20200705182323/http://www.turnigy.com:80/about-us/
It is apparently a 3-level deep obfuscation of some website redirection that failed, because Wordpress faithfully encoded it rather than inserting directly.
- hack1.js is the code that appears visually in the webpage.
- hack2.js is the content of variable
VWGMMLIBLQthat getseval()din hack1.js - hack3.js is the content of variable
BPCDLVJEMJthat getseval()din hack2.js - hack4.js is the content of variable
decthat gets executed via(new Function(dec))();in hack3.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" /> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.js"></script> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/contrib/auto-render.min.js"></script> | |
| <script type="text/javascript"> | |
| document.addEventListener("DOMContentLoaded", function(event) { |
NewerOlder