Skip to content

Instantly share code, notes, and snippets.

Benjamin Skirlo elektrowolle

Block or report user

Report or block elektrowolle

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 hashcash_emscripten_make.sh
emcc hashcash.c libhc.c lib*.c sdb.c utct.c lock.c fastmint_ansi_*.c fastmint_altivec_*.c fastmint_mmx_*.c random.c -O3 -o hashcash.js
View run2.ino
#define HZ 60.
#define ELE_IN 12
#define ELE_OUT 11
#define WINCH_OUT 10
#define THRUST_IN 9
#define AIL_IN 8
#define AIL_L_OUT 7
#define AIL_R_OUT 6
@elektrowolle
elektrowolle / auth.h
Last active Jan 16, 2017
Lora_step_1
View auth.h
// This EUI must be in little-endian format, so least-significant-byte
// first. When copying an EUI from ttnctl output, this means to reverse
// the bytes. For TTN issued EUIs the last bytes should be 0xD5, 0xB3,
// 0x70.
static const u1_t PROGMEM APPEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
// This should also be in little endian format, see above.
static const u1_t PROGMEM DEVEUI[8]={ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
// This key should be in big endian format (or, since it is not really a
View Path.pde
class Path{
Path followingPath;
PVector start;
PVector end;
Float startAngle;
Float endAngle;
Path(PVector start, PVector end, Float startAngle, Float endAngle){
this.start = start;
this.end = end;
View sngltonFactory.es6
function sngltonFactory(_cb, _isFaultyCb){
let o = {snglton: _cb()};
_isFaultyCb = _isFaultyCb || ((c)=>typeof c == "undefined");
return function (){
const a = o;
if(_isFaultyCb(a.snglton)) {
a.snglton = _cb();
}
return a.snglton
}
View gauss.frag
#version 150
uniform sampler2DRect tex0;
uniform float blurAmnt = 1.0;
uniform float fvert = 1.0;
out vec4 outputColor;
in vec2 texCoordVarying;
void main()
View schema.js
//all are /application/json
//Offering an item
// POST request to endpoint /api/postItem
{
itemName: String,
itemPrice: Number,
Description: String,
lockerCode: String,
image: String, //BASE64
View schema.js
//all are /application/json
//Offering an item
// POST request to endpoint /api/postItem
{
itemName: String,
itemPrice: Number,
Description: String,
lockerCode: String,
image: String, //BASE64
@elektrowolle
elektrowolle / Braile.js
Last active Mar 29, 2016
braile converter
View Braile.js
var endOfLine = '\r\n';
Braile = {};
Braile.en = {};
Braile.en.alphabet = {
"a" : "o- -- --",
"b" : "o- o- --",
"c" : "oo -- --",
"d" : "oo -o --",
"e" : "o- -o --",
"f" : "oo o- --",
View gist:8453b90743eb75ce3b23
template <typename Type> class List {
public:
Type value;
List* previousItem;
List* nextItem;
List ( Type value, List *previous = NULL ) {
this->set (value);
this->previousItem = NULL;
this->nextItem = NULL;
You can’t perform that action at this time.