sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
diff --git a/browser/devtools/debugger/test/head.js b/browser/devtools/debugger/test/head.js | |
index 1c97620..5dd4070 100644 | |
--- a/browser/devtools/debugger/test/head.js | |
+++ b/browser/devtools/debugger/test/head.js | |
@@ -734,17 +734,24 @@ function closeDebuggerAndFinish(aPanel, aFlags = {}) { | |
"unless you're absolutely sure about what you're doing."); | |
} | |
return teardown(aPanel, aFlags).then(finish); | |
} | |
var d = Object.create(Date.prototype); | |
Date.call(d); | |
d instanceof Date // true | |
d.getTime() // throws an Error! |
import numpy as np | |
from tqdm import trange | |
def get_neighbour_matrix(x, L, R): | |
dx = np.subtract.outer(x[:, 0], x[:, 0]) | |
dy = np.subtract.outer(x[:, 1], x[:, 1]) | |
dx[dx > (L / 2) ** 2] -= (L / 2) ** 2 | |
dy[dy > (L / 2) ** 2] -= (L / 2) ** 2 | |
pair_dist = dx ** 2 + dy ** 2 |
let foo = 1; | |
let bar = 2; | |
let obj = { foo, bar }; | |
obj.foo // 1 | |
obj.bar // 2 |
var smc = new SourceMapConsumer(theSourceMapJSON); | |
var smg = SourceMapGenerator.fromSourceMap(smc); | |
smc.sources.forEach(function (s) { | |
smg.setSourceContent(s, somehowGetTheSourceContentsOf(s)); | |
}); | |
// This is your modified map. | |
smg.toJSON(); |
function* G() { yield this.x; } | |
G.prototype = { x: 5 }; | |
console.log([...G()]); |
import pefile | |
def get_product_version(data: bytes) -> str: | |
pe = pefile.PE(data=data, fast_load=True) | |
pe.parse_data_directories( | |
directories=[pefile.DIRECTORY_ENTRY["IMAGE_DIRECTORY_ENTRY_RESOURCE"]] | |
) | |
for file_info in pe.FileInfo: | |
for entry in file_info: |
Cu.import("resource://gre/modules/Task.jsm") | |
let runTaskWhileValid = (isValid, generator) => { | |
Task.spawn(function* () { | |
const g = generator(); | |
let value, resolved; | |
let done = false; | |
while (!done) { | |
try { | |
({ value, done }) = g.next(resolved); |
So this is supposed to be a list of encoding-related resources together with some very basic instructions. Kind of an encoding analogue to fansub.html. This is not a full guide on encoding.
Since this page is starting to get linked elsewhere, I should also make clear that it mostly comes from (a person adjacent to) the JET community. In particular, it's written primarily from the perspective of anime encoding. Still, most parts will hold up equally well for live action and other areas.
This guide may seem fairly technical. Partly this is because I have a background in pure mathematics and this is how I learned the material, but partly it's just because encoding is cursed and complicated, and you will need to learn the things listed here in order to not make stupid mistakes.
Some sections contain some longer rants about stuff, most others don't. This is almost entirely based on the mood I was in when writing them.