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
################## | |
#### pnLED.py #### | |
################## | |
from Pubnub import Pubnub | |
import RPi.GPIO as GPIO ## Import GPIO library | |
GPIO.setmode(GPIO.BOARD) ## Use board pin numbering | |
GPIO.setup(11, GPIO.OUT) ## Setup GPIO Pin 17 to OUT - Green |
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
<!-- Include the PubNub Library --> | |
<script src="https://cdn.pubnub.com/pubnub.min.js"></script> | |
<!-- Instantiate PubNub --> | |
<script type="text/javascript"> | |
var PUBNUB_demo = PUBNUB.init({ | |
publish_key: 'demo', | |
subscribe_key: 'demo' | |
}); |
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
html> | |
<head> | |
<style> | |
.applewrap { | |
width: 50%; | |
display: block; | |
height: 250px; | |
background: white; | |
border: 1px solid; | |
border-color: #e5e5e5 #dbdbdb #d2d2d2; |
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
############################################################################# | |
# Documentation for python-sunlight: | |
# http://python-sunlight.readthedocs.org/en/latest/ | |
# | |
# Command line to install python-sunlight: | |
# (Note need 'sudo' because that lets you run as admin to do install!) | |
# sudo pip install sunlight | |
# | |
# Command Line: python SunlightFoundation.py | |
############################################################################# |
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
################################################## | |
# Crunchbase API | |
# http://developer.crunchbase.com/docs | |
# Other References: | |
# http://docs.python-requests.org/en/latest/user/quickstart/#json-response-content | |
# Command Line: python FundingInfo.py | |
################################################## | |