$ docker pull gaiterjones/darwin-streaming
$ docker run -it -p 1220:1220 -p 8000:8000 -p 7070:7070 -p 8001:8001 -p 554:554 gaiterjones/darwin-streaming
| { | |
| "application": { | |
| "dpctl": "", | |
| "ipBase": "10.0.0.0/8", | |
| "netflow": { | |
| "nflowAddId": "0", | |
| "nflowTarget": "", | |
| "nflowTimeout": "600" | |
| }, | |
| "openFlowVersions": { |
| from pyretic.lib.corelib import * | |
| from pyretic.lib.std import * | |
| from pyretic.lib.query import * | |
| from pyretic.modules.mac_learner import * | |
| from sys import maxint | |
| ################################################ | |
| # Translate from | |
| # client -> public address : client -> servers | |
| # server -> client : public address -> client | |
| ################################################ |
$ docker pull gaiterjones/darwin-streaming
$ docker run -it -p 1220:1220 -p 8000:8000 -p 7070:7070 -p 8001:8001 -p 554:554 gaiterjones/darwin-streaming
| class CaisarCipher: | |
| def __init__(self, plain): | |
| self.plain = plain | |
| def encode(self, key): | |
| cipher = '' | |
| for c in self.plain: | |
| decimalstring = self.hexToDecimal(self.charToHex (c)) | |
| decimalstring = ( decimalstring + key ) % 256 | |
| cipher = cipher + self.hexToChar(self.decimalToHex(decimalstring)) |
| alfabet = "abcdefghijklmnopqrstuvwxyz" | |
| alfabet = [alfabet, upper(alfabet), ' '] | |
| plain = 'Aku makan es krim' | |
| plainafterdecode = '' | |
| key = 33 | |
| cipher = '' | |
| modulus = length(alfabet) | |
| for plainsequence = 1:length(plain) | |
| for alfabetsequence = 1:length(alfabet) |
| a |
| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
| /* | |
| * Copyright (c) 2009 IITP RAS | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License version 2 as | |
| * published by the Free Software Foundation; | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| var sensorLib = require("node-dht-sensor"); | |
| var temp = { | |
| read: function() { | |
| var a = sensorLib.read(11,4); | |
| return a.temperature.toFixed(1); | |
| } | |
| }; | |
| var hum = { | |
| read: function() { | |
| var b = sensorLib.read(11,4); |
| import json | |
| import pandas as pd | |
| import sys | |
| import glob, os | |
| def jsonToDataframe(file): | |
| classify = file.replace(".json","") | |
| print("Reading", file) | |
| with open(file, 'r') as f: | |
| json_buff = json.load(f) |