Skip to content

Instantly share code, notes, and snippets.


Charles Merriam merriam

View GitHub Profile
merriam /
Last active Feb 23, 2021
Godot utililty routines for printing numbers
extends Resource
class_name As
static func demo_usage():
print("These are booleans: %s %s"
% [tf(true), tf(false)])
print("These are numbers: %s %s"
% [comma_int(1234), comma(1234.567, 2)])
print("This is scientific: %s %s"
% [scientific(0.000123), scientific(1234.56)])
import collections
class Solution:
def findLadders(self, beginWord, endWord, wordList):
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: List[List[str]]
View gist:17d1fff98419d796fc6145aea35ff26c
.heart {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: pink;
height: 50px;
merriam / SensorFusion Emerging
Created Jul 29, 2018
Sensor Fusion Meeting: Emerging LIDAR concepts and Sensor Technologies for AV
View SensorFusion Emerging
merriam / gist:7669828
Created Nov 27, 2013
A small routine to recursively dump structure into HTML. This routine uses the Flask framework, but should work in anything. Added a couple comments to help.
View gist:7669828
from flask import g
from werkzeug import escape # so "<sqlInstance ... >" isn't taken as a tag.
def show_user_data():
""" show the user date, i.e., the flask.g data """
## The dump_val() function is what you might want to reuse.
def dump_val(key, value):
""" return an html snippet with lists for dictionaries. . """
View gist:6093427
echo "1. ====== Throw a copy of everything into git "
git add .
git commit -m "MAKING LEDGER"
# -*- coding: utf-8 -*-
from datetime import datetime
import sublime_plugin
# Adding too much documentation:
# 1. The original Gist had %M instead of %m in the strftime() class. %M means minute,
# while %m means month as a decimal.
# 2. To install this:
# Sublime's menu Tools -> New Plugin...,
merriam /
Created Dec 20, 2012
filelist for
layout title
File List

A note on viewing the files

The website stores most pages in MarkDown format. The server runs these pages through the jekyll preprocessor and the pygments syntax highlighter. Also, the webserver remaps certain directories such as /images to ~/images.

The Filelist of