Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jaredhowland
jaredhowland / clear-font-cache.md
Last active February 14, 2024 09:57
Clear Mac OS X Font Caches
@jaredhowland
jaredhowland / uniqueperms.m
Created March 14, 2016 19:24 — forked from tobin/uniqueperms.m
Generate unique permutations (Matlab)
function P = uniqueperms(varargin)
% This function allows two possible calling formats:
% perms_nodupes(syms)
% perms_nodupes(syms,counts)
%
% Here perms_nodupes returns all permutations of the vector SYMS.
% COUNTS is an optional vector indicating how many times each symbol should
% be included. The following are equivalent:
%
@jaredhowland
jaredhowland / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active September 27, 2021 12:12 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2014-01-13 : 00:12
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@jaredhowland
jaredhowland / OpenRefine: Insurance Report
Created February 19, 2015 20:14
Risk Management Insurance Report OpenRefine
[
{
"op": "core/row-removal",
"description": "Remove rows",
"engineConfig": {
"facets": [
{
"invert": false,
"expression": "isBlank(value)",
"selectError": false,
@jaredhowland
jaredhowland / flavor.rb
Created May 13, 2014 19:07 — forked from ttscoff/flavor.rb
fix encoding problem with Ruby 2.0
#!/usr/bin/ruby
# Convert a Markdown README to HTML with Github Flavored Markdown
# Github and Pygments styles are included in the output
#
# Requirements: json gem (`gem install json`)
#
# Input: STDIN or filename
# Output: STDOUT
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file
# cat README.md | flavor > README.html