Skip to content

Instantly share code, notes, and snippets.

View j-n7's full-sized avatar
🤔
tinkering ...

Jan-Niklas j-n7

🤔
tinkering ...
View GitHub Profile
@cliffrowley
cliffrowley / STREAMDECK_HID.md
Last active June 6, 2024 02:47
Notes on the Stream Deck HID protocol

Stream Deck Protocol

How to interface with a Stream Deck device.

Synopsis

The device uses the HID protocol to communicate with its software.

Configuration

@nolanlawson
nolanlawson / browser.js
Last active June 21, 2019 22:13
Example Browserify and Webpack output, split index.js and browser.js
module.exports = function (string) {
return btoa(string);
};
@robinhouston
robinhouston / Makefile
Last active May 14, 2018 12:15
How to make a map of the world with D3
all: world.topo.json libs
libs: d3.geo.projection.v0.min.js d3.v3.min.js topojson.v1.min.js
clean:
rm -f world.*.json ne_10m_admin_0_countries.* *.min.js
.PHONY: all clean libs
%.topo.json: %.geo.json
@sukei
sukei / Router.php
Created February 19, 2014 15:21
A Router in a Tweet
<?php
/**
* The Router class is a fast and lightweight router (yes it is). It can handle
* a path and call the matching controller. If there is no match, then an
* exception will be throwned.
*
* ...and it fits in a tweet.
*
* @author Quentin Schuler aka Sukei <qschuler@neosyne.com>
@border
border / mgoExample.go
Created August 27, 2012 15:33
mgo example
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {