Skip to content

Instantly share code, notes, and snippets.

View jiangtao's full-sized avatar
:octocat:
但行好事,也问前程。Up!Up!Up!

jiangtao

:octocat:
但行好事,也问前程。Up!Up!Up!
View GitHub Profile
@jiangtao
jiangtao / learn.coffee
Last active August 29, 2015 14:09
coffee script 学习笔记
# 变量
number = 2
str = '4'
number = 1 if str
# 变量 数组和objecet处理
[a, b, c] = [1, 2, 3]
{key1, key2} = {key1: 'a', key2: 'b'}
# 方法
@jiangtao
jiangtao / app.js
Created March 28, 2014 07:44 — forked from nachiket-p/app.js
if (Meteor.is_client) {
var userName = "PatelNachiket";
Template.hello.greeting = function () {
return "Fetch recent tweets from Twitter stream of user : " ;
};
Template.hello.events = {
'click #fetchButton' : function () {
console.log("Recent tweets from stream!");
$('#fetchButton').attr('disabled','true').val('loading...');