Install fbterm via your favorite package manager
pacman -S fbterm| #!/usr/bin/perl | |
| # IPspeak | |
| # Andy S-C | |
| # 18-May-13 | |
| # 15-Oct-16 - made more "human" ... ten dot nought dot one nine three dot seventeen | |
| # this is the order we check the interfaces | |
| @interfaces = ("eth0", "wlan0"); |
| var mqtt = require('./'); | |
| var client = mqtt.createClient(); | |
| client.on('connect', function() { | |
| console.log('connected'); | |
| }); | |
| client.on('close', function() { | |
| console.log('close, dcing:', client.disconnecting); |
| var OAuth2 = require('OAuth').OAuth2; | |
| var https = require('https'); | |
| var oauth2 = new OAuth2(KEY, SECRET, 'https://api.twitter.com/', null, 'oauth2/token', null); | |
| oauth2.getOAuthAccessToken('', { | |
| 'grant_type': 'client_credentials' | |
| }, function (e, access_token) { | |
| console.log(access_token); //string that we can use to authenticate request | |
| var options = { |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
Length: 1 hour
OpenXC is an API to your car - by installing a small hardware module to read and translate metrics from a car's internal network, the data becomes accessible from most Android applications using the OpenXC library. You can start making vehicle-aware applications that have better interfaces based on context, can minimize distraction while driving, are integrated with other connected services, and can offer you more insight into your car's operation. This session presents a high level introduction to the OpenXC platform appropriate for engineers, business, IT, marketing, etc. The presentation will explain what OpenXC is and what was the motivation for creating the project at Ford and for releasing it as open source hardware and software. The high-level architecture of OpenXC will be detailed (Android apps, an DIY-friendly vehicle interface and a standardized data format) and some basic vehicle data concepts explained (like the CAN bus and read vs. write capabilities). The
| var result = msg.payload; | |
| try { | |
| msg.topic="ccost/" + result.msg.sensor; | |
| msg.payload = (result.msg.ch1[0].watts[0])*1; | |
| return msg; | |
| } catch( e ) | |
| { | |
| // console.log("Looks like history data"); | |
| } | |
| return null; |
| # Towards a Taxonomy of Twitter Bots | |
| ## Intro | |
| - towards a definition - autonomous non-human agents on Twitter | |
| - critical thinking - MECE, rabbit rule, holding hands | |
| - patterns of behaviour, rather than content | |
| - Twitter largely a textual medium | |
| - crossover between two broadest categories (automated/event-driven), but largely one or the other (maybe?) | |
| - some bots will exhibit both behaviours (active/reactive), but tend to favour one (most commonly, tweeters will also exhibit conversationalist behaviours) |
| // Morse Code - USE MQTT! | |
| // based on a project from 30 Arduino Projects for the Evil Genius | |
| // thanks to Simon Monk | |
| // Andy Piper @andypiper, Nov 2013 | |
| // Dj @codepope, Dec 2013 (Putting it all in a for loop - Just change the message | |
| char* message="use mqtt"; | |
| int ledPin = 12; |