- Open in Chrome as "One big page"
- Save as "Webpage - complete"
- Open .htm file in editor and delete sidebar (The "column2" div)
- Then replace all "https://#" with "#" globally (just the unqualified anchors).
- Open ..._files/style.css and change to "font-size: 50%;" in body class
- Open result in Chrome and do "Select all" + "Copy"
- Start "OpenOffice Writer". Edit page style to taste (margins etc.) and do a "Paste"
- Export the result as PDF
- Voila! Bob is your uncle.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import difflib | |
import fileinput | |
def display_diff(diff): | |
for item in diff: | |
action, data = item[0], item[2:] | |
if action == ' ': | |
print(data, end='') | |
elif action == '-': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example use of the iterator. Intended for the ESP32 console | |
// Caveat emptor: No express or implied warranty, functionality | |
// or fitness for any particular purpose | |
.... | |
static int nvsdump_cmd(int argc, char** argv) | |
{ | |
bool all = argc == 2 && *argv[1] == '*'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for candidate in /usr/local/Cellar/avrdude/*/etc/avrdude.conf /etc/avrdude.conf /usr/local/etc/avrdude.conf ;do | |
if [[ -f $candidate ]] ;then | |
AVRCONF=$candidate | |
fi | |
done | |
[[ -f $AVRCONF ]] || exit | |
gawk ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{review}} | |
{{TipImported | |
|id=79 | |
|previous=78 | |
|next=80 | |
|created=June 14, 2001 | |
|complexity=basic | |
|author=Flemming Madsen | |
|version=6.0 | |
|rating=130/40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javascript: | |
(function() { | |
function getSelectionHtml() { | |
var html = ""; | |
if (typeof window.getSelection != "undefined") { | |
var sel = window.getSelection(); | |
if (sel.rangeCount) { | |
var container = document.createElement("div"); | |
for (var i = 0, len = sel.rangeCount; i < len; ++i) { | |
container.appendChild(sel.getRangeAt(i).cloneContents()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Gauge(placeholderName, configuration) | |
{ | |
this.placeholderName = placeholderName; | |
var self = this; // for internal d3 functions | |
this.configure = function(configuration) | |
{ | |
this.config = configuration; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A function for converting hex <-> dec w/o loss of precision. | |
* | |
* The problem is that parseInt("0x12345...") isn't precise enough to convert | |
* 64-bit integers correctly. | |
* | |
* Internally, this uses arrays to encode decimal digits starting with the least | |
* significant: | |
* 8 = [8] | |
* 16 = [6, 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! JumpBuffers() | |
let jumptxt = "" | |
redir! => jumptxt | |
silent jumps | |
redir END | |
let byName = {} | |
let byIndex = [] | |
for line in reverse(split(jumptxt, '\n')) | |
let name = strpart(line, 16) | |
let bufno = bufnr(name) |
NewerOlder