This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@raspberrypi:~# python3 scale.py XX:RE:DA:CT:ED:XX | |
| Connected. | |
| 152g | |
| 444g | |
| 688g | |
| 726g | |
| 783g | |
| 853g | |
| 978g | |
| 1753g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Quebec", | |
| "version": "1.0", | |
| "date": "2021-07-27", | |
| "conditions": [ | |
| { | |
| "id": "second_dose", | |
| "type": "Immunization", | |
| "cvx": [ | |
| 207, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SERPENTINE=1 pipenv run python img2c.py ~/Desktop/star.png > src/bitmap.h | |
| # star.png is a 16x16 PNG file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <FastLED.h> | |
| #define NUM_LEDS 150 | |
| #define LED_PIN 25 | |
| #define BRIGHTNESS 50 | |
| #define RED 0 | |
| #define GREEN 1 | |
| #define WHITE 2 | |
| #define OFF 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MockNeoPixel: | |
| SCALE = 16 # scale the imgcat (iTerm2) display by this much | |
| def __init__(self, pin, num_pixels): | |
| self.pin = pin | |
| self.num_pixels = num_pixels | |
| self.pixels = [(0, 0, 0) for i in range(self.num_pixels)] | |
| self.config = {} | |
| def __getitem__(self, k): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| try: | |
| sysname = os.uname().sysname | |
| except AttributeError: | |
| sysname = "micropython-darwin" | |
| if sysname in ["esp32", "micropython-darwin"]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| pkgs ? import <nixpkgs> { }, | |
| }: | |
| let | |
| inherit (pkgs) stdenv lib fetchFromGitHub fetchurl unzip; | |
| in | |
| pkgs.mkShell { | |
| buildInputs = [ | |
| (import ./swift-format.nix { inherit stdenv lib fetchFromGitHub fetchurl unzip; }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- You need Hammerspoon to run this: http://www.hammerspoon.org/ | |
| -- Zoom is a focus nightmare. This script will steal focus back from Zoom for zoomBlockTime seconds, at launch. | |
| -- If you don't switch to another app Zoom will stay active. | |
| -- If you activate (focus) Zoom from Finder, it'll accept your focus change. | |
| -- If you focus, say, your chat app to tell someone you've launched your Zoom meeting, focus will switch back | |
| -- to that app every time Zoom tries to steal it. Today, it's 5 times on my machine. | |
| zoomBlockTime = 10 | |
| zoomFocusBlocked = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Set up Docker CLI | |
| uses: docker/setup-buildx-action@v3 | |
| - name: 'Login to GitHub Container Registry' | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} |
OlderNewer