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
[ | |
{ | |
"_id": "4e7a4ac231b6f5345edc53d5", | |
"at": 1316637288000, | |
"favicon": "http://puppetlabs.com/favicon.ico", | |
"link": "http://puppetlabs.com/blog/puppetconf-as-a-service-pcaas-sign-up-for-the-free-live-stream/", | |
"text": "PuppetConf is but two days away—one and half, if you count our pre-conference social tomorrow night. If you aren’t able to join us in person for the cloud panel, keynote, or any of our fantastic talks, then we’ve got some fantastic news: We are offering free streaming of the entire conference! That’s right, enjoy the entire conference from the comfort of your home or office, and participate in real-time conversations with other conference attendees through our #puppetconf Tweet stream. Almost just like being there! Sign up for Streaming Video Check for your favorite talks on the schedule, and sign up to receive the link to the stream when it goes live. We’ll send a single reminder email on Thursday and Friday morning.", | |
"title": "PuppetConf as a Service (PCaaS): Sign up for the Free Live Stream |
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
# See http://pre-commit.com for more information | |
# See http://pre-commit.com/hooks.html for more hooks | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
sha: v0.9.2 | |
hooks: | |
- id: trailing-whitespace | |
- id: end-of-file-fixer | |
- id: check-yaml | |
- id: check-json |
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 <OneWire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_TSL2561_U.h> | |
int DS18S20_Pin = 3; | |
OneWire ds(DS18S20_Pin); | |
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345); | |
void setup() { |
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 <Servo.h> | |
Servo myservo; | |
String inputString = ""; // a string to hold incoming data | |
boolean stringComplete = false; // whether the string is complete | |
void setup() | |
{ |
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
>>> s = MaplinRobot() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "maplinrobot.py", line 26, in __init__ | |
self.rctl = usb.core.find(idVendor=self.usb_vendor_id, idProduct=self.usb_prod_id) #Object to talk to the robot | |
File "/Library/Python/2.7/site-packages/usb/core.py", line 1263, in find | |
raise NoBackendError('No backend available') | |
usb.core.NoBackendError: No backend available | |
# fix |
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 | |
import requests | |
from datetime import datetime, timedelta | |
import serial | |
from time import sleep | |
from copy import deepcopy | |
DEVICE_PATH = "/dev/tty.usbmodem1421" | |
token = "YOUR_TOKEN" |
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
// NeoPixel Ring simple sketch (c) 2013 Shae Erisson | |
// released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
// Which pin on the Arduino is connected to the NeoPixels? | |
// On a Trinket or Gemma we suggest changing this to 1 |
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 <DHT.h> | |
#include <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_BMP085.h> | |
#define DHTPIN 2 | |
#define DHTTYPE DHT22 | |
DHT dht(DHTPIN, DHTTYPE); | |
int LDR_Pin = A0; |
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/python | |
import collections | |
from datetime import datetime | |
import json | |
from pySMART import Device | |
from traceback import print_exc | |
try: | |
import redis |
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 | |
import requests | |
from datetime import datetime, timedelta | |
import serial | |
from time import sleep | |
DEVICE_PATH = "/dev/YOUR_DEVICE" | |
token = "YOUR TOKEN" | |
subject_id = "SERVICE ID FROM Server Density" |
NewerOlder