Skip to content

Instantly share code, notes, and snippets.

View Jeija's full-sized avatar

Florian Euchner Jeija

View GitHub Profile
mesecons =
{
receptor =
{
state = mesecon.state.
}
effector =
{
action_on = function
action_off = function
mesecons =
{
on_signal_on = func
on_signal_off = func
on_signal_change = func
recepor = bool
}
mesecons =
{
receptor =
{
state = mesecon.state.
rules = rules/get_rules
}
effector =
{
action_on = function
time_setnodes = 0
time_setnode = 0
AMOUNT = 0
function benchmark_setnodes(minp, maxp)
local t1 = os.time()
local nodes = {}
for x=minp.x,maxp.x do
@Jeija
Jeija / speedcomparison.lua
Last active December 11, 2015 12:59
Tool to compare speed between minetest.env:set_node() minetest.env:set_nodes() and set_nodes() with minp and maxp specified
time_setnodes = 0
time_setnoare = 0
time_setnode = 0
amount_setnodes = 0
amount_setnoare = 0
amount_setnode = 0
function benchmark_setnodes(minp, maxp)
local t1 = os.time()
@Jeija
Jeija / index.html
Last active August 29, 2015 14:14
WS2811LEDStripe
<html>
<head>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<meta charset="utf-8">
</head>
<body>
<div id="content">
<div id="heading">LED Stripe Controller</div>
@Jeija
Jeija / ws2811.c
Created January 24, 2016 19:25
ESP8266 implementation of WS2811 LED Strip protocol (without I²S / DMA)
// System
#include <ets_sys.h>
#include <osapi.h>
#include <gpio.h>
#include <os_type.h>
#include <user_interface.h>
// Project
#include "ws2811.h"
@Jeija
Jeija / Makefile
Created October 16, 2016 09:59
OpenCV AruCo Detection
TARGET := arucodetect
CXX := g++
# MARKERSIZE: Marker side length in meters
DICTIONARY := 0
MARKERSIZE := 0.2
CAMPARAM := c270.yml
DETECTPARAM := config.yml
all: main.cpp
@Jeija
Jeija / jqueryclient.js
Created July 7, 2017 14:34
Sponsorenlauf
$.post("http://localhost:1234/action/register_runner", JSON.stringify({name : "Kjell"}), function(response) { console.log(response); });
arucodetect