- 博客(9)
- 收藏
- 关注
原创 自用R语言脚本备忘
转岗了,不用js了,开始用R了。。。下面是常用的脚本,做个备忘。。。 library(ggplot2) library(scales) library(grid) #require(matlab) csv = function(file, target="clipboard", key="key", value="value"){ m
2014-12-09 10:40:07
568
原创 一个改编于swipe.js的滑动(需jLazy.js支持)
var slideData = { id:"slide_images", container:"slide_container", w:320, h:80, amt:3, defaultIndex:0, speed:300, animate:1, direction:1, delay:5
2014-04-22 15:21:04
609
原创 【备忘】小于一像素的border
background:url('../images/border-less-than-one.png') repeat-x; background-size:auto 10px; background-position: 0 bottom; background-color:#ffffff;
2014-04-11 10:49:36
668
原创 一个日常工作中使用的自制js微框架
/* * jLazy * * A tiny 'framework' for js development under 'lazy' purpose. * * Developed and maintained by Tie Li. * * i@litie.name * */ //prototype of node object fun
2014-03-06 15:25:27
691
转载 理解lua中Weak Table
[转自 http://blog.csdn.net/flowshell/article/details/6234233 ] 如果你对lus语言的中weak table不明白的话,那这篇文章应该对你有帮助。 所有脚本语言几乎都有垃圾回收器(GC),当然lua也有。 不明白GC不要紧,下面让我来解释: 这一切要先从现代编程语言的鼻祖 — C语言开始。 如
2013-12-06 09:02:12
471
原创 lua on cocos2dx 札记(三
一个四项动画精灵类。。。 -- a_Sprite: animated sprite -- START a_Sprite = class("a_Sprite", function(spriteFrame) --init with texture? return CCSprite:createWithSpriteFrame(spriteFrame)
2013-12-04 18:11:05
559
原创 lua on cocos2dx 札记(二)
封装了一个动画精灵类。。。需要extern.lua支持 function debug(...) CCLuaLog("debug() start @"..os.date()) --CCLuaLog("debug() msg: "..string.format(...)) CCLuaLog("debug() msg: "..tostring(...))
2013-11-29 17:05:52
639
原创 lua on cocos2dx 札记(一)
引子 2013年末的清闲日子里,偶拾lua,窥得coco2ds,勾起早年j2me游戏开发回忆。。。 兵器谱: 1、ubuntu:winxp上的各种安全工具搞得人心烦,以至于我这个做产品的非php人员也换装ubuntu裸奔。。。 2、jdk:老朋友了,刚接触时还是1.2,依稀记得还做过一个1.0的项目迁移;事过境迁,现在捡起了1.7。。。 3、adk + ndk + cocos2d
2013-11-28 14:31:49
1134
原创 ubuntu 13.10编译tolua++
刚开始玩这个“小”玩意。。。碰了N鼻子灰。。。在此记录一下,备忘。。。 ubuntu下可以装不同版本的lua,即使装了5.2,仍然不影响5.1的安装。。。 以下省略通用的安装部分。。。 由于ubuntu下用apt-get安装的lua的 .h和.a文件不在一个目录,编译的时候会有麻烦,因此,需要把他们集合起来。。。 1、首先确保安装了lua5.1 和 lua5
2013-11-07 13:05:00
843
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人