11 2014 档案

摘要:/*The MIT License (MIT)Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated docu... 阅读全文
posted @ 2014-11-19 16:23 等风的猪 阅读(265) 评论(0) 推荐(0)
摘要:本文是作者之前做的一个开源项目,用Python及MQTT写的一个物联网网关,源码托管在github上。之前在国外社区发了一个贴,现在转到博客园来。We always face with some applications which needs to just send some data to a... 阅读全文
posted @ 2014-11-19 11:06 等风的猪 阅读(4174) 评论(4) 推荐(0)
摘要:鹅厂的笔试题其实也会经常选择一些经典问题,比如这个题就是出自Cracking the code interview.Q1.1: 打印一个文件的最后K行。这个问题其实是比较简单的,如果用C实现,相对会比较棘手,但是借助于C++的容器vector,不需要考虑动态内存分配,思路其实是非常清晰的。分析:常规... 阅读全文
posted @ 2014-11-12 14:34 等风的猪 阅读(734) 评论(0) 推荐(0)