This file contains hidden or 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
| from __future__ import print_function | |
| import requests | |
| import threading | |
| import sys | |
| def eprint(*args, **kwargs): | |
| print(*args, file=sys.stderr, **kwargs) |
This file contains hidden or 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
| !function(fn) { | |
| window.$ = fn() | |
| }(function() { | |
| var $ = function(selector, context) { | |
| return new $.fn.init(selector, context) | |
| } | |
| // var |
This file contains hidden or 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 zhangxinxu(.com) 2012-12-27 | |
| * you can visit http://www.zhangxinxu.com/wordpress/?p=3855 to get more infomation | |
| * under MIT license | |
| */ | |
| var funParabola = function(element, target, options) { | |
| /* | |
| * 网页模拟现实需要一个比例尺 | |
| * 如果按照1像素就是1米来算,显然不合适,因为页面动不动就几百像素 | |
| * 页面上,我们放两个物体,200~800像素之间,我们可以映射为现实世界的2米到8米,也就是100:1 |
This file contains hidden or 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
| (注意:本教程前提为未安装gruntjs其他版本,如果安装请删除!) | |
| 1.安装node(在此不做介绍) | |
| 2.运行命令: npm install -g grunt-cli(-g为全局安装,可在任何目录运行) | |
| 3.进入项目目录,运行命令: npm install grunt --save-dev | |
| 4.查看是否安装成功 grunt -version | |
| 成功显示: grunt-cli v0.1.6 grunt v0.4.0 | |
| 5.新建package.json | |
| 如下: | |
| { | |
| "name": "51", |