Skip to content

Commit

Permalink
Deployed 48c43ed with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Mar 19, 2024
0 parents commit ad53f9b
Show file tree
Hide file tree
Showing 108 changed files with 55,853 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
686 changes: 686 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1,147 changes: 1,147 additions & 0 deletions Computer Science/Algorithm/01 Algorithm Analysis/index.html

Large diffs are not rendered by default.

1,088 changes: 1,088 additions & 0 deletions Computer Science/Algorithm/02 Linear List/index.html

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions Computer Science/Algorithm/Algorithms and Data Structure/index.html

Large diffs are not rendered by default.

1,421 changes: 1,421 additions & 0 deletions Computer Science/Programming Basis/GNU Make/index.html

Large diffs are not rendered by default.

1,140 changes: 1,140 additions & 0 deletions Computer Science/Programming Basis/Linux/index.html

Large diffs are not rendered by default.

1,143 changes: 1,143 additions & 0 deletions Computer Science/Programming Basis/MIT Missing Semester/index.html

Large diffs are not rendered by default.

1,147 changes: 1,147 additions & 0 deletions Computer Science/Programming Basis/Regular Expression/index.html

Large diffs are not rendered by default.

1,231 changes: 1,231 additions & 0 deletions Computer Science/Programming Basis/Shell/index.html

Large diffs are not rendered by default.

1,132 changes: 1,132 additions & 0 deletions Computer Science/Programming Basis/index.html

Large diffs are not rendered by default.

1,119 changes: 1,119 additions & 0 deletions Computer Science/Programming Language/C++/index.html

Large diffs are not rendered by default.

3,506 changes: 3,506 additions & 0 deletions Computer Science/Programming Language/C/index.html

Large diffs are not rendered by default.

1,587 changes: 1,587 additions & 0 deletions Computer Science/Programming Language/Java/index.html

Large diffs are not rendered by default.

2,335 changes: 2,335 additions & 0 deletions Computer Science/Programming Language/Python/index.html

Large diffs are not rendered by default.

1,116 changes: 1,116 additions & 0 deletions Computer Science/Programming Language/index.html

Large diffs are not rendered by default.

1,119 changes: 1,119 additions & 0 deletions Computer Science/System/Assembly/index.html

Large diffs are not rendered by default.

1,568 changes: 1,568 additions & 0 deletions Computer Science/System/CSAPP/index.html

Large diffs are not rendered by default.

1,243 changes: 1,243 additions & 0 deletions Computer Science/System/System1/index.html

Large diffs are not rendered by default.

1,470 changes: 1,470 additions & 0 deletions Computer Science/System/Verilog/index.html

Large diffs are not rendered by default.

Binary file added Computer Science/System/images/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Computer Science/System/images/img-Verilog/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Computer Science/System/images/img-Verilog/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,111 changes: 1,111 additions & 0 deletions Computer Science/System/index.html

Large diffs are not rendered by default.

1,119 changes: 1,119 additions & 0 deletions Computer Science/Web/CSS/index.html

Large diffs are not rendered by default.

1,367 changes: 1,367 additions & 0 deletions Computer Science/Web/HTML/index.html

Large diffs are not rendered by default.

1,119 changes: 1,119 additions & 0 deletions Computer Science/Web/Javascript/index.html

Large diffs are not rendered by default.

1,481 changes: 1,481 additions & 0 deletions Computer Science/Web/YAML/index.html

Large diffs are not rendered by default.

1,111 changes: 1,111 additions & 0 deletions Computer Science/Web/index.html

Large diffs are not rendered by default.

1,112 changes: 1,112 additions & 0 deletions Computer Science/index.html

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions Javascripts/katex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
(function () {
'use strict';

var katexMath = (function () {
var maths = document.querySelectorAll('.arithmatex'),
tex;

for (var i = 0; i < maths.length; i++) {
tex = maths[i].textContent || maths[i].innerText;
if (tex.startsWith('\\(') && tex.endsWith('\\)')) {
katex.render(tex.slice(2, -2), maths[i], {'displayMode': false});
} else if (tex.startsWith('\\[') && tex.endsWith('\\]')) {
katex.render(tex.slice(2, -2), maths[i], {'displayMode': true});
}
}
});

(function () {
var onReady = function onReady(fn) {
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", fn);
} else {
document.attachEvent("onreadystatechange", function () {
if (document.readyState === "interactive") {
fn();
}
});
}
};

onReady(function () {
if (typeof katex !== "undefined") {
katexMath();
}
});
})();

}());

19 changes: 19 additions & 0 deletions Javascripts/mathjax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true,
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex",
},
};

