自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 OpenWrt编译并添加自己写的应用-基于MT7620a

创建应用所需的目录 在trunk/package/ramips/applications/创建helloworld目录 (也可以在trunk/package/目录下创建helloworld目录)目录内的文件结构其中最外层Makefile的内容############################################### OpenWrt Makefile for hello

2016-01-22 18:13:43 1145

翻译 迭代器 table

local iteratorfunction allwords () local state = {line = io.read(), pos = 1} return iterator, stateendfunction iterator (state) while state.line do local s, e = string.find(state.line, "%w+"

2015-12-09 17:12:46 323

翻译 lua 链表 迭代器

local function getnext (list, node) if not node then return list else return node.next endendfunction traverse(list) return getnext, list, nilendlist = nilfor line in io.lines() do if

2015-12-09 16:43:47 328

翻译 读入一行数据,按

function allword () local line = io.read() local pos = 1 return function () while line do local s,e = string.find(line, "%w+", pos) if s then pos = e + 1 return string.sub(line, s,

2015-12-08 16:55:15 284

转载 openwrt 控制gpio

openwrt wiki gpioopenwrt 控制 gpio 通过 shell,lua实现

2015-11-30 10:43:38 1797

翻译 阶乘

--defines a factorial functionfunction fact (n) if n == 0 then return 1 else return n * fact(n - 1) endendprint("enter a number:")a = io.read("*n")print(fact(a))

2015-11-24 10:45:06 275

转载 opkg 安装错误,not found returned status 127

echo -e "\ndefault_postinst() {\n\treturn 0\n}\ndefault_prerm() {\n\treturn 0\n}" >> /lib/functions.sh

2015-11-20 11:03:21 2416

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除