Skip to content

Instantly share code, notes, and snippets.

View matthiasnys's full-sized avatar

Matthias Nys matthiasnys

View GitHub Profile
@matthiasnys
matthiasnys / mollie.js
Last active December 28, 2021 14:19
Google sheets updates from Mollie
const MOLLIE_TOKEN = ''
function fetchFromMollie() {
var payload = {};
try {
// Make a POST request with a JSON payload.
var options = {
'method': 'GET',
'contentType': 'application/json',
@matthiasnys
matthiasnys / gist:0746b2519f9c91dd36dc69c3a6fd4e65
Last active December 28, 2021 14:02
Lambda code for the webhook
// 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)
#include <WiFi.h>
#include <Wire.h>
#include "esp_wifi.h"
#include "SSD1306.h"
#include "SH1106.h"
String maclist[64][3];
int listcount = 0;
@matthiasnys
matthiasnys / handler.js
Last active February 1, 2018 20:36
The Birth Notifier
// 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:
self.view.addConstraint(NYSKeyboardHelper(item: self.view, attribute: .bottom, relatedBy: .equal, toItem: button, attribute: .bottom, multiplier: 1.0, constant: 10.0))
@matthiasnys
matthiasnys / Reusable.swift
Last active May 27, 2017 13:46
Easy to use Cell reuse in TableView and CollectionView. Add this file to your Swift project to get going!
//
// 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
@matthiasnys
matthiasnys / NYSKeyboardHelper.swift
Last active September 20, 2017 14:14
A Keyboard helper for your Swift Keyboard troubles.
//
// 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