mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
formatting
This commit is contained in:
parent
3af4915d9a
commit
070c003fb7
13
README.md
13
README.md
@ -4,8 +4,7 @@
|
||||
|
||||
[Forgetful Notes](https://forgetfulnotes.com) is my _digital garden_ of knowledge. It serves as a platform for my learning and creative endeavours. A space for thinking through, building upon, and coming back to.
|
||||
|
||||
[](https://semanticdata.github.io/eleventy-notes/)
|
||||
[](https://eleventy-notes-chi.vercel.app)
|
||||
[](https://semanticdata.github.io/eleventy-notes/) [](https://eleventy-notes-chi.vercel.app)
|
||||
|
||||
## 📑 Table of Contents
|
||||
|
||||
@ -107,11 +106,11 @@ You can add custom CSS code within `/quartz/styles/custom.scss`. You will then n
|
||||
|
||||
### Fonts
|
||||
|
||||
| Used in: | Font Family | Previous Font |
|
||||
| -------- | :------------------------------------------------------: | :----------------------------------------------------------------------: |
|
||||
| Headers | [Bitter](https://fonts.google.com/specimen/Bitter) | [Schibsted Grotesk](https://fonts.google.com/specimen/Schibsted+Grotesk) |
|
||||
| Body | [Bitter](https://fonts.google.com/specimen/Bitter) | [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+3) |
|
||||
| Code | [Fira Mono](https://fonts.google.com/specimen/Fira+Mono) | [IBM Plex Mono](https://fonts.google.com/specimen/IBM+Plex+Mono) |
|
||||
| Used in: | Font Family | Previous Font |
|
||||
| --- | :-: | :-: |
|
||||
| Headers | [Bitter](https://fonts.google.com/specimen/Bitter) | [Schibsted Grotesk](https://fonts.google.com/specimen/Schibsted+Grotesk) |
|
||||
| Body | [Bitter](https://fonts.google.com/specimen/Bitter) | [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+3) |
|
||||
| Code | [Fira Mono](https://fonts.google.com/specimen/Fira+Mono) | [IBM Plex Mono](https://fonts.google.com/specimen/IBM+Plex+Mono) |
|
||||
|
||||
## 📁 Folder Structure
|
||||
|
||||
|
||||
@ -63,8 +63,7 @@ Below are maps showing the most southern extent of where aurora might be observa
|
||||
|
||||
### July 12th, 2023
|
||||
|
||||

|
||||
G is NOAA Geomagnetic Storm Index (0–5)
|
||||
 G is NOAA Geomagnetic Storm Index (0–5)
|
||||
Kp is Planetary K Index (0–9)
|
||||
|
||||
### September 18th, 2023
|
||||
|
||||
@ -16,16 +16,16 @@ Alternatively, you may copy the code for a bookmarklet and create your own. If y
|
||||
```js
|
||||
javascript: var evl,
|
||||
em,
|
||||
expr = prompt("Formula... (eg: 2*3 + 7/8)", "");
|
||||
expr = prompt("Formula... (eg: 2*3 + 7/8)", "")
|
||||
with (Math)
|
||||
try {
|
||||
evl = parseFloat(eval(expr));
|
||||
evl = parseFloat(eval(expr))
|
||||
if (isNaN(evl)) {
|
||||
throw Error("Not a number!");
|
||||
throw Error("Not a number!")
|
||||
}
|
||||
void prompt("Result:", evl);
|
||||
void prompt("Result:", evl)
|
||||
} catch (em) {
|
||||
alert(em);
|
||||
alert(em)
|
||||
}
|
||||
```
|
||||
|
||||
@ -37,26 +37,26 @@ with (Math)
|
||||
javascript: (function () {
|
||||
var count = 0,
|
||||
text,
|
||||
dv;
|
||||
text = prompt("Search phrase:", "");
|
||||
if (text == null || text.length == 0) return;
|
||||
hlColor = prompt("Color:", "yellow");
|
||||
dv = document.defaultView;
|
||||
dv
|
||||
text = prompt("Search phrase:", "")
|
||||
if (text == null || text.length == 0) return
|
||||
hlColor = prompt("Color:", "yellow")
|
||||
dv = document.defaultView
|
||||
function searchWithinNode(node, te, len) {
|
||||
var pos, skip, spannode, middlebit, endbit, middleclone;
|
||||
skip = 0;
|
||||
var pos, skip, spannode, middlebit, endbit, middleclone
|
||||
skip = 0
|
||||
if (node.nodeType == 3) {
|
||||
pos = node.data.toUpperCase().indexOf(te);
|
||||
pos = node.data.toUpperCase().indexOf(te)
|
||||
if (pos >= 0) {
|
||||
spannode = document.createElement("SPAN");
|
||||
spannode.style.backgroundColor = hlColor;
|
||||
middlebit = node.splitText(pos);
|
||||
endbit = middlebit.splitText(len);
|
||||
middleclone = middlebit.cloneNode(true);
|
||||
spannode.appendChild(middleclone);
|
||||
middlebit.parentNode.replaceChild(spannode, middlebit);
|
||||
++count;
|
||||
skip = 1;
|
||||
spannode = document.createElement("SPAN")
|
||||
spannode.style.backgroundColor = hlColor
|
||||
middlebit = node.splitText(pos)
|
||||
endbit = middlebit.splitText(len)
|
||||
middleclone = middlebit.cloneNode(true)
|
||||
spannode.appendChild(middleclone)
|
||||
middlebit.parentNode.replaceChild(spannode, middlebit)
|
||||
++count
|
||||
skip = 1
|
||||
}
|
||||
} else if (
|
||||
node.nodeType == 1 &&
|
||||
@ -65,13 +65,13 @@ javascript: (function () {
|
||||
node.tagName.toUpperCase != "STYLE"
|
||||
) {
|
||||
for (var child = 0; child < node.childNodes.length; ++child) {
|
||||
child = child + searchWithinNode(node.childNodes[child], te, len);
|
||||
child = child + searchWithinNode(node.childNodes[child], te, len)
|
||||
}
|
||||
}
|
||||
return skip;
|
||||
return skip
|
||||
}
|
||||
window.status = "Searching for '" + text + "'...";
|
||||
searchWithinNode(document.body, text.toUpperCase(), text.length);
|
||||
window.status = "Searching for '" + text + "'..."
|
||||
searchWithinNode(document.body, text.toUpperCase(), text.length)
|
||||
window.status =
|
||||
"Found " +
|
||||
count +
|
||||
@ -79,8 +79,8 @@ javascript: (function () {
|
||||
(count == 1 ? "" : "s") +
|
||||
" of %27" +
|
||||
text +
|
||||
"%27.";
|
||||
})();
|
||||
"%27."
|
||||
})()
|
||||
```
|
||||
|
||||
### First Commit of Repository
|
||||
@ -93,15 +93,15 @@ javascript: ((b) =>
|
||||
.then((c) => Promise.all([c.headers.get("link"), c.json()]))
|
||||
.then((c) => {
|
||||
if (c[0]) {
|
||||
var d = c[0].split(",")[1].split(";")[0].slice(2, -1);
|
||||
return fetch(d).then((e) => e.json());
|
||||
var d = c[0].split(",")[1].split(";")[0].slice(2, -1)
|
||||
return fetch(d).then((e) => e.json())
|
||||
}
|
||||
return c[1];
|
||||
return c[1]
|
||||
})
|
||||
.then((c) => c.pop().html_url)
|
||||
.then((c) => (window.location = c)))(
|
||||
window.location.pathname.match(/\/([^\/]+\/[^\/]+)(?:\/tree\/([^\/]+))?/),
|
||||
);
|
||||
)
|
||||
```
|
||||
|
||||
### Tab Title Editor
|
||||
@ -109,8 +109,7 @@ javascript: ((b) =>
|
||||
<a href="javascript:(function()%7Bjavascript%3Avoid(document.title%3Dprompt('Enter%20page%20title')%20%3F%3F%20document.title)%7D)()%3B">Tab Title Editor</a>
|
||||
|
||||
```js
|
||||
javascript: void (document.title =
|
||||
prompt("Enter page title") ?? document.title);
|
||||
javascript: void (document.title = prompt("Enter page title") ?? document.title)
|
||||
```
|
||||
|
||||
### Tab Title and Icon Editor
|
||||
@ -142,9 +141,9 @@ javascript: (() => {
|
||||
"//" +
|
||||
window.location.hostname +
|
||||
window.location.pathname,
|
||||
);
|
||||
window.open(url, "_blank");
|
||||
})();
|
||||
)
|
||||
window.open(url, "_blank")
|
||||
})()
|
||||
```
|
||||
|
||||
### Post to Hacker News
|
||||
@ -177,13 +176,13 @@ javascript:(function()%7B%2F%2F%20Water.css%20Bookmarklet%0A%2F%2F%20-----------
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
let domStyle = document.getElementById("domStylee");
|
||||
let domStyle = document.getElementById("domStylee")
|
||||
if (domStyle) {
|
||||
document.body.removeChild(domStyle);
|
||||
return;
|
||||
document.body.removeChild(domStyle)
|
||||
return
|
||||
}
|
||||
domStyle = document.createElement("style");
|
||||
domStyle.setAttribute("id", "domStylee");
|
||||
domStyle = document.createElement("style")
|
||||
domStyle.setAttribute("id", "domStylee")
|
||||
domStyle.append(
|
||||
[
|
||||
"* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }",
|
||||
@ -198,9 +197,9 @@ javascript: (function () {
|
||||
[
|
||||
"* * * * * * * * * { background-color: rgba(0,0,255,.2) !important; }",
|
||||
].join(),
|
||||
);
|
||||
document.body.appendChild(domStyle);
|
||||
})();
|
||||
)
|
||||
document.body.appendChild(domStyle)
|
||||
})()
|
||||
```
|
||||
|
||||
```js
|
||||
@ -236,37 +235,37 @@ javascript:(function()%7Bvar%20body%20%3D%20document.getElementsByTagName('body'
|
||||
<a href="javascript:(function()%7Bjavascript%3A%20s%20%3D%20document.getElementsByTagName('STYLE')%3B%20ex%20%3D%20document.getElementsByTagName('LINK')%3B%20d%20%3D%20window.open().document%3B%20%2F*set%20base%20href*%2F%20d.open()%3B%20d.close()%3B%20b%20%3D%20d.body%3B%20%20function%20trim(s)%20%7B%20return%20s.replace(%2F%5E%5Cs*%5Cn%2F%2C%20'').replace(%2F%5Cs*%24%2F%2C%20'')%3B%20%7D%3B%20%20function%20iff(a%2C%20b%2C%20c)%20%7B%20return%20b%20%3F%20a%20%2B%20b%20%2B%20c%20%3A%20''%3B%20%7D%20%20function%20add(h)%20%7B%20b.appendChild(h)%3B%20%7D%20%20function%20makeTag(t)%20%7B%20return%20d.createElement(t)%3B%20%7D%20%20function%20makeText(tag%2C%20text)%20%7B%20t%20%3D%20makeTag(tag)%3B%20t.appendChild(d.createTextNode(text))%3B%20return%20t%3B%20%7D%20add(makeText('style'%2C%20'iframe%7Bwidth%3A100%25%3Bheight%3A18em%3Bborder%3A1px%20solid%3B'))%3B%20add(makeText('h3'%2C%20d.title%20%3D%20'Style%20sheets%20in%20'%20%2B%20location.href))%3B%20for%20(i%20%3D%200%3B%20i%20%3C%20s.length%3B%20%2B%2Bi)%20%7B%20add(makeText('h4'%2C%20'Inline%20style%20sheet'%20%2B%20iff('%20title%3D%22'%2C%20s%5Bi%5D.title%2C%20'%22')))%3B%20add(makeText('pre'%2C%20trim(s%5Bi%5D.innerHTML)))%3B%20%7D%20for%20(i%20%3D%200%3B%20i%20%3C%20ex.length%3B%20%2B%2Bi)%20%7B%20rs%20%3D%20ex%5Bi%5D.rel.split('%20')%3B%20for%20(j%20%3D%200%3B%20j%20%3C%20rs.length%3B%20%2B%2Bj)%20if%20(rs%5Bj%5D.toLowerCase()%20%3D%3D%20'stylesheet')%20%7B%20add(makeText('h4'%2C%20'link%20rel%3D%22'%20%2B%20ex%5Bi%5D.rel%20%2B%20'%22%20href%3D%22'%20%2B%20ex%5Bi%5D.href%20%2B%20'%22'%20%2B%20iff('%20title%3D%22'%2C%20ex%5Bi%5D.title%2C%20'%22')))%3B%20iframe%20%3D%20makeTag('iframe')%3B%20iframe.src%20%3D%20ex%5Bi%5D.href%3B%20add(iframe)%3B%20break%3B%20%7D%20%7D%20void%200%7D)()%3B">Show Stylesheets</a>
|
||||
|
||||
```js
|
||||
javascript: s = document.getElementsByTagName("STYLE");
|
||||
ex = document.getElementsByTagName("LINK");
|
||||
d = window.open().document;
|
||||
/*set base href*/ d.open();
|
||||
d.close();
|
||||
b = d.body;
|
||||
javascript: s = document.getElementsByTagName("STYLE")
|
||||
ex = document.getElementsByTagName("LINK")
|
||||
d = window.open().document
|
||||
/*set base href*/ d.open()
|
||||
d.close()
|
||||
b = d.body
|
||||
function trim(s) {
|
||||
return s.replace(/^\s*\n/, "").replace(/\s*$/, "");
|
||||
return s.replace(/^\s*\n/, "").replace(/\s*$/, "")
|
||||
}
|
||||
function iff(a, b, c) {
|
||||
return b ? a + b + c : "";
|
||||
return b ? a + b + c : ""
|
||||
}
|
||||
function add(h) {
|
||||
b.appendChild(h);
|
||||
b.appendChild(h)
|
||||
}
|
||||
function makeTag(t) {
|
||||
return d.createElement(t);
|
||||
return d.createElement(t)
|
||||
}
|
||||
function makeText(tag, text) {
|
||||
t = makeTag(tag);
|
||||
t.appendChild(d.createTextNode(text));
|
||||
return t;
|
||||
t = makeTag(tag)
|
||||
t.appendChild(d.createTextNode(text))
|
||||
return t
|
||||
}
|
||||
add(makeText("style", "iframe{width:100%;height:18em;border:1px solid;"));
|
||||
add(makeText("h3", (d.title = "Style sheets in " + location.href)));
|
||||
add(makeText("style", "iframe{width:100%;height:18em;border:1px solid;"))
|
||||
add(makeText("h3", (d.title = "Style sheets in " + location.href)))
|
||||
for (i = 0; i < s.length; ++i) {
|
||||
add(makeText("h4", "Inline style sheet" + iff(' title="', s[i].title, '"')));
|
||||
add(makeText("pre", trim(s[i].innerHTML)));
|
||||
add(makeText("h4", "Inline style sheet" + iff(' title="', s[i].title, '"')))
|
||||
add(makeText("pre", trim(s[i].innerHTML)))
|
||||
}
|
||||
for (i = 0; i < ex.length; ++i) {
|
||||
rs = ex[i].rel.split(" ");
|
||||
rs = ex[i].rel.split(" ")
|
||||
for (j = 0; j < rs.length; ++j)
|
||||
if (rs[j].toLowerCase() == "stylesheet") {
|
||||
add(
|
||||
@ -279,14 +278,14 @@ for (i = 0; i < ex.length; ++i) {
|
||||
'"' +
|
||||
iff(' title="', ex[i].title, '"'),
|
||||
),
|
||||
);
|
||||
iframe = makeTag("iframe");
|
||||
iframe.src = ex[i].href;
|
||||
add(iframe);
|
||||
break;
|
||||
)
|
||||
iframe = makeTag("iframe")
|
||||
iframe.src = ex[i].href
|
||||
add(iframe)
|
||||
break
|
||||
}
|
||||
}
|
||||
void 0;
|
||||
void 0
|
||||
```
|
||||
|
||||
### CSS Stats
|
||||
@ -303,20 +302,20 @@ javascript:location.href='http://cssstats.com/stats?url=%27+window.location.href
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
var el = document.createElement("script");
|
||||
el.type = "text/javascript";
|
||||
var el = document.createElement("script")
|
||||
el.type = "text/javascript"
|
||||
el.src =
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js";
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js"
|
||||
el.onerror = function () {
|
||||
alert(
|
||||
'Looks like the Content Security Policy directive is blocking the use of bookmarklets\n\nYou can copy and paste the content of:\n\n"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js"\n\ninto your console instead\n\n(link is in console already)',
|
||||
);
|
||||
)
|
||||
console.log(
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js",
|
||||
);
|
||||
};
|
||||
document.getElementsByTagName("body")[0].appendChild(el);
|
||||
})();
|
||||
)
|
||||
}
|
||||
document.getElementsByTagName("body")[0].appendChild(el)
|
||||
})()
|
||||
```
|
||||
|
||||
### Font Finder
|
||||
@ -326,29 +325,29 @@ javascript: (function () {
|
||||
```js
|
||||
javascript: (function () {
|
||||
function getSelectedNode() {
|
||||
if (window.getSelection().focusNode === null) return null;
|
||||
return window.getSelection().focusNode.parentNode;
|
||||
if (window.getSelection().focusNode === null) return null
|
||||
return window.getSelection().focusNode.parentNode
|
||||
}
|
||||
function getNodeFontStack(node) {
|
||||
return window.getComputedStyle(node).fontFamily;
|
||||
return window.getComputedStyle(node).fontFamily
|
||||
}
|
||||
function getFirstAvailableFont(fonts) {
|
||||
for (let font of fonts) {
|
||||
let fontName = font.trim().replace(/"/g, "");
|
||||
let isAvailable = document.fonts.check(`16px ${fontName}`);
|
||||
if (!isAvailable) continue;
|
||||
return fontName;
|
||||
let fontName = font.trim().replace(/"/g, "")
|
||||
let isAvailable = document.fonts.check(`16px ${fontName}`)
|
||||
if (!isAvailable) continue
|
||||
return fontName
|
||||
}
|
||||
}
|
||||
let node = getSelectedNode();
|
||||
let node = getSelectedNode()
|
||||
if (!node) {
|
||||
window.alert("Please select a string of text and try again.");
|
||||
return;
|
||||
window.alert("Please select a string of text and try again.")
|
||||
return
|
||||
}
|
||||
let fonts = getNodeFontStack(node).split(",");
|
||||
let firstAvailableFont = getFirstAvailableFont(fonts);
|
||||
window.alert(`Font: ${firstAvailableFont}`);
|
||||
})();
|
||||
let fonts = getNodeFontStack(node).split(",")
|
||||
let firstAvailableFont = getFirstAvailableFont(fonts)
|
||||
window.alert(`Font: ${firstAvailableFont}`)
|
||||
})()
|
||||
```
|
||||
|
||||
### View Fonts
|
||||
@ -357,15 +356,15 @@ javascript: (function () {
|
||||
|
||||
```js
|
||||
javascript: void (function (d) {
|
||||
var e = d.createElement("script");
|
||||
e.setAttribute("type", "text/javascript");
|
||||
e.setAttribute("charset", "UTF-8");
|
||||
var e = d.createElement("script")
|
||||
e.setAttribute("type", "text/javascript")
|
||||
e.setAttribute("charset", "UTF-8")
|
||||
e.setAttribute(
|
||||
"src",
|
||||
"//www.typesample.com/assets/typesample.js?r=" + Math.random() * 99999999,
|
||||
);
|
||||
d.body.appendChild(e);
|
||||
})(document);
|
||||
)
|
||||
d.body.appendChild(e)
|
||||
})(document)
|
||||
```
|
||||
|
||||
### Indentify Fonts
|
||||
@ -374,15 +373,15 @@ javascript: void (function (d) {
|
||||
|
||||
```js
|
||||
javascript: void (function (d) {
|
||||
var e = d.createElement("script");
|
||||
e.setAttribute("type", "text/javascript");
|
||||
e.setAttribute("charset", "UTF-8");
|
||||
var e = d.createElement("script")
|
||||
e.setAttribute("type", "text/javascript")
|
||||
e.setAttribute("charset", "UTF-8")
|
||||
e.setAttribute(
|
||||
"src",
|
||||
"//www.typesample.com/assets/typesample.js?r=" + Math.random() * 99999999,
|
||||
);
|
||||
d.body.appendChild(e);
|
||||
})(document);
|
||||
)
|
||||
d.body.appendChild(e)
|
||||
})(document)
|
||||
```
|
||||
|
||||
### Stress Test
|
||||
@ -399,19 +398,19 @@ javascript:(function()%7Bvar%20d=document,s=d.createElement('script'),doit=funct
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
document.designMode = "on";
|
||||
const s = document.createElement("style");
|
||||
s.innerHTML = `body::before{content:'%E2%9C%8F%EF%B8%8F Edit Mode (ESC to end)';z-index:64;padding:1em;background:white;color:black;display:block;margin:1em;font-size:30px;border:5px solid green;}`;
|
||||
document.body.appendChild(s);
|
||||
window.scrollTo(0, 0);
|
||||
document.designMode = "on"
|
||||
const s = document.createElement("style")
|
||||
s.innerHTML = `body::before{content:'%E2%9C%8F%EF%B8%8F Edit Mode (ESC to end)';z-index:64;padding:1em;background:white;color:black;display:block;margin:1em;font-size:30px;border:5px solid green;}`
|
||||
document.body.appendChild(s)
|
||||
window.scrollTo(0, 0)
|
||||
document.addEventListener("keyup", (e) => {
|
||||
if (e.key === "Escape") {
|
||||
document.designMode = "off";
|
||||
s.remove();
|
||||
document.removeEventListener("keyup", e);
|
||||
document.designMode = "off"
|
||||
s.remove()
|
||||
document.removeEventListener("keyup", e)
|
||||
}
|
||||
});
|
||||
})();
|
||||
})
|
||||
})()
|
||||
```
|
||||
|
||||
### Edit Current Page
|
||||
@ -419,9 +418,9 @@ javascript: (function () {
|
||||
<a href="javascript:(function()%7Bjavascript%3A%20document.body.contentEditable%20%3D%20'true'%3B%20document.designMode%20%3D%20'on'%3B%20void%200%7D)()%3B">Edit Current Page</a>
|
||||
|
||||
```js
|
||||
javascript: document.body.contentEditable = "true";
|
||||
document.designMode = "on";
|
||||
void 0;
|
||||
javascript: document.body.contentEditable = "true"
|
||||
document.designMode = "on"
|
||||
void 0
|
||||
```
|
||||
|
||||
### User Agent Stats
|
||||
@ -430,8 +429,8 @@ void 0;
|
||||
|
||||
```js
|
||||
javascript: void (() => {
|
||||
prompt("User agent:", navigator.userAgent);
|
||||
})();
|
||||
prompt("User agent:", navigator.userAgent)
|
||||
})()
|
||||
```
|
||||
|
||||
### WebDev Multi Tools
|
||||
@ -448,20 +447,20 @@ javascript:(function () %7Bvar v %3D document.createElement(%27script%27)%3Bv.sr
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
var el = document.createElement("script");
|
||||
el.type = "text/javascript";
|
||||
var el = document.createElement("script")
|
||||
el.type = "text/javascript"
|
||||
el.src =
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js";
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js"
|
||||
el.onerror = function () {
|
||||
alert(
|
||||
'Looks like the Content Security Policy directive is blocking the use of bookmarklets\n\nYou can copy and paste the content of:\n\n"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js"\n\ninto your console instead\n\n(link is in console already)',
|
||||
);
|
||||
)
|
||||
console.log(
|
||||
"https://micmro.github.io/performance-bookmarklet/dist/performanceBookmarklet.min.js",
|
||||
);
|
||||
};
|
||||
document.getElementsByTagName("body")[0].appendChild(el);
|
||||
})();
|
||||
)
|
||||
}
|
||||
document.getElementsByTagName("body")[0].appendChild(el)
|
||||
})()
|
||||
```
|
||||
|
||||
### Website Dev Stack
|
||||
@ -471,41 +470,41 @@ javascript: (function () {
|
||||
```js
|
||||
javascript: (function () {
|
||||
var d = document,
|
||||
e = d.getElementById("wappalyzer-container");
|
||||
e = d.getElementById("wappalyzer-container")
|
||||
if (e !== null) {
|
||||
d.body.removeChild(e);
|
||||
d.body.removeChild(e)
|
||||
}
|
||||
var u = "https://www.wappalyzer.com/",
|
||||
t = new Date().getTime(),
|
||||
c = d.createElement("div"),
|
||||
p = d.createElement("div"),
|
||||
l = d.createElement("link"),
|
||||
s = d.createElement("script");
|
||||
c.setAttribute("id", "wappalyzer-container");
|
||||
l.setAttribute("rel", "stylesheet");
|
||||
l.setAttribute("href", u + "css/bookmarklet.css");
|
||||
d.head.appendChild(l);
|
||||
p.setAttribute("id", "wappalyzer-pending");
|
||||
s = d.createElement("script")
|
||||
c.setAttribute("id", "wappalyzer-container")
|
||||
l.setAttribute("rel", "stylesheet")
|
||||
l.setAttribute("href", u + "css/bookmarklet.css")
|
||||
d.head.appendChild(l)
|
||||
p.setAttribute("id", "wappalyzer-pending")
|
||||
p.setAttribute(
|
||||
"style",
|
||||
"background-image: url(" + u + "images/spinner.gif) !important",
|
||||
);
|
||||
c.appendChild(p);
|
||||
s.setAttribute("src", u + "bookmarklet/wappalyzer.js");
|
||||
)
|
||||
c.appendChild(p)
|
||||
s.setAttribute("src", u + "bookmarklet/wappalyzer.js")
|
||||
s.onload = function () {
|
||||
window.wappalyzer = new Wappalyzer();
|
||||
s = d.createElement("script");
|
||||
s.setAttribute("src", u + "bookmarklet/apps.js");
|
||||
window.wappalyzer = new Wappalyzer()
|
||||
s = d.createElement("script")
|
||||
s.setAttribute("src", u + "bookmarklet/apps.js")
|
||||
s.onload = function () {
|
||||
s = d.createElement("script");
|
||||
s.setAttribute("src", u + "bookmarklet/driver.js");
|
||||
c.appendChild(s);
|
||||
};
|
||||
c.appendChild(s);
|
||||
};
|
||||
c.appendChild(s);
|
||||
d.body.appendChild(c);
|
||||
})();
|
||||
s = d.createElement("script")
|
||||
s.setAttribute("src", u + "bookmarklet/driver.js")
|
||||
c.appendChild(s)
|
||||
}
|
||||
c.appendChild(s)
|
||||
}
|
||||
c.appendChild(s)
|
||||
d.body.appendChild(c)
|
||||
})()
|
||||
```
|
||||
|
||||
### Website Stack - Built With
|
||||
@ -515,7 +514,7 @@ javascript: (function () {
|
||||
```js
|
||||
javascript: void open(
|
||||
"https://builtwith.com/?" + encodeURIComponent(location.href),
|
||||
);
|
||||
)
|
||||
```
|
||||
|
||||
### Heatmap - Web Loading Time
|
||||
@ -524,10 +523,10 @@ javascript: void open(
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
var el = document.createElement("script");
|
||||
el.src = "https://zeman.github.io/perfmap/perfmap.js";
|
||||
document.body.appendChild(el);
|
||||
})();
|
||||
var el = document.createElement("script")
|
||||
el.src = "https://zeman.github.io/perfmap/perfmap.js"
|
||||
document.body.appendChild(el)
|
||||
})()
|
||||
```
|
||||
|
||||
### Instagram - Download Photo
|
||||
@ -544,19 +543,19 @@ javascript:(function(){;!function(e)%7Bvar%20t=%7B%7D;function%20n(a)%7Bif(t%5Ba
|
||||
|
||||
```js
|
||||
javascript: (function () {
|
||||
var i, x;
|
||||
var i, x
|
||||
for (i = 0; (x = document.links[i]); ++i)
|
||||
x.style.color = ["blue", "red", "orange"][sim(x, location)];
|
||||
x.style.color = ["blue", "red", "orange"][sim(x, location)]
|
||||
function sim(a, b) {
|
||||
if (a.hostname != b.hostname) return 0;
|
||||
if (a.hostname != b.hostname) return 0
|
||||
if (fixPath(a.pathname) != fixPath(b.pathname) || a.search != b.search)
|
||||
return 1;
|
||||
return 2;
|
||||
return 1
|
||||
return 2
|
||||
}
|
||||
function fixPath(p) {
|
||||
p = (p.charAt(0) == "/" ? "" : "/") + p;
|
||||
/*many browsers*/ p = p.split("?")[0];
|
||||
/*opera*/ return p;
|
||||
p = (p.charAt(0) == "/" ? "" : "/") + p
|
||||
/*many browsers*/ p = p.split("?")[0]
|
||||
/*opera*/ return p
|
||||
}
|
||||
})();
|
||||
})()
|
||||
```
|
||||
|
||||
@ -4,9 +4,7 @@ description: This section explores the concept of maintaining a Public Journal.
|
||||
compartir: true
|
||||
---
|
||||
|
||||
> [!note]
|
||||
> I'm still defining what exactly I should include in this journal. I'm currently making sure it's not _too_ technical, or difficult to read.
|
||||
This page explores the concept of keeping a public journal, something I haven't done before. I'm still defining what exactly I should include in this journal. I'm currently making sure it's not too technical, or difficult to read.
|
||||
> [!note] I'm still defining what exactly I should include in this journal. I'm currently making sure it's not _too_ technical, or difficult to read. This page explores the concept of keeping a public journal, something I haven't done before. I'm still defining what exactly I should include in this journal. I'm currently making sure it's not too technical, or difficult to read.
|
||||
|
||||
## 2024
|
||||
|
||||
|
||||
@ -53,8 +53,7 @@ _Approx. budget: $1,070,000_
|
||||
|
||||
### 🚨 MTPD Substation Rehab
|
||||
|
||||
Rehabilitate previous public space into new Metro
|
||||
Transit Police Dept. Substation in downtown Saint Paul.
|
||||
Rehabilitate previous public space into new Metro Transit Police Dept. Substation in downtown Saint Paul.
|
||||
_Approx. budget: $880,000_
|
||||
|
||||
### 🚗 Pavement Management Program
|
||||
|
||||
@ -32,10 +32,7 @@ Collection of quotes I like.
|
||||
|
||||
## Ashtavakra Gita
|
||||
|
||||
> "The wise man knows the Self,
|
||||
> And he plays the game of life.
|
||||
> But the fool lives in the world
|
||||
> Like a beast of burden."
|
||||
> "The wise man knows the Self, And he plays the game of life. But the fool lives in the world Like a beast of burden."
|
||||
|
||||
## Big Mouth
|
||||
|
||||
@ -131,8 +128,7 @@ Collection of quotes I like.
|
||||
>
|
||||
> I don't know. The only thing I do know… is that we have to be kind.
|
||||
>
|
||||
> Please. Be kind… especially when we don't know what's going on.
|
||||
> I know you see yourself as a fighter. Well, I see myself as one too. This is how I fight."
|
||||
> Please. Be kind… especially when we don't know what's going on. I know you see yourself as a fighter. Well, I see myself as one too. This is how I fight."
|
||||
|
||||
## Yuval Noah Harari
|
||||
|
||||
|
||||
@ -48,8 +48,7 @@ Let's break it down:
|
||||
|
||||
### Price
|
||||
|
||||
Based on price per $1.
|
||||
Selected $0.10 as the baseline after averaging some calculations.
|
||||
Based on price per $1. Selected $0.10 as the baseline after averaging some calculations.
|
||||
|
||||
- 1 point for every $0.01 / GB below $0.10
|
||||
|
||||
|
||||
@ -13,8 +13,7 @@ Compilation of Words I like. Visit the [source](https://wordwarriors.wayne.edu/l
|
||||
## Anodyne (adjective)
|
||||
|
||||
1. Capable of soothing or eliminating pain.
|
||||
2. Not likely to offend or arouse tensions.
|
||||
Also used as a _noun_ to describe something that soothes, calms, or comforts.
|
||||
2. Not likely to offend or arouse tensions. Also used as a _noun_ to describe something that soothes, calms, or comforts.
|
||||
|
||||
## Arete (noun)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user