Skip to content

Instantly share code, notes, and snippets.

View tomasbedrich's full-sized avatar

Tomáš Bedřich tomasbedrich

  • BB Control
  • Pilsen, Czech Republic
  • 00:25 (UTC +02:00)
View GitHub Profile
@nrdobie
nrdobie / max7219_max7221.ino
Last active July 1, 2023 20:29
Basic code for using Maxim MAX7219/MAX7221 with Arduino.
/*
Basic code for using Maxim MAX7219/MAX7221 with Arduino.
Wire the Arduino and the MAX7219/MAX7221 together as follows:
| Arduino | MAX7219/MAX7221 |
| --------- | --------------- |
| MOSI (11) | DIN (1) |
| SCK (13) | CLK (13) |
| I/O (7)* | LOAD/CS (12) |
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"