Skip to content

Instantly share code, notes, and snippets.

View rohinip's full-sized avatar

Rohini rohinip

  • Square
  • San Francisco, CA
View GitHub Profile
@rohinip
rohinip / pnLED.py
Last active August 29, 2015 14:13
##################
#### 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
<!-- 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'
});
html>
<head>
<style>
.applewrap {
width: 50%;
display: block;
height: 250px;
background: white;
border: 1px solid;
border-color: #e5e5e5 #dbdbdb #d2d2d2;
#############################################################################
# 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
#############################################################################
@rohinip
rohinip / FundingInfo.py
Last active December 14, 2015 06:19
Returns how much money the company raised
##################################################
# 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
##################################################