-
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 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 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 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 file contains 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
# enable "sandbox" mode | |
CLIENT.options[:sandbox] = true | |
# load your sandbox account object | |
account = CLIENT.accounts.first | |
# create your campaign | |
campaign = TwitterAds::Campaign.new(account) | |
campaign.funding_instrument_id = account.funding_instruments.first.id | |
campaign.daily_budget_amount_local_micro = 1_000_000 |
This file contains 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 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
################################ | |
#!/usr/bin/env bash | |
# File: twit_twurl.sh | |
# Description: Tweet from the command line using twurl & OAuth | |
# | |
# Copyright 2010 George Ornbo (Shape Shed) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
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 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
import json | |
from requests_oauthlib import OAuth1Session | |
# For a blog post describing this process more, see: | |
# https://medium.com/analytics-vidhya/creating-a-twitter-collection-via-api-1378ecfe20df | |
api_key = 'your api key' | |
api_secret_key = 'your api secret key' | |
access_token = 'your access token' |
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
OlderNewer