Try to guess what will the code display before before clicking Details
.
Inspired by https://janiczek.github.io/silent-teacher/.
main =
(function() { | |
/* This function forces rustdoc to collapse documentation for all items, | |
except for the methods defined in an impl block and the primary type's | |
declaration. This is the most natural view IMO, since it provides the | |
primary type along with an easy to scan overview of available methods. | |
rustdoc does seemingly have user settings that purport to make this the | |
default, but I could never cause them to work in a reliably consistent | |
way. This is especially useful when writing documents, where you commonly | |
want to refresh and look at the docs for the specific item you're working |
function flatten(array) { | |
let i = 0; | |
while (i < array.length) { | |
if (!Array.isArray(array[i])) { | |
i++ | |
} else { | |
array.splice(i, 1, ...array[i]) | |
} | |
} | |
} |
Try to guess what will the code display before before clicking Details
.
Inspired by https://janiczek.github.io/silent-teacher/.
main =
```diff | |
diff --git a/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt b/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt | |
index 11a1f37..19cc58e 100644 | |
--- a/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt | |
+++ b/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt | |
@@ -1,4 +1,4 @@ | |
-1 | |
+1 | |
00:01:22,886 --> 00:01:27,734 | |
Witaj Nowy Jorku! Jestem Bobby Rydell |
diff --git a/mock/server/src/main.rs b/mock/server/src/main.rs
index 91dbf9c7..f53b9dd6 100644
--- a/mock/server/src/main.rs
+++ b/mock/server/src/main.rs
@@ -1,4 +1,3 @@
-extern crate actix;
extern crate actix_web;
extern crate bytes;
extern crate env_logger;
<-- | |
Screen Text 0 0 0 | |
Screen Background 255 255 255 | |
Popup Text 255 255 255 | |
Popup Background 0 0 0 | |
255 255 255 | |
0 0 178 | |
0 166 0 |
// ==UserScript== | |
// @name Fixed to Absolute Important | |
// @namespace https://greasyfork.org/en/scripts/369282-fixed-to-absolute-important | |
// @description Stops elements from following you as you scroll down the page | |
// @version 1 | |
// ==/UserScript== | |
// https://gist.github.com/rofrol/a52a36102daf59eeef91c715c0ae402b | |
// Based on https://alisdair.mcdiarmid.org/kill-sticky-headers/ |