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 ruby | |
# encoding: UTF-8 | |
require 'stringio' | |
require 'rubygems' | |
require 'ruby-debug' | |
lines = [] | |
ARGF.each_line do |ea| | |
# strip bash color codes |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BBEditDocumentType</key> | |
<string>CodelessLanguageModule</string> | |
<key>BBLMColorsSyntax</key> | |
<string>YES</string> | |
<key>BBLMIsCaseSensitive</key> | |
<string>YES</string> |
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
def n5s(str) | |
first, num, last = str.match(/([a-zA-Z])(\d+)([a-zA-Z])/).captures | |
num = num.to_i | |
puts open("/usr/share/dict/words").grep(/\b#{first}[a-zA-Z]{#{num}}#{last}\b/) | |
end | |
> n5s("i18n") | |
institutionalization | |
intercrystallization | |
interdifferentiation |
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/local/bin/python3 | |
import os | |
import re | |
import subprocess | |
from typing import Optional, Sequence | |
from pathlib import Path, PurePath | |
doc_path: Optional[str] = os.getenv('BB_DOC_PATH') |
OlderNewer