Skip to content

Instantly share code, notes, and snippets.

2013-12-25

##本周计划

  • 学生自己过一遍w3c文档中的 html & css 部分,每人挑选两个手机应用界面来练习
  • 进行一次网络会议,讲解css中常用部分,介绍盒子模型
  • 学生自己过一遍w3c文档中 javascript 部分
  • 周日实验室培训,主要内容:
    • css练习评析
    • js动态语言特性
###line:80 数字字符串转成数字的方便方式
//in chrome
+'0.123'//0.123
+'0.123e4'//1230
+void 0//NaN
+null//0
+false//0
+true//1
+NaN//NaN
@zhenyong
zhenyong / javascript_resources.md
Created January 28, 2014 14:11 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@zhenyong
zhenyong / css_resources.md
Created January 28, 2014 14:11 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@zhenyong
zhenyong / python_resources.md
Created January 28, 2014 14:11 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@zhenyong
zhenyong / lib_collect.md
Last active May 30, 2016 07:37
收集前端工具库

web

名称 功能
bootstrap-wysiwyg 富编辑器
almond 小型AMD
backbone.picky 是的模型有些selectable的属性
ExplorerCanvas <=IE8可以用canvas的api
fullcalendar jquery的月日历面板控件,多种视图,类似手机的日历
jquery.easy-pie-chart jquery的pie图
spin loading动态图
@zhenyong
zhenyong / walksync.js
Created July 4, 2017 02:57 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@zhenyong
zhenyong / gen-eslintrc-for-webstorm.js
Last active July 25, 2017 04:16
Generate eslintrc (json) file since only .eslintrc files are supported (import formatter). And only rules present in the .eslintrc file. Extends are not supported.
const cp = require('child_process');
const fs = require('fs');
cp.exec('eslint --print-config ./eslintrc.js', {}, (err, stdout, stderr) => {
if (stderr) {
console.log(stderr);
return;
}
fs.writeFileSync('./.eslintrc', stdout);
});