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
| #!/usr/bin/env bash | |
| # Fill a "Created at" Date field on a GitHub Project (v2) for every item | |
| # whose value is currently empty, using the linked issue/PR's createdAt. | |
| # | |
| # Usage: | |
| # ./gh-project-update-created-at.sh <owner> <project-number> [--apply] [--field "Created at"] | |
| # | |
| # <owner> may be either a user or organization login — auto-detected. | |
| # Defaults to dry-run; pass --apply to actually write. | |
| # Requires `gh auth login` with the `project` scope (gh auth refresh -s project). |
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
| #%% | |
| from PIL import Image, ImageDraw, ImageFont | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from einops import rearrange, reduce, repeat | |
| import unicodedata | |
| import string | |
| import sys | |
| from pathlib import Path |
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 PIL.Image | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from einops import rearrange, reduce, repeat | |
| import cv2 | |
| ############################################################################################# | |
| ascii = PIL.Image.open('../resources/8s0Sj.gif') | |
| ascii = np.asarray(ascii) * 16 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ACPI</key> | |
| <dict> | |
| <key>Add</key> | |
| <array> | |
| <dict> | |
| <key>Comment</key> |
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 sys | |
| import os | |
| from pathlib import Path | |
| from os.path import expanduser | |
| home = expanduser("~") | |
| idf_path = (Path.home() / Path(".platformio/packages/framework-espidf")).absolute() | |
| os.environ['IDF_PATH'] = str(idf_path) |
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 <HardwareSerial.h> | |
| #include <FastLED.h> | |
| #include <driver/spi_common.h> | |
| #include <driver/spi_master.h> | |
| #include <cstdint> | |
| #include <SPI.h> | |
| typedef struct { |
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
| // source = MIKMIDIDeviceManager.shared.virtualSources[idx] | |
| try MIKMIDIDeviceManager.shared.connectInput(source) { (source, commands) in | |
| var numbers = MIDI.numbers | |
| for case let command as MIKMIDIControlChangeCommand in commands { | |
| numbers[safe: Int(command.controllerNumber)] = Float(command.controllerValue) / 127 | |
| } | |
| MIDI.numbers = numbers |
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
| // | |
| // VisualizerWindowController.swift | |
| // TenTunes | |
| // | |
| // Created by Lukas Tenbrink on 07.09.18. | |
| // Copyright © 2018 ivorius. All rights reserved. | |
| // | |
| import Cocoa |
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
| // | |
| // TrackSpectrumView.swift | |
| // TenTunes | |
| // | |
| // Created by Lukas Tenbrink on 17.02.18. | |
| // Copyright © 2018 ivorius. All rights reserved. | |
| // | |
| import Cocoa | |
| import QuartzCore |
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
| ❯ bash install_stack.sh devstack | |
| Capturing output to logs/install-20171204-202022.log | |
| Installation started at 2017-12-04 20:20:22 | |
| Installing release 'open-release/ficus.master' | |
| ######################################################################## 100,0% | |
| Installing the 'vagrant-vbguest' plugin. This can take a few minutes... | |
| Installed the plugin 'vagrant-vbguest (0.13.0)'! | |
| Bringing machine 'default' up with 'virtualbox' provider... | |
| ==> default: Importing base box 'ficus-devstack-2017-02-07'... |
NewerOlder