Skip to content

Instantly share code, notes, and snippets.

@kesor
kesor / cloudformation-yaml-to-json.py
Last active January 22, 2019 17:39
Convert CloudFormation YAML format to JSON format
#!/usr/bin/env python
import sys, yaml, json
def funcparse(loader, node):
node.value = {
yaml.constructor.ScalarNode: loader.construct_scalar,
yaml.constructor.SequenceNode: loader.construct_sequence,
yaml.constructor.MappingNode: loader.construct_mapping,
}[type(node)](node)
node.tag = node.tag.replace(u'!Ref', 'Ref').replace(u'!', u'Fn::')
@endolith
endolith / Butterworth_Lowpass_Filter_Example.png
Last active May 22, 2019 23:53
Second-order sections for SciPy Python
Butterworth_Lowpass_Filter_Example.png