Skip to content

Instantly share code, notes, and snippets.

View MadMaxMcKinney's full-sized avatar

Max McKinney MadMaxMcKinney

View GitHub Profile
# Feed needs to match your feed name. This feed represents the current True or False status of being in a meeting. AKA being busy or not.
meetingFeed = matrixportal.get_io_feed("meeting-status.inmeeting")
meetingValue = meetingFeed['last_value']
# Feed needs to match your feed name. This feed represents the current True or False status of having the display off or on.
isDimmedFeed = matrixportal.get_io_feed("meeting-status.isdimmed")
isDimmedValue = isDimmedFeed['last_value']
@MadMaxMcKinney
MadMaxMcKinney / secrets.py
Created November 14, 2020 04:16
Example CircuitPython secrets file for Wifi connection
secrets = {
'ssid' : 'your_wifi_ssid',
'password' : 'your_wifi_password',
'aio_username' : '_your_aio_username_',
'aio_key' : '_your_big_huge_super_long_aio_key_'
}
@MadMaxMcKinney
MadMaxMcKinney / meeting-display-matrixportal.py
Last active November 14, 2020 04:11
A simple 'busy light' made for Adafruit MatrixPortal for displaying your meeting status to those outside your home office.
# Author: Max McKinney
# Description: A simple 'busy light' for displaying your meeting status to those outside your home office.
import time
import random
import board
import terminalio
import displayio
import neopixel
from digitalio import DigitalInOut, Direction, Pull
@MadMaxMcKinney
MadMaxMcKinney / style.css
Created June 13, 2020 03:22
Stylish - Dark Nest
.navbar--wrapper_1t_ {
background: #1c2539;
}
@MadMaxMcKinney
MadMaxMcKinney / profile.json
Created March 7, 2020 05:09
Windows 10 Terminal Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@MadMaxMcKinney
MadMaxMcKinney / email-sig.html
Created June 26, 2019 16:31
Max McKinney Email Signature
<table class="sc-jAaTju fNCBho" cellpadding="0" cellspacing="0" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial; margin-top: 24px;">
<tbody>
<tr>
<td>
<table class="sc-jAaTju fNCBho" cellpadding="0" cellspacing="0" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial;">
<tbody>
<tr>
<td width="100" style="vertical-align: middle;"><span class="sc-cHGsZl bHiaRe" style="margin-right: 20px; display: block;"><img width="80" class="sc-gisBJw kDlVKO" src="https://www.dropbox.com/s/90rcmh287gdw2wi/Max%20McKinney%20Mountain%20Black.png?raw=1" role="presentation" style="max-width: 130px;"></span></td>
<td style="vertical-align: middle;">
<h3 class="sc-hzDkRC kpsoyz" color="#000000" style="margin: 0px; font-size: 18px; color: rgb(0, 0, 0);"><span>Max</span><span>&nbsp;</span><span>McKinney</span></h3>
@MadMaxMcKinney
MadMaxMcKinney / .prettierrc
Created April 12, 2019 02:21
M - Prettier config
{
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
}
@MadMaxMcKinney
MadMaxMcKinney / .hyper.js
Created July 30, 2018 03:03
Hyper terminal configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@MadMaxMcKinney
MadMaxMcKinney / React eslint config ".eslintrc.js"
Last active July 1, 2018 18:32
My personal config for ESLint and React
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
string formatSentence(string sentence) {
// Store the formatted sentence here
string formattedSentence;
// Add the first letter of the word to the new sentence