`
文章列表
一个简单的aio uart 实现 引用 import contextlib import copy import logging import time from typing import Dict, Union import asyncio import aioserial import queue class HubSerial():     """     Custom serial class     Attributes:         port_config (dict[str, Any]): port configs     " ...
新功能: 在原有的多Yaml文件合并的基础上提供了跨文件的应用功能, 具体如下   __load__: another.yml: ['another_node'] my_node: __add__: - another_node 以上的代码可以实现yml中同样的如下功能 another_node: &another_node some_info: ... b: *another_node      安装说明: gem install yml_merger   使用说明和代码 http://hakehua ...
<!--StartFragment -->  ips: 所有IP的总文件夹下面有三个子文件夹 cpld_io: 我们支持的CPLD开发板的io定义表 ip: 我们支持的所有的IP模块 template:我们支持的CPLD编译器的工程模板 output:生成的文件的目录 pictures: 支持的CPLD开发板图片 project_config: 不同的CPLD编译器工程的管教配置文件 quartus-ii: 支持的CPLD编译器的工程目录, 简单做法是将output的内容生成后拷贝的top里面就是给新的CPLD工程了。 reference: 支持的CPLD的电路 ...
PYCPLD的IP 设计规范   1. 如何将IP做成python 模块 IP开发者需要提供以下文件: __init__.py 这个文件命名是python定义本地文件包的标准做法,在本文件中内容如下 __init__.py from enc_partial import get_ip_namefrom enc_partial import ENC  enc_partial 是这个文件包的名字 get_ip_name 是这个IP的程序名函数 ENC 是这个IP的python 类的名字   2. <ip name>.v IP的具体实现verilo ...
代码 https://github.com/hakehuang/smart_cal smart_cal make exe: ocra --windows smart_cal_fx.rb try the windows binary in release_exe folder ruby way ruby ./smart_cal_fx.rb      
给大家推荐一个用ruby写的控制YML文件的工具   https://github.com/hakehuang/yml_merger   可以用这个工具来简单实现一个只读的本地文件数据库。   gem install yam_merger gem install deep_merge   yml_merger This is a tool that helps to organize the YML in different files. source code install gem install yml_merger gem install deep_ ...
  MbedOS 是一个新的OS概念, 我认为其代表特点有两个:   1. 堆栈共用。 2. 事件驱动。   下面详细分析一下:   其他的OS通常会给系统两种,一个给内核,一个给用户。或者一个给系统,一个给任务(RTOS). 这样带来一种需求就是如何合理的分配内存给这两个堆栈,非实时系统通常是动态分配,比如Linux是先把内存全给内核,然后再在内核的堆中分配空间给用户进程(写时分配)。参考以下链接 http://www.cnblogs.com/clover-toeic/p/3754433.html http://www.programgo.com/article/131 ...
breadcrumb http://stackoverflow.com/questions/555669/easy-breadcrumbs-for-restful-rails-application bootstrap https://github.com/anjlab/bootstrap-rails memcached http://nubyonrails.com/articles/memcached-basics-for-rails
对于rails 的异步处理有二种解决方案: 1. Rake 任务 2. 消息队列 https://github.com/starling/starling.git https://github.com/purzelrakete/workling.git perform analysis tool gem request-log-analyzer
install mail server sudo apt-get install postfix sudo apt-get install heirloom-mailx http://wiki.ubuntu.org.cn/PostfixBasicSetupHowto * Action Mailer Configuration As Action Mailer now uses the Mail gem, this becomes as simple as adding to your config/environments/env.rb file: config.action_mai ...
最近玩ROR了,以前接触过perl/PHP,感觉web前端的编程是需要很系统的设计,规划,编码和测试,尤其是当java大行其道的年代,但有了rails, 加上ruby, rest/dry, 这些使个人开发大型网络系统前端成为可能,即使包括后台的数据库,云计算,也不是完全没有机会.好,开始吧... #release notes http://railsapps.github.com/installing-rails-3-1.html enabled featues: ubuntu + Apache2 + passenger2 nobstrusive Javascript/AJAX devi ...
Global site tag (gtag.js) - Google Analytics