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'... |
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
~/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 |
NewerOlder