Skip to content

Instantly share code, notes, and snippets.

@luckyyang
luckyyang / _.md
Created December 21, 2013 23:18
stacks
## 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;
name value
A .08167
B .01492
C .02782
D .04253
E .12702
F .02288
G .02015
H .06094
I .06966
@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>
@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 / min_setup
Last active August 29, 2015 14:14
minimal setup for rails4/passenger/nginx development
#################################
#
# 本清单基于 ubuntu 12.04,
# 下个 ubuntu 的 LTS
# 发出来后,会相应更新这里的内容。我的目标是按步执行可以零错误完成安装。
# 注意,本文件只是一个清单,不是一个可以安全执行的脚本
#
#################################
##################################
@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 / meteor_camp_learning_path.md
Last active October 27, 2015 09:03
Meteor 项目孵化营 learning path
@luckyyang
luckyyang / meteor_build_ios_app.md
Created April 23, 2015 15:13
IOS 如何打包和发布

在项目文件夹下执行 meteor build ~/Desktop/iosApp --server http://xx.meteor.com

http://xx.meteor.com 指服务器地址的域名

执行后会在桌面生成一个iosApp的文件夹,内有个ios文件夹存放着生成的项目,然后用xcode打开 ,其他操作和 原生项目操作一样