上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页
摘要: pythonbottle framework#!/usr/bin/python# -*- coding utf-8 -*-from bottle import route, run, debug, request#from cgi import escape@route('/hello', method='GET')def hello(): name = request.GET.get('name') if not name: name = "This guy's unknow :(" return 'Hell 阅读全文
posted @ 2013-06-24 17:45 spaceship9 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 采用的是mario register这个方法,然后,把一段 auto-increament 操作记录下来,然后playback 循环往复多次。就达到了,每行都递增的目的。我写的文字如下:vim 输入的数字自动递增。采用的macro register1. 输入一行以后,开始输入,进入macro register,qa2. 复制这一行yy3. 将游标移动到需要递增的数字上,例子里面的是24. 输入ctrl + a (使第二行的数字递增为2)5. 推出 macro registerqTIPS:如果要输入多少次playback (重放功能)语法[number]@a此例子中,是输入的10@a表现结果为自 阅读全文
posted @ 2013-06-23 22:04 spaceship9 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: 很有用的命令。很给力的说。http://vim.wikia.com/wiki/Making_a_list_of_numbers我在 html中需要增加新的标签的时候,就有用到过。原来的html代码为: <div class="edit_box" id="box1"> <label> <h1 class="title">Title1</h1> <p class="description">很好</p> </label> ... 阅读全文
posted @ 2013-06-21 01:05 spaceship9 阅读(900) 评论(0) 推荐(0) 编辑
摘要: how to make them work together?To make jQuery can request to different domain-name server, we use $.ajax and other things.For example here:Basic Ajax in jQuery: http://learn.jquery.com/ajax/jquery-ajax-methods/------------------------ the link above includes examples about how to manipulate json wit 阅读全文
posted @ 2013-06-13 19:58 spaceship9 阅读(577) 评论(0) 推荐(0) 编辑
摘要: the lastest Django framework is 1.5.1 while some references are still based on previous distributes.You could find the newest guideness here: https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/But you may need some old references since the lastest one can't cover most.Here is a 阅读全文
posted @ 2013-06-11 17:56 spaceship9 阅读(445) 评论(0) 推荐(0) 编辑
摘要: http://learn.jquery.com/javascript-101This is really helpful for people to learn JavaScript. JS has nothing to do with Java actually !And some JS data operationing methods are somehow very handy just like other programming languages such as PHP, python and etc.. You could find its awesome functional 阅读全文
posted @ 2013-06-10 19:17 spaceship9 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 这篇博客写的非常详细,非常详细了。http://www.eefocus.com/zhang700309/blog/12-11/288060_bcff3.html作者:宜昌城老张可以全部参考一下这篇文章。用了IIC协议后,可以用4根线来驱动显示屏了。可见IIC作用的重要性。 阅读全文
posted @ 2013-06-08 00:44 spaceship9 阅读(532) 评论(0) 推荐(0) 编辑
摘要: Hardware InspectionAnd it's datasheet and how to use it.You could download them here lb522 UI 模块开发资料:http://ishare.iask.sina.com.cn/f/37170296.htmlFor more information:http://item.taobao.com/item.htm?spm=a230r.1.14.24.YTYxz0&id=18891415760&_u=23b0km3106cThe Docs of the RFID/NFC module ( 阅读全文
posted @ 2013-06-02 22:21 spaceship9 阅读(443) 评论(0) 推荐(0) 编辑
摘要: ======================================================================== BYTE UNIX Benchmarks (Version 5.1.3) System: galaxy: GNU/Linux OS: GNU/Linux -- 3.2.0-23-generic -- #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 Machine: x86_64 (x86_64) Language: en_US.utf8 (charmap="UTF-8", collate=& 阅读全文
posted @ 2013-05-30 16:09 spaceship9 阅读(236) 评论(0) 推荐(0) 编辑
摘要: this is an easy implementation of "tuple to JSON"并不是所有的东西都能转换为一个JSON字符串。例如,方法就不能转换为JSON,不过所有的基本类型,比如数字、字符串和数组都可以转换。下面创建一个对象,然后把它转换为一个串。 1 function Movie(title, genre, rating, showtimes) { 2 this.title = title; 3 this.genre = genre; 4 this.rating = rating; 5 this.showtimes = showtimes... 阅读全文
posted @ 2013-05-29 02:18 spaceship9 阅读(511) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页