Skip to content

Instantly share code, notes, and snippets.

View tenth10th's full-sized avatar

David Sturgis tenth10th

  • (Open to Work)
  • Boston
  • 19:50 (UTC -04:00)
View GitHub Profile
# Glowing Blue Escape Key
#
# CircuitPython 3.1.1
import board
from digitalio import DigitalInOut, Direction, Pull
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
import adafruit_dotstar as dotstar
import time
@tenth10th
tenth10th / Maximum Subarray Kata
Created December 17, 2019 16:21
Our results for the LeetCode Maximum Subarray Kata
"""
Given an integer array nums, find the contiguous subarray
(containing at least one number) which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
@tenth10th
tenth10th / tennis.py
Created August 30, 2018 22:57
(Final TennisGame1 refactor)
# -*- coding: utf-8 -*-
class TennisGame1:
point_names = [
"Love",
"Fifteen",
"Thirty",
"Forty",
]