This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NYSKeyboardHelper.swift | |
// B-NYS GCV | |
// | |
// Created by Matthias on 18/03/2017. | |
// https://gist.github.com/matthiasnys/a9d4ce7d6bd997a2153f4bad77263857#file-nyskeyboardhelper-swift-L6 | |
// Copyright © 2017 B-NYS. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Reusable.swift | |
// B-NYS GCV | |
// | |
// Created by Matthias Nys on 12/01/2017. | |
// Copyright © 2017 B-NYS. All rights reserved. | |
// https://gist.github.com/matthiasnys/96ae8eec52d3b63ed8c307b43defb116 | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.view.addConstraint(NYSKeyboardHelper(item: self.view, attribute: .bottom, relatedBy: .equal, toItem: button, attribute: .bottom, multiplier: 1.0, constant: 10.0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// Copyright (c) 2018 Matthias Nys - B-NYS.com | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <Wire.h> | |
#include "esp_wifi.h" | |
#include "SSD1306.h" | |
#include "SH1106.h" | |
String maclist[64][3]; | |
int listcount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define some constants: | |
const SENDGRID_API_KEY = '' // API key for sendgrid | |
const SENDGRID_TEMPLATE_ID = '' // Create a template in Sendgrid, add the id here | |
const MOLLIE_TOKEN = 'live_...' // Mollie api token. | |
module.exports.webhook = async (event) => { | |
// 1: Parse the event | |
let realBody = JSON.parse(event.body) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MOLLIE_TOKEN = '' | |
function fetchFromMollie() { | |
var payload = {}; | |
try { | |
// Make a POST request with a JSON payload. | |
var options = { | |
'method': 'GET', | |
'contentType': 'application/json', |