Skip to content

Instantly share code, notes, and snippets.

View Ivorforce's full-sized avatar
👽
Working from Mars

Lukas Tenbrink Ivorforce

👽
Working from Mars
View GitHub Profile
#%%
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
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
<?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>
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)
@Ivorforce
Ivorforce / ESP32-SPI.h
Created June 29, 2020 21:48
ESP32-SPI.h
#include <HardwareSerial.h>
#include <FastLED.h>
#include <driver/spi_common.h>
#include <driver/spi_master.h>
#include <cstdint>
#include <SPI.h>
typedef struct {
// 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
//
// VisualizerWindowController.swift
// TenTunes
//
// Created by Lukas Tenbrink on 07.09.18.
// Copyright © 2018 ivorius. All rights reserved.
//
import Cocoa
//
// TrackSpectrumView.swift
// TenTunes
//
// Created by Lukas Tenbrink on 17.02.18.
// Copyright © 2018 ivorius. All rights reserved.
//
import Cocoa
import QuartzCore
❯ 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'...
~/Jobs/Bachelorarbeit/nupic master
❯ pip2 uninstall nupic.bindings -y
Uninstalling nupic.bindings-1.0.0:
Successfully uninstalled nupic.bindings-1.0.0
~/Jobs/Bachelorarbeit/nupic master
❯ pip2 uninstall nupic -y
Uninstalling nupic-1.0.1:
Successfully uninstalled nupic-1.0.1