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
{ | |
"name": "Private", | |
"engine": { | |
"BasicAuthority": { | |
"params": { | |
"gasLimitBoundDivisor": "0x0400", | |
"durationLimit": "0x0d", | |
"authorities" : ["133e5245e3e5ab3f65e73120b34cc29f0f7ba504"] | |
} | |
} |
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
# Install all pre-requisites for Ethereum Truffle | |
# Once complete, just open a new terminal window and run: | |
# npm install -g truffle | |
# If you want TestRPC: | |
# npm install -g testrpc | |
# N.B.: must be run as Administrator | |
# Also need to make sure the execution policy allows running scripts that aren't code-signed | |
# Set-ExecutionPolicy Unrestricted -Scope CurrentUser |
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
{ | |
"bindings": [ | |
{ | |
"name": "inputBlob", | |
"type": "blobTrigger", | |
"dataType": "binary", | |
"direction": "in", | |
"path": "images-in/{name}", | |
"connection": "function821251a1b074_STORAGE" | |
}, |
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
Verifying that +tomconte is my blockchain ID. https://onename.com/tomconte |
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
contract ApolloTrade { | |
uint public kWh_rate = 1000; | |
mapping (address => uint) energyAccount; | |
mapping (address => uint) coinAccount; | |
address public owner; | |
function ApolloTrade() { | |
owner = msg.sender; | |
} | |
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
mqtt publish -C mqtts \ | |
-h ciscohackhub.azure-devices.net -p 8883 \ | |
-i lora1 \ | |
-u 'ciscohackhub.azure-devices.net/lora1' \ | |
-P 'SharedAccessSignature sr=ciscohackhub.azure-devices.net%2fdevices%2flora1&sig=xxxx&se=1470823180' \ | |
-t 'devices/lora1/messages/events' \ | |
-m "hello mqtt" |
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 paho.mqtt.publish as publish | |
import paho.mqtt.client as mqtt | |
import ssl | |
auth = { | |
'username':"ciscohackhub.azure-devices.net/lora1", | |
'password':"SharedAccessSignature sr=ciscohackhub.azure-devices.net%2Fdevices%2Flora1&sig=xxxx&se=1463048772" | |
} |
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 azure.mgmt.compute | |
import azure.mgmt.compute.models | |
import azure.mgmt.network | |
import azure.mgmt.network.models | |
import azure.mgmt.resource | |
import azure.mgmt.resource.resources.models | |
import azure.mgmt.storage | |
import azure.mgmt.storage.models | |
from azure.common.credentials import ServicePrincipalCredentials | |
from azure.mgmt.resource.resources import ResourceManagementClient, ResourceManagementClientConfiguration |
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
package com.hypernephelist; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import com.philips.lighting.hue.sdk.utilities.PHUtilities; |
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 <Wire.h> | |
#include <Console.h> | |
#include "Adafruit_TCS34725.h" | |
/* Example code for the Adafruit TCS34725 breakout library */ | |
/* Connect SCL to analog 5 | |
Connect SDA to analog 4 | |
Connect VDD to 3.3V DC | |
Connect GROUND to common ground */ |