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 builder = require('botbuilder'); | |
var airq = require('./airq'); | |
var restify = require('restify'); | |
// Setup Restify Server | |
var server = restify.createServer(); | |
server.listen(process.env.port || process.env.PORT || 3978, function () { | |
console.log('%s listening to %s', server.name, server.url); | |
}); |
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 request=require('request'); | |
module.exports = function (ctx, cb) { | |
var shippable_secret=ctx.secrets.shippable; // API token for shippable API | |
var project=ctx.body.text; // project name passed as parameter to Slash command | |
// do not want to look up the project id in code; create dictionary here | |
var projects={ | |
realtime: '<Shippable project id>' |
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
int LED = D1; | |
int PR = A0; // photoresistor port | |
int BUTTON = D0; // button port | |
bool bright; | |
bool pressed; | |
bool playing; | |
int brightness = 0; // to store the current brightness | |
// Sonos stuff grabbed from Hover_particle |
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 #include statement was automatically added by the Particle IDE. | |
#include "Temboo/Temboo.h" | |
#include "TembooAccount.h" | |
int LED = D1; | |
int PR = A0; // photoresistor port | |
int BUTTON = D0; // button port | |
bool bright; | |
bool pressed; |
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
// Code requires a Sonos control API from https://github.com/jishi/node-sonos-http-api at | |
// SonosController IP address and port defined in request.port | |
// include HttpClient library in your Build project | |
#include "application.h" | |
#include "HttpClient/HttpClient.h" | |
int LED=D1; | |
int BUTTON = D0; | |
bool pressed; |
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": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"iotHubName": { | |
"type": "string", | |
"metadata": { | |
"description": "Name of the IoT Hub" | |
} | |
}, |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using NBitcoin; | |
using QBitNinja.Client; | |
using QBitNinja.Client.Models; | |
namespace ConsoleApplication1 |
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
0xd263b5346f7e6b4b9b7983366be56468982594f0 |
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 keras | |
from keras.applications.resnet50 import ResNet50 | |
from keras.applications.resnet50 import decode_predictions | |
from keras.preprocessing import image | |
from keras.applications.resnet50 import preprocess_input | |
from keras.preprocessing import image as image_utils | |
import numpy as np | |
import requests | |
import 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
"use strict"; | |
const pulumi = require("@pulumi/pulumi"); | |
const azure = require("@pulumi/azure"); | |
// Create an Azure Resource Group | |
const resourceGroup = new azure.core.ResourceGroup("resourceGroup", { | |
location: "WestEurope", | |
name: "aci-rg", | |
}); |
OlderNewer