- Meteor是什么 & 优缺点
- 哪些公司在用 meteor?
- Meteor基础视频课程
- 麦子学院Kevin视频教程:node.js上最新HTML5开发框架-Meteor
This file contains 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
# Jiyang.Liu | |
# 2012.7.22 | |
src = $(wildcard *.c) | |
target = $(patsubst %.c, %, $(src)) | |
CC = gcc | |
LDFLAGS = -Wall -g | |
all: $(target) |
This file contains 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
#!/usr/bin/env python | |
"""This command use to import date from 2012-01-01 to your current date into a file with format csv/excel. | |
""" | |
import csv | |
import sys | |
import getopt | |
import datetime | |
from tempfile import TemporaryFile | |
from xlwt import Workbook |
The normal controller/view flow is to display a view template corresponding to the current controller action, but sometimes we want to change that. We use render
in a controller when we want to respond within the current request, and redirect_to
when we want to spawn a new request.
The render
method is very overloaded in Rails. Most developers encounter it within the view template, using render :partial => 'form'
or render @post.comments
, but here we'll focus on usage within the controller.
- Nathan Weizenbaum » @nex3
This file contains 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
"""""""""""""""""""""""""""""""""""""""" | |
" | |
" for macbook | |
" | |
"""""""""""""""""""""""""""""""""""""""" | |
syntax on | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => General Abbrevs |
This file contains 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
1. 保证可以使用fcitx | |
在/etc/enviroment中输入(你看你少了什么,就添加什么就是了): | |
LANG="en_US.UTF-8" | |
LANGUAGE="en_US:en_GB:en" | |
LANG="en_US.UTF-8" | |
LANGUAGE="en_US:en_GB:en" | |
LC_CTYPE="zh_CN.UTF-8" | |
XMODIFIERS="@im=fcitx" | |
这样你就可以在英文界面上使用fcitx了; |
This file contains 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
[user] | |
name = Liu Jiyang | |
email = 2411mail@gmail.com | |
[core] | |
editor = vim | |
[push] | |
default = current | |
[branch] | |
autosetuprebase = always | |
[color] |
This file contains 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
################################# | |
# | |
# 本清单基于 ubuntu 12.04, | |
# 下个 ubuntu 的 LTS | |
# 发出来后,会相应更新这里的内容。我的目标是按步执行可以零错误完成安装。 | |
# 注意,本文件只是一个清单,不是一个可以安全执行的脚本 | |
# | |
################################# | |
# create a linode,login as root, and create a common user for all the tasks |