Skip to content

Instantly share code, notes, and snippets.

View th0mk's full-sized avatar

th0mk

  • Rotterdam
  • 15:36 (UTC +01:00)
View GitHub Profile
@th0mk
th0mk / export.json
Created June 24, 2020 08:24
.fmbot grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",

Keybase proof

I hereby claim:

  • I am th0mk on github.
  • I am thomk (https://keybase.io/thomk) on keybase.
  • I have a public key whose fingerprint is F5F4 92FE 20C8 D8DD 81BF E328 CC19 B528 B8DF D4BB

To claim this, I am signing this object:

@th0mk
th0mk / elevator.ino
Created February 5, 2016 00:33
Simple Arduino elevator
const int button1Pin = 1;
const int button2Pin = 2;
const int button3Pin = 3;
const int button4Pin = 4;
const int button5Pin = 5;
const int led1Pin = 9;
const int led2Pin = 10;
const int led3Pin = 11;
const int led4Pin = 12;
@th0mk
th0mk / google_map
Created January 12, 2016 14:01
JS code required for google_map.
$(document).ready(function (){
// create a LatLng object containing the coordinate for the center of the map
var latlng = new google.maps.LatLng(53.3, 6.0);
// prepare the map properties
var options = {
zoom: 13,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
@th0mk
th0mk / scrollscript
Last active January 13, 2016 20:09
Script that changes adds and removes a class when you scroll below 200 (this can be changed)
$(window).scroll(function() {
if ($(document).scrollTop() > 200) {
$('someID').addClass('someClass');
} else {
$('someID').removeClass('someClass');
}
});