Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Verifying that +pierregorissen is my blockchain ID. https://onename.com/pierregorissen
NRF.setAdvertising([0x03, // Length of Service List
0x03, // Param: Service List
0xAA, 0xFE, // Eddystone ID
0x13, // Length of Service Data
0x16, // Service Data
0xAA, 0xFE, // Eddystone ID
0x10, // Frame type: URL
0xF8, // Power
0x03, // https://
'g','o','o','.','g','l','/','Q','F','l','7','l','9'],
eddyStoneData = [
0x03, // Length of Service List
0x03, // Param: Service List
0xAA, 0xFE, // Eddystone ID
0x13, // Length of Service Data
0x16, // Service Data
0xAA, 0xFE, // Eddystone ID
0x10, // Frame type: URL
0xF8, // Power
0x03, // https://
@PiAir
PiAir / view.php
Created June 3, 2020 20:59
Moodle H5P xAPI connection
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@PiAir
PiAir / .env
Created June 7, 2020 19:37
Redash docker install Synology
PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
# generate a password at https://www.pwdgen.org/
# use a different one for each of the next 3 lines
POSTGRES_PASSWORD=xxxxxx
REDASH_COOKIE_SECRET=-yyyyyy
REDASH_SECRET_KEY=-zzzzz
# replace the xxxxxx with the password generated for line 6
REDASH_DATABASE_URL=postgresql://postgres:xxxxxx@postgres/postgres
<html>
<head>
<style>
#question,
#answer {
font-size: 16px;
font-weight: normal;
font-family: "Söhne", sans-serif;
}