Keybase proof
I hereby claim:
- I am atheartengineer on github.
- I am tylershaw (https://keybase.io/tylershaw) on keybase.
- I have a public key ASDalBM6nJ7_XvUGDXL8PXB-BiLaz92ksmyWLxgLaIn9lwo
To claim this, I am signing this object:
/** | |
* HVAC Auto Off | |
* | |
* Author: dianoga7@3dgo.net | |
* Date: 2013-07-21 | |
*/ | |
preferences { | |
section("Control") { | |
input("thermostat", "capability.thermostat", title: "Thermostat") | |
} |
/** | |
* Nest Direct | |
* | |
* Author: dianoga7@3dgo.net | |
* Date: 2013-07-18 | |
* Code: https://gist.github.com/Dianoga/6055918 | |
* | |
* INSTALLATION | |
* ========================================= | |
* 1) Create a new device type (https://graph.api.smartthings.com/ide/devices) |
#!/usr/bin/env python | |
# coding=utf-8 | |
# <a class="btn btn-default pull-right" href="https://gist.github.com/TylerShaw/48ead56c19ce905ac513"><i class="fa fa-git"></i> Download the gist here!</a> | |
# Py2Md started as a little project to do the magical "self documenting code". After thinking about it, I realized self documenting code is great, but it's really not the point. | |
# Commenting code properly, if only better, is the point. | |
# This script evolved from me wanting to code better. I often look at other peoples code, or even old code I've written, and it takes me a few minutes to even figure out what each section is doing. | |
# This will hopefully solve that, not only by forcing me to comment code better, but to publish my code with decent comments. | |
# This script reads in a python file (either itself, or anything it's | |
# imported into) and converts the python file into a markdown file. It |
### Keybase proof | |
I hereby claim: | |
* I am TylerShaw on github. | |
* I am tylershaw (https://keybase.io/tylershaw) on keybase. | |
* I have a public key whose fingerprint is 1972 B0DD 07FE 5C5A EF9B D26F 2FD7 903E 799E FEFA | |
To claim this, I am signing this object: |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <disassembler@dasm.cz> | |
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences. | |
# Version: 2.6.1, 2017-08-02 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, 'smart' features, and 3rd party bloat ... |
def print_table(items, header=None, wrap=True, max_col_width=20, wrap_style="wrap", row_line=False, fix_col_width=False): | |
''' Prints a matrix of data as a human readable table. Matrix | |
should be a list of lists containing any type of values that can | |
be converted into text strings. | |
Two different column adjustment methods are supported through | |
the *wrap_style* argument: | |
wrap: it will wrap values to fit max_col_width (by extending cell height) | |
cut: it will strip values to max_col_width |
I hereby claim:
To claim this, I am signing this object:
from pygments import highlight | |
from pygments.lexers import PythonLexer | |
from pygments.formatters import Terminal256Formatter | |
from pprint import pformat | |
def pprint_color(obj): | |
print highlight(pformat(obj), PythonLexer(), Terminal256Formatter()) |