Skip to content

Instantly share code, notes, and snippets.

chengmu chengmu

  • Beijing
Block or report user

Report or block chengmu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View one_light (SL).tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</ke<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>One Light</string>
@chengmu
chengmu / hybrid_app_notes.md
Last active Jan 27, 2016
Hybrid_APP_Notes
View hybrid_app_notes.md

以下为开发希望英语游戏的时候遇到的各种问题。

##IOS下click不正常冒泡

理论上click事件触发后会一直冒泡到document。但IOS上情况不一样。

在IOS上,click事件通常只会冒泡到body以下的节点;也就是说,不会触发body和document的click事件,把handler绑到这两者上面是没有用的。

只有在下列三种情况,click事件才会冒泡到body和document:

View API_history.md
View HTTP.md

#HTTP 记录HTTP标准的一些基础概念和参考。 ##基础

###TCP/IP __TCP/IP__指与互联网相关连的协议的集合。

####分层管理模型 好处 :分好层次,规划好每层之间接口后,方便维护和更改具体设计。

@chengmu
chengmu / deleteEnglishLine.js
Created Apr 19, 2014
用于删除译稿中英文的脚本
View deleteEnglishLine.js
/**
* 用于删除翻译完的稿子中英文部分的脚本
*/
var resultFileName = 'r.txt';
var inputFileName = 'raw.txt';
var fs = require('fs');
View sql_test.js
try {
if (!window.openDatabase) {
alert('not supported');
} else {
var shortName = 'mydatabase';
var version = '1.0';
var displayName = 'My Important Database';
var maxSize = 65536; // in bytes
var db = openDatabase(shortName, version, displayName, maxSize);
@chengmu
chengmu / Node RestFul API Basic Example.md
Last active Dec 31, 2015
Node Restful API Basic Example.md
View Node RestFul API Basic Example.md

Node Js in Action这本书的时候看到的一个用node http模块写的一个非常基础Restful API实现;附上使用curl命令的测试

####实现代码如下

var http = require('http'); 
var url = require('url');
var items = [];
var server = http.createServer(function(req, res){
  switch (req.method) {
@chengmu
chengmu / webfront_reference
Created Dec 18, 2013
Webfront_references
View webfront_reference
###webfront refferences
####Javascript Standard Relevent
+ [ECMA 3 pdf online](http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf)
+ [ECMA 5 中文手册online](http://www.ecmascript.cn/)
+ [es5-compat-table By Kangax](http://kangax.github.io/es5-compat-table/)
View GPU_Compositor_in_Chorme.markdown

#GPU & Composting in Blink and Chrome

summaried from Chromium documents and other resources

##Background

###Stacking Contexts Positioned elements(relative, absolute, fixed) with a z-index group of layers into a isolated layer

View bootstrap_dev_notes.markdown

###兼容性

3.0文档中有关浏览器的部分

Internet Explorer 8 and 9 are also supported, however, please be aware that many CSS3 properties—e.g., rounded corners and shadows—are not supported by IE8. The placeholder attribute is also not supported in either of these versions.

In addition, Internet Explorer 8 requires the use of respond.js to enable media query support.

You can’t perform that action at this time.