Skip to content

Instantly share code, notes, and snippets.

<?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 January 27, 2016 06:43
Hybrid_APP_Notes

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

##IOS下click不正常冒泡

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

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

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

@chengmu
chengmu / API_history.md
Last active August 29, 2015 14:02
History

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

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

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

@chengmu
chengmu / deleteEnglishLine.js
Created April 19, 2014 07:20
用于删除译稿中英文的脚本
/**
* 用于删除翻译完的稿子中英文部分的脚本
*/
var resultFileName = 'r.txt';
var inputFileName = 'raw.txt';
var fs = require('fs');
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 December 31, 2015 19:49
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 December 18, 2013 02:06
Webfront_references
###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/)

#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

###兼容性

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.