Skip to content

Instantly share code, notes, and snippets.

View Versatilus's full-sized avatar

Eric Paulson Versatilus

  • Roseburg, Oregon, USA
View GitHub Profile
@anvaka
anvaka / gist:3815296
Created October 1, 2012 23:59
JavaScript Function Serialization
function functionReplacer(key, value) {
if (typeof(value) === 'function') {
return value.toString();
}
return value;
}
function functionReviver(key, value) {
if (key === "") return value;
@drmfinlay
drmfinlay / _dictation_mode.py
Last active July 5, 2020 13:57
My formatted dictation Dragonfly grammar + related code
"""
Dictation & command mode Dragonfly grammar
============================================================================
This module defines a configurable grammar for using three different
command/dictation modes. The modes can be configured externally by modifying
the number in the grammar's status file. The modes and associated status
numbers (0-2) are defined as follows:
0. Command-only mode.