Skip to content

Instantly share code, notes, and snippets.

View frederikbrudy's full-sized avatar

Frederik frederikbrudy

View GitHub Profile
// ==UserScript==
// @name CHI21 DelegateConnect menu fix
// @description This is how the Delegate Connect menu should behave
// @version 1
// @grant none
// @match https://acmchi.delegateconnect.co/*
// @author Frederik Brudy (fbrudy.net)
// ==/UserScript==
@frederikbrudy
frederikbrudy / index.html
Last active July 20, 2017 17:35
Synchronize HTML5 video playback of two videos
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Synchronized video playback</title>
<style>
#canvas_2 {
/*background-image: url('');*//*adding a background image for greenscreen effect*/
background-repeat: no-repeat;
}
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
char ssid[] = "WIFI_SSID"; // your network SSID (name)
char pass[] = "WIFI_PASSWORD"; // your network password (use for WPA, or use as key for WEP)
int status = WL_IDLE_STATUS;
const char* host = "api.myjson.com";
const int port = 80;
const char* path = "/bins/16lsir";
bool connected = false;
/*
* Example for 8x8 LED matrix
* Original source http://hastebin.com/raw/wazuhujoga, linked from http://www.amazon.co.uk/forum/-/Tx3UWNLLPMFDQT6/ref=ask_dp_dpmw_al_hza?asin=B00GKEMQUM
*/
#define MAX7219_DIN 5
#define MAX7219_CS 3
#define MAX7219_CLK 2
const int wait = 100;