You can find the extension at: https://chrome.google.com/webstore/detail/my-new-tab/gpneodfkmdkgoakeelnklgmcgohmdcpn
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
#define WIFI_SSID "your wifi SSID" | |
#define WIFI_PASS "your wifi password" | |
// this chunk of code can be copied straight from your IO account | |
#define IO_USERNAME "your IO username" | |
#define IO_KEY "your IO key" |
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
source 'https://rubygems.org' | |
gem 'mqtt' |
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
# take in piped data | |
f1 = '' | |
while line = gets | |
f1 << line.strip | |
end | |
# valid Base64 characters, not including A (binary 0) | |
set = "RizBSj0CTk1DUl2EVm3FWn4GXo5HYp6IZq7Jar8Kbs9Lct+Mdu/NevOfwPgxQhy".chars | |
# pick a spot and change character, 840 roughly offsets JPG header data |
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
const Stream = require('stream') | |
class First extends Stream.Duplex { | |
constructor(config) { | |
super({ | |
objectMode: true | |
}); | |
this.cache = [] | |
} |
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> | |
<style> | |
html, body { height: 100%; } | |
body { | |
padding: 0; | |
background: #000; | |
} |
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
/************************* WiFi Access Point *********************************/ | |
#define WIFI_SSID "wifissid" // can't be longer than 32 characters! | |
#define WIFI_PASS "wifipass" | |
#define AIO_SERVER "io.adafruit.com" | |
#define AIO_SERVERPORT 1883 | |
// find at https://io.adafruit.com/settings | |
#define IO_USERNAME "your username" |
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
# worker | |
require 'thread' | |
queue = Queue.new | |
threads = [] | |
puts 'create workers' | |
10.times do |n| | |
threads << Thread.new(n) do |c| |
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
// Untztrument: https://www.adafruit.com/product/1929 | |
// Arduino 101: https://www.adafruit.com/product/3033 | |
// requires the Adafruit Trellis and Intel Curie (Arduino 101) board support, both available through the Arduino app. | |
#include <Wire.h> | |
#include <Adafruit_Trellis.h> | |
#include <CurieBLE.h> | |
BLEPeripheral blePeripheral; // BLE Peripheral Device (the board you're programming) | |
BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // BLE LED Service |
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
source 'https://rubygems.org' | |
gem 'mqtt' | |
# mac only! | |
gem 'av_capture' | |
# If you have trouble installing, this is what worked for me: | |
# | |
# $ brew install imagemagick@6 |