Skip to content

Instantly share code, notes, and snippets.

View maartenpaauw's full-sized avatar
👨‍💻
Working on Filament PHP plug-ins

Maarten Paauw maartenpaauw

👨‍💻
Working on Filament PHP plug-ins
View GitHub Profile
@maartenpaauw
maartenpaauw / app.php
Last active August 29, 2015 14:16
Get workbench back in Laravel 5.
'Illuminate\Workbench\WorkbenchServiceProvider'
@maartenpaauw
maartenpaauw / jquery.ghostHunter.js
Created April 17, 2015 09:34
Ghost Hunter get images
image : post.find("media\\:content, content").attr('url')
@maartenpaauw
maartenpaauw / IFTTT_DATE.js
Created July 16, 2015 10:27
Parse the IFTTT date to dd-mm-yyyy hh:mm:00
function IFTTT_DATE(str){
var time = str.split(" "), months, timestring, parsed_hour,
year, month, day, hour, minute, output;
months = {
"Jan": "01", "January": "01",
"Feb": "02", "February": "02",
"Mar": "03", "March": "03",
"Apr": "04", "April": "04",
"May": "05",
$(function() {
// Initialize Material Design.
$.material.init();
// Set the default steps.
$('#stepsup, #stepsdown').val(1);
// Link on click.
$('a').on('click', function(event) {
# Group: YouMedtBro (#25)
# Students: Don, Maarten, Youri, Murtaza, Idriss
# Referenced:
# https://learn.adafruit.com/adafruits-raspberry-pi-lesson-10-stepper-motors/software
import RPi.GPIO as GPIO # Raspberry GPIO
import os # Required for shutdown and reboot functions
import time
from multiprocessing import Process # Required in order to run the animation function async
<!doctype html>
<html>
<head>
{% block head %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/range.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/ripples.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/font-awesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/material-wfont.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/site.css') }}">
# Group: YouMedtBro (#25)
# Students: Don, Maarten, Youri, Murtaza, Idriss
from flask import Flask, render_template, request, json # Flask Webserver (http://flask.pocoo.org/docs/0.10/quickstart/)
from Hwctrl import Hwctrl # Hardware control class
import RPi.GPIO as GPIO
hwctrl = Hwctrl() # New instance of hardware control class
# Create a new Flask App
@maartenpaauw
maartenpaauw / tasmota.log
Created October 3, 2017 15:26
Tasmota upload log
[Tue Oct 3 17:23:54 2017] Processing sonoff (build_flags: -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512; lib_deps: PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON; platfo
rm: espressif8266; board: esp01_1m; framework: arduino; monitor_baud: 115200; board_flash_mode: dout)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting sonoff.ino
Collected 32 compatible libraries
Looking for dependencies...
Library Dependency Graph
|-- <PubSubClient> v2.6
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <[email protected]> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@maartenpaauw
maartenpaauw / debug.log
Created August 15, 2018 21:48
ESP Home YAML
Retrieving maximum program size .pioenvs/candle_1/firmware.elf
Checking size .pioenvs/candle_1/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [===== ] 45.8% (used 37524 bytes from 81920 bytes)
PROGRAM: [=== ] 32.3% (used 337566 bytes from 1044464 bytes)
Configuring upload protocol...
Looking for upload port...
Use manually specified: /dev/cu.wchusbserial1430
Uploading .pioenvs/candle_1/firmware.bin
warning: serialport_set_baudrate: baud rate 921600 may not work