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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"resourceName": { | |
"type": "String", | |
"metadata": { | |
"description": "The name of the Managed Cluster resource." | |
} | |
}, |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"resourceName": { | |
"type": "String", | |
"metadata": { | |
"description": "The name of the Managed Cluster resource." | |
} | |
}, |
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
var tessel = require('tessel'); | |
var https = require('https'); | |
// Upload parameters | |
var blob_host = 'tconeu.blob.core.windows.net'; | |
var blob_container = 'tessel-uploads'; | |
// Use any tool to generate a Shared Access Key e.g. Azure Management Studio | |
var blob_sas = '?sr=c&sv=2014-02-14&si=tessel&sig=xxxxRv%2xxxxUTd8xxxxMKc0xxxxi%2Fxxxxw6VsxxxxGjdJxxxx'; |
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 | |
# Send messages to an Azure Event Hub using the Apache Qpid Proton AMQP library. | |
import sys | |
import commands | |
from proton import * | |
# Event Hub address & credentials | |
# amqps://<keyname>:<key>@<namespace>.servicebus.windows.net/<eventhubname> |
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
#!/usr/bin/python | |
# Receive messages from an Azure Event Hub using the Apache Qpid Proton AMQP library. | |
import sys | |
import commands | |
import re | |
import uuid | |
import serial | |
from proton import * |
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
pragma solidity ^0.4.0; | |
contract Token { | |
mapping (address => uint) public balances; | |
function Token() { | |
balances[msg.sender] = 1000000; | |
} | |
function transfer(address _to, uint _amount) { |
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/local/bin/python3 | |
# Corrige le calendrier EducHorus en recopiant le champ DESCRIPTION | |
# dans le champ SUMMARY pour que les matières apparaissent dans les | |
# intitulés des évènements. | |
# Corrige également le fuseau horaire en Europe/Paris. | |
from dateutil.tz import gettz | |
from ics import Calendar |
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
/* | |
** This sample Arduino sketch uploads telemetry data to Azure Mobile Services | |
** See the full article here: http://hypernephelist.com/2014/07/11/arduino-uno-azure-mobile-services.html | |
** | |
** Thomas Conté @tomconte | |
*/ | |
#include <SPI.h> | |
#include <Ethernet.h> |