Skip to content

Instantly share code, notes, and snippets.

Matthias Neeracher microtherion

Block or report user

Report or block microtherion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Christmas2016.ino
/*
* Derived from Nathan Seidle's LED strip demo code
*
* You will need to connect 5V/Gnd from the Arduino (USB power seems to be sufficient).
*
* For the data pins, please pay attention to the arrow printed on the strip. You will need to connect to
* the end that is the begining of the arrows (data connection)--->
*
* The documented wire colors are very unreliable. Follow the labels printed on the LED strip.
*
@microtherion
microtherion / components_separated_by_string.cpp
Created Aug 10, 2015
Implement C++ equivalent of ObjC componentsSeparatedByString:
View components_separated_by_string.cpp
#include <algorithm>
#include <string>
#include <vector>
#include <iostream>
template <typename String, typename OutputIt>
void components_separated_by_string(const String & string, const String & separator, OutputIt out)
{
typename String::size_type comp_start=0, comp_end;
while ((comp_end = string.find(separator, comp_start)) != String::npos) {
View Morgenrot_MP3.ino
#include <SPI.h>
//Add the SdFat Libraries
#include <SdFat.h>
#include <SdFatUtil.h>
//and the MP3 Shield Library
#include <SFEMP3Shield.h>
/**
View Morgenrot_EL.ino
//
// Light show "Trittst im Morgenrot daher"
//
enum {
kFlagRed1 = 2,
kFlagRed2,
kFlagRed3,
kFlagWhite,
kMountainBlue,
@microtherion
microtherion / nested_containers.rb
Created Feb 23, 2014
Perl-style autovivication for Ruby hashes and Arrays
View nested_containers.rb
#!/usr/bin/ruby
class Array
def self.of(cclass)
return Class.new(Array) do
const_set :NESTED, cclass
def self.new(size, *args)
super(size) do |idx|
self::NESTED.new(*args)
end
View XBotMicroDemo.ino
//
// Demonstrate various behaviors for XBotMicro
//
// Matthias Neeracher: Derived from original XBotMicro demo4, rewritten in English,
// added pinouts for ATtiny X4/X5
// This code is licensed under the same conditions as the original XBotMicro demo code.
//
#include <Arduino.h>
View Arduino-CrossPack.sh
#!/bin/sh -x
#
# Usage: Arduino-Crosspack /Applications/Arduino.app
#
AVR="$1/Contents/Resources/Java/hardware/tools/avr"
sudo rm -rf "$AVR"
sudo ln -s /usr/local/CrossPack-AVR "$AVR"
sudo codesign -fs - "$1"
View ols-upgrade.sh
ols_fwloader -f APP -P /dev/tty.usbXXXXX -W -w FPGAROM/logic_sniffer_3.07-Demon-Core.bit -t BIN
ols_fwloader -f BOOT -n -P /dev/tty.usbXXXXX -V -W -w PIC_firmware/OLSv1.firmware.v3.0.hex
View diolan-kext-install.sh
sudo cp -r MacOSX_DiolanDeviceDriver/DiolanDeviceDriver.kext /System/Library/Extensions/
sudo kextutil /System/Library/Extensions/DiolanDeviceDriver.kext
sudo touch /System/Library/Extensions
@microtherion
microtherion / ols-fwloader-compile.sh
Last active Dec 16, 2015
Compiling ols-fwloader
View ols-fwloader-compile.sh
git clone https://github.com/robots/ols-fwloader.git
cd ols-fwloader
autoreconf --install
./configure
make
You can’t perform that action at this time.