Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Just workin on stuff

Tyler AtHeartEngineer

🛠️
Just workin on stuff
View GitHub Profile
View keybase.md

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:

@AtHeartEngineer
AtHeartEngineer / pprint_color.py
Created Jul 7, 2018 — forked from EdwardBetts/pprint_color.py
Python pprint with color syntax highlighting for the console
View pprint_color.py
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())
@AtHeartEngineer
AtHeartEngineer / print_table.py
Created Jul 7, 2018 — forked from jhcepas/print_table.py
nice table printing in python
View print_table.py
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
@AtHeartEngineer
AtHeartEngineer / reclaimWindows10.ps1
Created Nov 13, 2017 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults)
View reclaimWindows10.ps1
##########
# 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 ...
View osx-for-hackers.sh
#!/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'
View gist:707e9ac7c2da5db068b9
### 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:
@AtHeartEngineer
AtHeartEngineer / py2md.py
Last active Aug 29, 2015
Python to Markdown
View py2md.py
#!/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
View nest.devicetype.groovy
/**
* 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)
View hvac-autoonoff.smartapp.groovy
/**
* HVAC Auto Off
*
* Author: dianoga7@3dgo.net
* Date: 2013-07-21
*/
preferences {
section("Control") {
input("thermostat", "capability.thermostat", title: "Thermostat")
}
You can’t perform that action at this time.