Skip to content

Instantly share code, notes, and snippets.

//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 March 29, 2016 15:53
braile converter
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- --",
@elektrowolle
elektrowolle / gist:8453b90743eb75ce3b23
Last active January 5, 2017 22:57
Simple Linked List
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;