Skip to content

Instantly share code, notes, and snippets.

@luckyyang
luckyyang / meteor_camp_learning_path.md
Last active October 27, 2015 09:03
Meteor 项目孵化营 learning path
@luckyyang
luckyyang / what_meteor_can_do.md
Last active August 29, 2015 14:19
Meteor 可以做哪些功能
  1. 页面实时刷新:meteor 自带功能
  2. media(拍照, 语音, 录像):使用 cordova API
  3. js 集成(环信,地图,高德,支付): 使用相关服务的 js API,和 meteor 无关
  4. 缓存(类似微信朋友圈,图片第一次加载之后,再次进入朋友圈,就不用再次从 server 端下载了):浏览器自身就带缓存功能,不用做额外的编程工作,和 meteor 无关
@luckyyang
luckyyang / min_setup
Last active August 29, 2015 14:14
minimal setup for rails4/passenger/nginx development
#################################
#
# 本清单基于 ubuntu 12.04,
# 下个 ubuntu 的 LTS
# 发出来后,会相应更新这里的内容。我的目标是按步执行可以零错误完成安装。
# 注意,本文件只是一个清单,不是一个可以安全执行的脚本
#
#################################
##################################
@luckyyang
luckyyang / mongo_backup.sh
Last active August 29, 2015 14:13
mongodb数据备份
#!/bin/bash
BACKUPDIR=/home/vagrant/database_backup
DATE=`date +%Y%m%d%H%M`
mongodump -d "maodou_io_development" -o $BACKUPDIR/$DATE
tar -czf $BACKUPDIR/$DATE.tar.gz $BACKUPDIR/$DATE
rm -rf $BACKUPDIR/$DATE
@luckyyang
luckyyang / html5_template
Last active August 29, 2015 14:07
A Generic HTML5 Template
from http://sixrevisions.com/html5/html5-template/
<!DOCTYPE html>
<!-- Set a lang="" attribute value for
the <html> tag for interoperability and accessibility
See other global attributes for the HTML tag:
READ: http://www.w3.org/TR/html-markup/global-attributes.html -->
<html>
<head>
name value
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
## FILL ##
fill Sets fill color of the shape.
fill-opacity Sets fill opacity of the shape.
fill-rule Sets fill rule of the shape.
** example **
fill: #ccc;
fill: rgba(0,0,0,.5);
fill: red;
@luckyyang
luckyyang / _.md
Created December 21, 2013 23:18
stacks
@luckyyang
luckyyang / d3.md
Created November 8, 2013 01:59 — forked from tmcw/d3.md

This is a more wordy, narrative accompaniment to my pretty bare presentation about d3 that I gave to the jQuery DC Meetup.

What is d3?

  • Not a chart library (though you can make charts with it)
  • Not a map library (though you can make maps with it)

Which is to say, d3 can be used for building things, but the 'atomic parts' are lower-level than bar graphs or projections or so on. This is a powerful fact. It also means that d3 is a good basis for simple interfaces, like Vega.js, that make its power accessible in other ways.

  • Not a compatibility layer (it doesn't work with bad browsers)