document$.subscribe(() => {
MathJax.startup.output.clearCache();
MathJax.typesetClear();
MathJax.texReset();
MathJax.typesetPromise();
});
98 changes: 98 additions & 0 deletions Javascripts/scheme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
(() => {

const preferToggle = e => {
if (localStorage.getItem("data-md-prefers-color-scheme") === "true") {
document.querySelector("body").setAttribute("data-md-color-scheme", (e.matches) ? "slate" : "default")
}
var frame = document.querySelector(".giscus-frame")
var theme = document.querySelector("body").getAttribute("data-md-color-scheme") === "slate" ? "https://gcore.jsdelivr.net/gh/TonyCrane/note/docs/css/giscus.css" : "light"
frame.contentWindow.postMessage(
{ giscus: { setConfig: { theme } } },
"https://giscus.app"
)
}

const setupTheme = body => {
const preferSupported = window.matchMedia("(prefers-color-scheme)").media !== "not all"
let scheme = localStorage.getItem("data-md-color-scheme")
let prefers = localStorage.getItem("data-md-prefers-color-scheme")
let oldversion = localStorage.getItem("/.__palette")

if (oldversion) {
localStorage.removeItem("/.__palette")
}

if (!scheme) {
scheme = "slate"
}
if (!prefers) {
prefers = "false"
}

if (prefers === "true" && preferSupported) {
scheme = (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "slate" : "default"
} else {
prefers = "false"
}

body.setAttribute("data-md-prefers-color-scheme", prefers)
body.setAttribute("data-md-color-scheme", scheme)

if (preferSupported) {
const matchListener = window.matchMedia("(prefers-color-scheme: dark)")
matchListener.addListener(preferToggle)
}
}

const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
if (mutation.type === "childList") {
if (mutation.addedNodes.length) {
for (let i = 0; i < mutation.addedNodes.length; i++) {
const el = mutation.addedNodes[i]

if (el.nodeType === 1 && el.tagName.toLowerCase() === "body") {
setupTheme(el)
break
}
}
}
}
})
})

observer.observe(document.querySelector("html"), {childList: true})
setupTheme(document.querySelector("body"))
})()

window.toggleScheme = () => {
const body = document.querySelector("body")
const preferSupported = window.matchMedia("(prefers-color-scheme)").media !== "not all"
let scheme = body.getAttribute("data-md-color-scheme")
let prefer = body.getAttribute("data-md-prefers-color-scheme")

if (preferSupported && scheme === "default" && prefer !== "true") {
prefer = "true"
scheme = (window.matchMedia("(prefers-color-scheme: dark)").matches) ? "slate" : "default"
} else if (preferSupported && prefer === "true") {
prefer = "false"
scheme = "slate"
} else if (scheme === "slate") {
prefer = "false"
scheme = "default"
} else {
prefer = "false"
scheme = "slate"
}
localStorage.setItem("data-md-prefers-color-scheme", prefer)
localStorage.setItem("data-md-color-scheme", scheme)
body.setAttribute("data-md-prefers-color-scheme", prefer)
body.setAttribute("data-md-color-scheme", scheme)

var frame = document.querySelector(".giscus-frame")
var theme = scheme === "slate" ? "https://gcore.jsdelivr.net/gh/TonyCrane/note/docs/css/giscus.css" : "light"
frame.contentWindow.postMessage(
{ giscus: { setConfig: { theme } } },
"https://giscus.app"
)
}
6 changes: 6 additions & 0 deletions Javascripts/tablesort.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
document$.subscribe(function () {
var tables = document.querySelectorAll("article table:not([class])");
tables.forEach(function (table) {
new Tablesort(table);
});
});
80 changes: 80 additions & 0 deletions Javascripts/toc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
(function (window, document) {
function register($toc) {
const currentInView = new Set();
const headingToMenu = new Map();
const $menus = Array.from($toc.querySelectorAll('.md-nav__list > li > a'));

for (const $menu of $menus) {
const elementId = $menu.getAttribute('href').trim().slice(1);
const $heading = document.getElementById(elementId);
if ($heading) {
headingToMenu.set($heading, $menu);
}
}

const $headings = Array.from(headingToMenu.keys());

const callback = (entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
currentInView.add(entry.target);
} else {
currentInView.delete(entry.target);
}
}
let $heading;
if (currentInView.size) {
// heading is the first in-view heading
$heading = [...currentInView].sort(($el1, $el2) => $el1.offsetTop - $el2.offsetTop)[0];
} else if ($headings.length) {
// heading is the closest heading above the viewport top
$heading = $headings
.filter(($heading) => $heading.offsetTop < window.scrollY)
.sort(($el1, $el2) => $el2.offsetTop - $el1.offsetTop)[0];
}
if ($heading && headingToMenu.has($heading)) {
$menus.forEach(($menu) => $menu.classList.remove('is-active'));

const $menu = headingToMenu.get($heading);
$menu.classList.add('is-active');
let $menuList = $menu.parentElement.parentElement.parentElement;
while (
$menuList.classList.contains('md-nav') &&
$menuList.parentElement.tagName.toLowerCase() === 'li'
) {
$menuList.parentElement.children[0].classList.add('is-active');
$menuList = $menuList.parentElement.parentElement.parentElement;
}
}
};
const observer = new IntersectionObserver(callback, { threshold: 0 });

for (const $heading of $headings) {
observer.observe($heading);
// smooth scroll to the heading
if (headingToMenu.has($heading)) {
const $menu = headingToMenu.get($heading);
$menu.setAttribute('data-href', $menu.getAttribute('href'));
$menu.setAttribute('href', 'javascript:;');
$menu.addEventListener('click', () => {
if (typeof $heading.scrollIntoView === 'function') {
$heading.scrollIntoView({ behavior: 'smooth' });
}
const anchor = $menu.getAttribute('data-href');
if (history.pushState) {
history.pushState(null, null, anchor);
} else {
location.hash = anchor;
}
});
$heading.style.scrollMargin = '4em';
}
}
}

if (typeof window.IntersectionObserver === 'undefined') {
return;
}

document.querySelectorAll('.md-sidebar--secondary').forEach(register);
})(window, document);
Binary file added Math/Analysis/A Little More Analysis.pdf
Binary file not shown.
Loading

0 comments on commit ad53f9b

Please sign in to comment.