-
Install and run an MQTT broker (mosquitto is a good choice)
-
Install mqtt and ncurses-ruby gems (the plain ncurses gem is harder to natively compile)
sudo gem install mqtt ncurses-ruby
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
| #include <SPI.h> | |
| #include <GD.h> | |
| void setup() { | |
| // give time for the gameduino splash screen to be displayed | |
| delay(2500); | |
| GD.begin(); | |
| // load character set |
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
| /* | |
| Rainbowduino v3.0 Library examples: | |
| Sets pixels on 2D plane (8x8 matrix) | |
| */ | |
| #include <Rainbowduino.h> | |
| uint32_t colorRGB[13] = {0xFFFFFF,0x000000,0xFFFFFF,0x000,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF,0xFF0000,0x00FF00,0x0000FF }; |
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
| // TinyBASIC.cpp : An implementation of TinyBASIC in C | |
| // | |
| // Author : Mike Field - hamster@snap.net.nz | |
| // | |
| // Based on TinyBasic for 68000, by Gordon Brandly | |
| // (see http://members.shaw.ca/gbrandly/68ktinyb.html) | |
| // | |
| // which itself was Derived from Palo Alto Tiny BASIC as | |
| // published in the May 1976 issue of Dr. Dobb's Journal. | |
| // |
This is a simple example of the MQTT protocol with Node.js. The client code has also been tested with a combination of C++ servers and clients.
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
| # return a random sample of your twitter followers | |
| # run like so: | |
| # $ python random_followers.py <screen_name> | |
| # where <screen_name> is the account you want followers for | |
| import sys, random, json, urllib | |
| sname = sys.argv[1] | |
| ids_raw = urllib.urlopen( | |
| "https://api.twitter.com/1/followers/ids.json?screen_name="+sname).read() |
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
| """BME688 / BME680 demo | |
| This demo will work for both the BME680 and BME688. | |
| """ | |
| import time | |
| from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE | |
| from pimoroni_i2c import PimoroniI2C | |
| import badger2040 | |
| import machine | |
| badger = badger2040.Badger2040() |
I couldn't find a comprehensive list of links for the RC2014 so I started one. Suggestions welcome.
- RC2014 Website - descriptions of all official RC2014 boards
- RC2014 Github Repo - official ROMs and example code
- RC2014 CP/M Guide - guide to setting up CP/M on the RC2014
- Decoding RC2014 ROM Labels - explanation of what RC2014 ROM labels mean
- RC2014 Module Template - Kicad template for building RC2014 boards
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
| #!/bin/bash | |
| # Set these environment variables and you can create a (text-only) post using | |
| # your favorite command line text editor. | |
| # | |
| # - EDITOR: e.g. vim, emacs, etc | |
| # - MASTODON_POST_HOST: the hostname for our Mastodon account, e.g. chaos.social | |
| # - MASTODON_POST_TOKEN: an app access key with write:statuses permission | |
| # | |
| # See: https://gist.github.com/edsu/aa6f70bb20127b1e18e05dff5e470022 |
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
| #!/bin/bash | |
| # webfinger (macOS) | |
| # needs GNU getopt since macOS doesn't support relevant options | |
| # and jq - use `brew install gnu-getopt jq` | |
| if [ ! `which jq` ] | |
| then | |
| echo Installing 'jq' | |
| brew install jq | |
| fi |
OlderNewer