First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
import 'package:flutter/material.dart'; | |
import 'dart:io'; | |
import 'dart:async'; | |
import 'dart:core'; | |
void main() async { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
var mqtt = require('mqtt'); | |
// Don't forget to update accessToken constant with your device access token | |
const thingsboardHost = "demo.thingsboard.io"; | |
const accessToken = "YOUR_DEVICE_ACCESS_TOKEN"; | |
const minTemperature = 17.5, maxTemperature = 30, minHumidity = 12, maxHumidity = 90; | |
// Initialization of temperature and humidity data with random values | |
var data = { | |
temperature: minTemperature + (maxTemperature - minTemperature) * Math.random() , |
# Copyright 2014 Google Inc. All Rights Reserved. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
""" | |
Beam decoder for tensorflow | |
Sample usage: | |
``` | |
from tf_beam_decoder import beam_decoder | |
decoded_sparse, decoded_logprobs = beam_decoder( | |
cell=cell, |
#!/bin/bash | |
### | |
# chkconfig: 345 20 80 | |
# description: Vert.x application service script | |
# processname: java | |
# | |
# Installation (CentOS): | |
# copy file to /etc/init.d | |
# chmod +x /etc/init.d/my-vertx-application |
Warning This is SEVERELY outdated, the current jupyter version is > 6.X, please refer to your current jupyter notebook installation!
Disclaimer : I just copied those shortcuts from Jupyter Menú
> Help
> Keyboard Shortcuts
, I didn't wrote them myself.
Check your current shortcuts in your Help, shortcuts coule have been modified by extensions or your past self.
""" | |
Functions to create network diagrams from a list of Layers. | |
Examples: | |
Draw a minimal diagram to a pdf file: | |
layers = lasagne.layers.get_all_layers(output_layer) | |
draw_to_file(layers, 'network.pdf', output_shape=False) | |
Draw a verbose diagram in an IPython notebook: |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
-- Max Jaderberg 4/9/13 | |
-- GPU Effectiveness test | |
require 'torch' | |
require 'sys' | |
require 'nn' | |
require 'xlua' | |
cmd = torch.CmdLine() | |
cmd:text() |