Skip to content

Instantly share code, notes, and snippets.

View nightroman's full-sized avatar

Roman Kuzmin nightroman

  • UK
View GitHub Profile
@nightroman
nightroman / pandoc.css
Created March 21, 2024 12:49 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@nightroman
nightroman / README.md
Created January 16, 2020 15:51 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@nightroman
nightroman / github-pandoc.css
Last active November 10, 2023 18:39 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@nightroman
nightroman / Search my gists.md
Created January 7, 2020 18:49 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html


open System
open ParserLibrary
open ParserLibrary.TextInput
[<EntryPoint>]
let entry args =
let r = run (opt spaces .>>. pint .>>. (manyChars (satisfy (fun _ -> true) "any"))) " -123 Z X"
printfn "%A" r
r |> printResult