`
caiwb1990
  • 浏览: 308120 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

Week2 - Black beauty

Day1 17.6.12     shake one’s head     摇头     lead the way     带路,示范     to death     非常,极其     trust sth entirly to sb     trust sth entirly to sb     be alarmed in sth     对某事感到惊慌     deny doing sth     否认做某事;     never to allow sth     绝不允许某事     ought to be     应该 Day2 17.6.13 all ...
17.6.12 Everything comes to you at the right time. Be patient and trust the process 上天对一切都有最好的安排,你只需平心静气,不懈努力。 sunset      n.日落 persuasion  n.说服 flame       n.火焰,热情 pipe        n.管子,烟斗,笛 confusion ...
Day1 07.06.12
17.6.6 nail     n.钉子,爪,指甲  v.钉住 stroke   v.轻抚,打,击 briddle  n.马笼头 saddle   n.马鞍 strap    n.马带子 stable   n.马厩 stirrup  n.马磴子 spur     n.马刺 rein     n.缰绳 bit      n.马嚼子 harness  n.马具 collar   n.项圈 17.6.7 scary    Adj,胆小的 creature    n,人,动物,生物 alarm     n.警报,闹钟  vt.警告 cruel     adj,残忍的,残酷的 ruin      n.毁 ...

Week1 - Black beauty

Week1 --------- Day1 --------- live upon sth          靠sth谋生,依靠sth生活 I lived upon my mother's milk. 可译为: 我曾靠母亲的乳汁生活。 well off 处境好的 So was your father's side more well off? 可译为: 那么你父亲那边更富有一些了? stand still 一动不动 in time 及时 think a great deal of 对...有很高的评价, 同义:think highly of 反义:think poorly of ...

Note

欢娱常恨日短,情多每怕离别 高天上的那轮红日似乎看不惯人间多情男女的卿卿我我,又仿佛后面有追逐的夸父,急急往西山坠去。 无善无恶乃心之体、有善有恶乃意之动、知善知恶为有良知、为善去恶当在格物

lua时间工具

分享几个lua的时间的方法 function TimeTool:time(second_) if second_>=3600*24 then return string.format("%dd %02d:%02d:%02d", math.floor(second_/ (3600*24) ), math.floor((second_%(3600*24))/3600), math.floor((second_%3600)/60), math.floor(second_%60)) elseif second_>=3600 then retur ...

Draw Eye

一套初学者画眼睛的教程,非常实用

lua自定义log

分享个log,可以打印各种类型,包括嵌套table cc.exports.cwblog = function(...) if config.debug==1 then local text = "" local xn = 0 local function textLineT(xn) -- body for i=1,xn do text = text.."\t" end end local function printTable(i,v) -- body if ...
说一下SDK的更新, 因为Android SDK Manager直接提供了代理,我们可以直接使用,打开Android SDK Manager按照红框部分填写,然后关闭掉,重写打开就好了 如图:

Lua逻辑运算

    博客分类:
  • lua
Lua逻辑运算符 - and or not --and 与 or --返回的不是true 和 false --而是它的两个操作数 --[[ a and b a为false 返回a a or b a为true 返回a ]] print( 4 and 5) --> 5 print( nil and 13) --> nil print( false and 13) -->false print( 4 or 5) -->4 print(false or 5) -->5 一个很实用的技巧:如果 x 为 f ...

Lua类型

    博客分类:
  • lua
Lua 是动态类型语言,变量不要类型定义。 Lua 中有 8 个基本类型分别为:nil、boolean、 number、string、userdata、function、thread 和 table。函数 type 可以测试给定变量或者值 的类型。 print(type("Hello world)) --> string print(type(10*3)) -- ...

Lua基础

    博客分类:
  • lua
除了Lua外,还有很多类似的脚本语言,例如:Perl、Tcl、Ruby、Forth、Python。 虽然其他语言在某些方面与Lua有着共同的特色,但下面这些特征是Lua特有的: 1. 可扩展性。 Lua的扩展性非常卓越,以至于很多人把Lua用作搭建领域语言的 工具(注:比如游戏脚本)。Lua被设计为易于扩展的,可以通过Lua代码或者C 代码扩展,Lua的很多功能都是通过外部库来扩展的。Lua很容易与C/C++、java、 fortran、Smalltalk、Ada,以及其他语言接口。 2. 简单。 Lua本身简单,小巧;内容少但功能强大,这使得Lua易于学习,很容 易实现一些小的应用。他的 ...
大家可能遇到过用sort排序数组时,在win32和部分手机可能会不一致的情况。 这时把std::sort换成stable_sort就OK了。 这两个函数的原理都是快速排序,时间复杂度在所有排序中最低,为O(nlog2n) ; sort的应用; 1、可以传入两个参数;      sort(a,a+N) ,其中a是数组,a+N表示对a[0]至a[N-1]的N个数进行排序(默认从小到大排序); 2、传入三个参数;      sort(a,a+N,cmp),第三个参数是一个函数 ;      如果让函数从大到小排序,可以用如下算法实现;       bool cmp(int a,in ...

lua数组

    博客分类:
  • lua
数组定义 students = {"aa", "bb", "cc"} 数组的3种遍历方式: for i,v in ipairs(students) do print(i ..":" ..v ) end for k,v in pairs(students) do print(k ..":" ..v ) end for i = 1, #students do print(i.. ":".. s ...
Global site tag (gtag.js) - Google Analytics