Skip to content

Instantly share code, notes, and snippets.

View zhongzhu's full-sized avatar

Zhu Zhong (钟柱) zhongzhu

  • Wind River
  • China
View GitHub Profile
@zhongzhu
zhongzhu / javascript_subclass
Created July 8, 2013 03:27
how to use js to do inheritance of OOD
function Person(name)
{
this.name = name;
}
Person.prototype.toString = function() {
return "Person(name: " + this.name + ")";
}
function Employee(name, salary)
@zhongzhu
zhongzhu / easytest_language_foreach
Created May 2, 2013 08:00
show how to use "foreach" in EasyTest
eval $arr<<"a"<<"b"<<"c"
foreach $str, $arr
print $str
@zhongzhu
zhongzhu / easytest_language_for
Created May 2, 2013 07:33
show how to use "for" in EasyTest
eval $i=0
eval $max=10
for $i=0; $i<$max; $i++
print $i