- Raspberry Pi - popular Linux SBCs, and now some really cool microcontrollers
- MESH — drop-in DIY IoT components
- Particle — Connected prototyping for wifi and cell-based products
- Hologram — similar to Particle
- Electric Imp — Connected device platform, with modules and services; part of Twilio now
Intel Edison — Tiny x86-class boarddead and buriedC.H.I.P — $9 computing platformseems to be gone now- bluz — BLE boards, compatible with Particle Cloud
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"> | |
<title></title> | |
<style media="screen"> | |
body { | |
font-size: 2em; | |
} |
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
void setup() { | |
// This code is run once, each time the Arduino is powered on or reset | |
} | |
void loop() { | |
// This code is run repeatedly, as fast as the Arduino can run it | |
} |
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
/* | |
* Cantina Entryway Interactive Diorama | |
* | |
* The diorama currently consists of two motor-driven elements, a pair of rotating | |
* arms. This sketch manages the movement of those arms. | |
* | |
* Each arm is attached to a DC gearmotor, which are driven via a SN745510 Dual | |
* H-bridge. This IC allows for reversing the motors. | |
* | |
* Copyright (C) 2015 Cantina. All rights reserved. |
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
// The pattern Crockford uses these days. | |
function constructor(spec) { | |
var that = other_constructor(spec), | |
member, | |
method = function () { | |
// spec, member, method | |
} | |
that.method = method; | |
return that; | |
} |
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
/* | |
Takes a file object, assumed to be an image, and scales it to fit within | |
a maximum width and height. | |
Returns the resulting scaled image as a dataURL. | |
*/ | |
function imageDownScaler(file, callback, maxWidth, maxHeight) { | |
var scaleDimensionsIfNeeded = function(w, h, maxW, maxH) { |
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"> | |
<title>Canvas Demo Knockout</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
color: #555; | |
} |
I'm learning Elixir. As usual, it's easier to learng a new language when there's some way to apply it. Building for the web is a decent application.
I'm collecting this list of Elixir Web frameworks for reference. Caveat: I haven't used these frameworks much or at all.
- Phoenix Framework
- Sugar Framework
- Weber — as of 9/13/15 has not had a commit in over a year, probably dead
- Dynamo Framework — retired and in maintenance mode. Do not use.
There are several ways to create firmware for the esp8266 serial wifi boards, including firmware written with Espressif SDK, Arduino, MicroPython and nodeMCU. nodeMCU is firmware that embeds a lua-based interpreter on the esp8266. This lets you write scripts directly on the device via the serial console, or saves scripts to be executed at boot.
- The nodeMCU API — the complete API available on-device
- esp8266 posts by Big Dan the Blogging Man — useful, real world stuff. Includes notes on how to set up the
init.lua
on an esp8266 so that in can be interrupted (a really useful thing when we don't want to have to reflash the board if something goes wrong with the startup script). - [Learn.Adafruit esp8266 posts](https://learn.adafruit.com/search?q=esp8266
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
-- startup logic | |
dofile("wifi.lua") | |
dofile("server.lua") |