Skip to content

Instantly share code, notes, and snippets.

<style type="text/css" rel="stylesheet"> --h0: 4.5rem; --h1: 3rem; --h2: 2.25rem; --h3: 1.5rem; --h4: 1.125rem; --h5: 0.75rem; --lh: calc(4 / 3); --m1: calc(2 / 3 * 1em); --m2: calc(4 / 3 * 1em);
@chris-hailstorm
chris-hailstorm / x.md
Last active April 5, 2020 14:46
test-2

aw-hammer -- ActiveWrite 2.0 in Redwood framework

Getting Started

Setup

After cloning:

import {
COLORS,
LANGUAGES,
LANGUAGE_MODE_HASH,
LANGUAGE_NAME_HASH,
LANGUAGE_MIME_HASH,
DEFAULT_SETTINGS,
THEMES_HASH
} from '../lib/constants'
@chris-hailstorm
chris-hailstorm / gist:4989643
Last active December 31, 2021 19:21
Unicode to ASCII / UTF-8 converter for Python dicts, lists, strings and nested combinations of dicts, lists and strings
def asciify(data):
"""
SYNOPSIS
Asciifies strings, lists and dicts, and nested versions of same
DESCRIPTION
The JSON spec (http://www.ietf.org/rfc/rfc4627.txt) -- "JSON text SHALL
be encoded in Unicode". For apps that don't use unicode, this function
walks through all levels of a JSON data structure and converts each item
to ASCII. See http://stackoverflow.com/questions/956867/ for original.
@chris-hailstorm
chris-hailstorm / clean_mac_files_from_zip.sh
Created December 2, 2012 01:32 — forked from 9re/clean_mac_files_from_zip.sh
remove __MACOSX and .DS_Store files from zip files
##
## zip command itself can clean it up for you
Can be fixed after the fact by `zip -d filename.zip __MACOSX/\*`