Skip to content

Instantly share code, notes, and snippets.

View FulcronZ's full-sized avatar

Pipat Methavanitpong FulcronZ

View GitHub Profile
@FulcronZ
FulcronZ / main.py
Created July 19, 2016 04:57
Python JSON Logging Formatter
"""
MIT License
Copyright (c) 2016 Pipat Methavanitpong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@FulcronZ
FulcronZ / main.py
Created July 16, 2016 09:24
Python MQTT Logging Handler
"""
MIT License
Copyright (c) 2016 Pipat Methavanitpong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@FulcronZ
FulcronZ / main.py
Created July 16, 2016 05:56
Python Logging Module Experiment
import logging
# Create a logger
logger = logging.getLogger('mylogger')
logger.setLevel(logging.INFO)
# Create a log handler printing to sys.stdout
consoleWarning = logging.StreamHandler()
consoleWarning.setLevel(logging.WARNING)
@FulcronZ
FulcronZ / nyuzi_make_error.txt
Created September 6, 2015 00:56
Nyuzi Make error output
I copied my error messages and pasted them here. They are from 2 commits:
1. 56a119: membench: let compiler unroll loops
2. 8aba98: hardware: enable more warnings and fix them. Other cleanup.
The 1. is the latest commit at the time. The 2. is the 1st commit it starts to cannot be built.
----------------------------------------------------------------------------------------
commit 56a119846c24934eaf4732b0cf63dc164f3ffe71