-
ruby stuff
$ sudo aptitude install ruby $ sudo aptitude install rubygems $ sudo gem install json_pure $ sudo gem install rake $ sudo gem install rhc
-
fix the error file mime-types-1.18.gemspec then re-install all gems needed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for item in `ls -d */*.zip` | |
do | |
sub=`echo $item | cut -d / -f 1` | |
unzip $sub/*.zip -d $sub | |
unrar e $sub/*.rar $sub | |
rm -f $sub/*.zip $sub/*.rar | |
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By default, Underscore uses ERB-style template delimiters, change the | |
// following template settings to use alternative delimiters. | |
_.templateSettings = { | |
evaluate : /<%([\s\S]+?)%>/g, | |
interpolate : /<%=([\s\S]+?)%>/g, | |
escape : /<%-([\s\S]+?)%>/g | |
}; | |
// JavaScript micro-templating, similar to John Resig's implementation. | |
// Underscore templating handles arbitrary delimiters, preserves whitespace, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//copyright by lanxyou lanxyou[at]gmail.com | |
var lanxDB=function(dbname){ | |
var db=openDatabase(dbname,'1.0.0','',65536); | |
return{ | |
//返回数据库名 | |
getDBName:function(){ | |
return dbname; | |
}, | |
//初始化数据库,如果需要则创建表 | |
init:function(tableName,colums){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uuid | |
mac=uuid.UUID(int = uuid.getnode()).hex[-12:] | |
mac=":".join([mac[e:e+2] for e in range(0,11,2)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var player_manager=[ | |
"init_get_instance---''---true---noauto", | |
"case_create_delete---''---true---true", | |
"case_delete_after_playing---''---true---true", | |
"case_delete_while_playing---''---true---true", | |
"case_create_del_2_player_for_same_uri---''---true---true", | |
"case_create_del_2_player_for_diff_uri---''---true---true", | |
"case_max_player---''---true---true", | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testList = { | |
"player_manager":[ | |
"init_get_instance---''---true---noauto", | |
"case_create_delete---''---true---true", | |
"case_delete_after_playing---''---true---true", | |
"case_delete_while_playing---''---true---true", | |
"case_create_del_2_player_for_same_uri---''---true---true", | |
"case_create_del_2_player_for_diff_uri---''---true---true", | |
"case_max_player---''---true---true", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.bizmail_loginpanel{font-size:12px;width:300px;height:auto;border:1px solid #cccccc;background:#ffffff;} | |
.bizmail_LoginBox{padding:10px 15px;} | |
.bizmail_loginpanel h3{padding-bottom:5px;margin:0 0 5px 0;border-bottom:1px solid #cccccc;font-size:14px;} | |
.bizmail_loginpanel form{margin:0;padding:0;} | |
.bizmail_loginpanel input.text{font-size:12px;width:100px;height:20px;margin:0 2px;border:1px solid #C3C3C3;border-color:#7C7C7C #C3C3C3 #C3C3C3 #9A9A9A;} | |
.bizmail_loginpanel .bizmail_column{height:28px;} | |
.bizmail_loginpanel .bizmail_column label{display:block;float:left;width:30px;height:24px;line-height:24px;font-size:12px;} | |
.bizmail_loginpanel .bizmail_column .bizmail_inputArea{float:left;width:240px;} | |
.bizmail_loginpanel .bizmail_column span{font-size:12px;word-wrap:break-word;margin-left: 2px;line-height:200%;} |