Seven segment LED up
> Mode
|
| > Down
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // A little macro that takes a percentage and chnages it to 0-255 | |
| // | |
| #define MAX_VALUE 255 | |
| #define PER_TO_VAL(percent) ((MAX_VALUE/100) * percent) | |
| typedef enum DmxCh { | |
| RED = 1, | |
| GREEN = 2, | |
| BLUE = 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| DMX_Master.ino - Example code for using the Conceptinetics DMX library | |
| Copyright (c) 2013 W.A. van der Meeren <danny@illogic.nl>. All right reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 3 of the License, or (at your option) any later version. | |
| This library is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Figured out using: | |
| # https://wiki.debian.org/DebianInstaller/Preseed/EditIso | |
| # https://www.thegeekstuff.com/2009/07/how-to-view-modify-and-recreate-initrd-img/ | |
| # https://gist.github.com/Aktau/5510437 | |
| # https://www.cyberciti.biz/faq/how-to-extract-a-deb-file-without-opening-it-on-debian-or-ubuntu-linux/ | |
| # | |
| ## Go home | |
| cd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PROG=hello.sh;RMS=100;soundmeter --trigger +$RMS --action exec --exec $PROG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This is a modified version of the Visualize101.ino example sketch | |
| * https://github.com/arduino-libraries/MadgwickAHRS/blob/master/examples/Visualize101/Visualize101.ino | |
| * | |
| * Modified starting March 10th, 2018 by Jane Hacker (JAH) | |
| * | |
| * XYZ_M = Macro | |
| * xyz_g = Global | |
| * xyz_t = Type | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // +---+ | |
| // | | | |
| // | | | |
| // |Neo| | |
| // | | | |
| // | | | |
| // +---+ | |
| // | | | |
| // | | | |
| // |Pix| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.5.1/rickshaw.min.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for HEROKU_APP in $(heroku apps | tail -n+2); do export REPO_DIR="heroku-${HEROKU_APP}"; if [ ! -d "$REPO_DIR" ]; then mkdir "$REPO_DIR"; cd "$REPO_DIR"; heroku git:clone ./ -a "${HEROKU_APP}"; cd ..; fi done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name GitLab Markdown TOC Generator | |
| // @namespace GLMdToCg | |
| // @description For use on GitLab circa 14-01-2016. Injects a "Create ToC?" link under the project's name if Markdown style anchors are found on the page. Click the link and a Markdown compatable table of contents will appear in the browser's console! Copy-and-paste it into your Markdown (like README.md). | |
| // @include *gitlab.com* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| window.addEventListener( |
NewerOlder