-
Create a Visual Embedded Rust program in a web browser and deploy it with Apache Mynewt to STM32 Blue Pill
-
Integrate with Mynewt drivers for CoAP, ESP8266, nRF24L01, NB-IoT
-
Deliver sensor data to an IoT cloud like thethings.io
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 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
extension ScaffoldUtils on Scaffold { | |
Widget asResponsive({ | |
double tabletBp = 720, | |
double desktopBp = 1200, | |
}) { | |
return LayoutBuilder( | |
builder: (_, dimens) { |
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
pub trait HKT<'r, B> { | |
type A; // Current type | |
type MA; // Type A swapped with B | |
type MB; // Current Container type | |
} | |
#[macro_export] | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<'r, B: 'r, C> HKT<'r, C> for $t<B> { |
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
trait HKT<N> { | |
type C; | |
type NC; | |
} | |
trait Functor<N>: HKT<N> { | |
fn fmap<F: Fn(&Self::C) -> N>(&self, f: F) -> Self::NC; | |
} | |
impl<C, N> HKT<N> for Option<C> { |
- 对机器学习有基本的理解,最好的材料是Andrew Ng在coursera上的公开课程,看过教程能让你对机器学习有基本的认识,完成课程中的任务会让你对机器学习有更深入的理解
- 接下来需要培养对神经网络的感觉,实现一个神经网络,并利用它做点事情
- 理解神经网络的原理很重要,但简单的神经网络并不足以解决最有趣的问题。神经网络的变体-卷积神经网络(CNN)非常适合于图像识别类的任务,斯坦福大学的有关资料如下:CS231n 用于图像识别的卷积神经网络(笔记)和课件。另外两个参考资料如下CNN 参考资料1和CNN 参考资料1
- 接下来需要在自己的电脑上运行CNN
- Digit提供了少量算法,比如用于字符识别的lenet算法和用于图像分类的Googlenet算法。要想运行这些算法,需要下载相应的数据集lenet数据集和[Googlenet数据集
- ios:
使用公钥私钥来登陆而不是账号密码,公钥私钥需要简单的在本地生成一下。Github 的生成 SSH 公钥私钥的教程:Generating SSH keys
可能需要使用 -i
参数选择一下本地的私钥,一个示例的 ssh 连接如下:
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
from flask import Flask | |
from flask_mail import Mail, Message | |
app = Flask(__name__) | |
app.config.update( | |
#EMAIL SETTINGS | |
MAIL_SERVER='smtp.qq.com', | |
MAIL_PORT=465, | |
MAIL_USE_SSL=True, |
NewerOlder