Skip to content

Instantly share code, notes, and snippets.

Charles Merriam merriam

Block or report user

Report or block merriam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@merriam
merriam / filelist.md
Created Dec 20, 2012
filelist for craftyjs.github.com
View filelist.md
layout title
default
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 crafyjs.github.com:

View timestamp.py
# -*- 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...,
View gist:6093427
echo "1. ====== Throw a copy of everything into git "
git add .
git commit -m "MAKING LEDGER"
@merriam
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.
@app.route("/show_user_data")
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. . """
@merriam
merriam / SensorFusion Emerging LIDAR.md
Created Jul 29, 2018
Sensor Fusion Meeting: Emerging LIDAR concepts and Sensor Technologies for AV
View SensorFusion Emerging LIDAR.md
View gist:17d1fff98419d796fc6145aea35ff26c
<style>
.heart {
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: pink;
height: 50px;
View x.py
import collections
class Solution:
def findLadders(self, beginWord, endWord, wordList):
"""
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: List[List[str]]
You can’t perform that action at this time.