Skip to content

Instantly share code, notes, and snippets.

@sethc23
sethc23 / jq_whitespace_xml_to_json
Created October 17, 2015 04:43
jq example of one-liner for generating JSON
#!/bin/bash
printf 'With Color:\n\n'
echo \
'Producer: FOP 0.20.5
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
@sethc23
sethc23 / f_postgres.py
Created September 16, 2015 17:26
f(x) z_str_comp_jaro
DROP FUNCTION IF EXISTS z_str_comp_jaro(text,text,boolean,boolean,boolean);
CREATE OR REPLACE FUNCTION z_str_comp_jaro(s1 text,
s2 text,
winklerize boolean default true,
long_tolerance boolean default true,
verbose boolean default false)
RETURNS double precision
AS $BODY$

Free Monospaced Fonts Intended for Programmers

Following review of a short blog entry by a modest font aficionado, the below references may be useful.

class Two:
def __init__(self,_parent):
self = _parent.T.To_Sub_Classes(self,_parent)
class Bravo:
def __init__(self,_parent):
self = _parent.T.To_Sub_Classes(self,_parent)
def funct_1(self):
print 'Called funct_1 of class "Bravo".'
method_1 = 'self.F.one_alpha_funct_1()'
@sethc23
sethc23 / turnstile_funct.py
Last active October 27, 2016 11:18
f(x) z_get_string_dist
def z_get_string_dist(self):
cmd="""
DROP TYPE IF EXISTS string_dist_results cascade;
CREATE TYPE string_dist_results as (
idx integer,
orig_str text,
jaro double precision,
jaro_b text,
leven integer,