Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Gutlich gepatto

  • Gepatto Interactive Media
  • Breda, The Netherlands
View GitHub Profile
View gist:774018d95116b76f5780
// This #include statement was automatically added by the Particle IDE.
#include "RCSwitch/RCSwitch.h"
/*
This is a minimal sketch without using the library at all but only works for
the 10 pole dip switch sockets. It saves a lot of memory and thus might be
very useful to use with ATTinys :)
http://code.google.com/p/rc-switch/
*/
@gepatto
gepatto / install_haxe400rc3_buster.sh
Last active Nov 10, 2020
Deprecated !! Installs Haxe 4.0.0-rc.3 on Buster
View install_haxe400rc3_buster.sh
#!/bin/bash
# >>>>>> HELPER FUNCTIONS
function echoSection {
echo -en "\e[33m\n" #set color
echo "----------------------------------------------------------------------------------"
echo "--"
echo "-- " $1
echo "--"
echo -en "----------------------------------------------------------------------------------\e[37m\n"
@gepatto
gepatto / 1-Readme.md
Last active Jan 13, 2021
Install set versions of haxe, openfl and lime on Raspberry Pi 3 running Stretch
View 1-Readme.md

#DEPRECATED, here for historic value

UPDATED to work with Raspbian Stretch

These scripts install a set version of openfl and lime in this case openfl 8.4.0 and Lime 7.0.0 (but you change those) Sometimes the latest version of lime or openfl doesn't work (yet) on the Raspberry Pi.

There's 2 scripts here to install haxe and openfl on Raspberry Pi. One that doesn't ask any questions and just installs everything

@gepatto
gepatto / sdl_vlc_pi.cpp
Last active Feb 13, 2021
SDL VLC Pi test
View sdl_vlc_pi.cpp
// g++ -o sdlvlcpi sdl_vlc_pi.cpp `sdl2-config --cflags --libs` -l vlc
// libSDL and libVLC sample code.
// License: [http://en.wikipedia.org/wiki/WTFPL WTFPL]
//
// sdlvlcpi /path/to/video (default render)
// sdlvlcpi /path/to/video -t (render to texture)
#include <stdio.h>
#include <stdint.h>
#include <math.h>
@gepatto
gepatto / makepico.sh
Last active Apr 19, 2021
Create a minimal Raspberry Pi Pico C-language project and vscode workspace and open it in vscocde
View makepico.sh
#!/bin/zsh
#
# makepico.sh
#
# Create a minimal Raspberry Pi Pico C-language project and open it in vscocde
#
# @original author Tony Smith
# @copyright 2021, Tony Smith
# @version 1.0.0
@gepatto
gepatto / hxworkspace.sh
Created May 5, 2021
Create VSCode workspacefile with haxe and lime recommend extensions and open in VSCode
View hxworkspace.sh
#!/bin/bash
# get working directory and grab foldername
NAME=`pwd`;
subdir="${NAME##*/}"
# create workspacefile
WORKSPACEFILE='{"folders":[{"path": "."}],"settings":{},"extensions":{"recommendations":["vshaxe.haxe-extension-pack","openfl.lime-vscode-extension"]}}'
echo $WORKSPACEFILE >> "${subdir}.code-workspace"
@gepatto
gepatto / install_haxe_from_docker.sh
Last active Jul 26, 2021
install haxe from docker and copy to system (needs docker installed). Run as ./install_haxe_from_docker.sh 4.1.5-buster
View install_haxe_from_docker.sh
#!/bin/bash
BLACK="[30m"
RED="[31m"
GREEN="[32m"
YELLOW="[33m"
BLUE="[34m"
PURPLE="[35m"
TEAL="[36m"
WHITE="[37m"