This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pygments.lexer import RegexLexer, bygroups, include, using | |
| from pygments.lexers.data import JsonLexer | |
| from pygments.token import * | |
| __all__ = ['CalvinLexer'] | |
| class CalvinLexer(RegexLexer): | |
| name = 'CalvinScript' | |
| aliases = ['Calvinscript', 'calvinscript'] | |
| filenames = ['*.calvin'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # To install pigpio see http://abyz.me.uk/rpi/pigpio/index.html | |
| import pigpio | |
| class Waveform(object): | |
| # Times in microseconds | |
| T1 = 250 | |
| T5 = 5*T1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| object sensor | |
| object platform_functions | |
| object service_enabler | |
| object application_part | |
| object pub_sub | |
| object consumer | |
| sensor "*" --> "1" platform_functions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from docparser import parse_old_doc | |
| import json | |
| import jsonschema | |
| from jsonschema.exceptions import ValidationError | |
| import yaml | |
| from newstore import Store | |
| def actor_files(root): |
OlderNewer