PIXNET Logo登入

FLASHC

跳到主文

FLASHC It's time to starting forward. Do what you love. Love what you do.

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 9月 30 週一 201311:02
  • [angular js] Module ~ factory service provider

[angular js] Module ~ factory service provider

區分這三者的不同。
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(32)

  • 個人分類:CODE
▲top
  • 9月 05 週四 201310:57
  • [angularjs] angularjs with firebase



有了Firebase,打造應用程式好簡單 | WIRED.tw
http://wired.tw/2012/05/23/firebase/index.html

(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(30)

  • 個人分類:CODE
▲top
  • 3月 30 週六 201317:09
  • [ruby] `require': no such file to load -- bindata (LoadError)


pc_liao@tw-pcliao1[~/code/git-tools/parse_index_file]{17:06}$ ruby parse_index_file.rb ../.git/index
parse_index_file.rb:10:in `require': no such file to load -- bindata (LoadError)
from parse_index_file.rb:10
pc_liao@tw-pcliao1[~/code/git-tools/parse_index_file]{17:06}$ gem install bindata
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(55)

  • 個人分類:CODE
▲top
  • 3月 25 週一 201317:30
  • [java]guice injector.getInstance


import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;

final Config config1 = injector.getInstance(ConfigFactory.class).createNew(cluster, "t1",
new HashMap<String, String>() {{
put("prop1", "val1");
}});
config1.setVersionTag("1");
config1.persist();
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(11)

  • 個人分類:CODE
▲top
  • 3月 25 週一 201317:13
  • [java]LinkedHashMap

最近常常看這樣樣形式的 LinkedHashMap 用法
繼承 hashmap 以獲得 put method。
Methods inherited from class java.util.HashMap clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(120)

  • 個人分類:CODE
▲top
  • 1月 18 週五 201315:55
  • [java] Autoboxing


Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes.
For example, converting an int to an Integer, a double to a Double, and so on.
If the conversion goes the other way, this is called unboxing.
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(8)

  • 個人分類:CODE
▲top
  • 1月 18 週五 201315:52
  • [java]Type inference


Type inference is a Java compiler's ability to look at each method invocation and corresponding declaration to determine the type argument (or arguments) that make the invocation applicable
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(6)

  • 個人分類:CODE
▲top
  • 1月 18 週五 201314:06
  • [java] use the terms "type parameter" and "type argument"



Generic Types (The Java™ Tutorials > Learning the Java Language > Generics (Updated))
http://docs.oracle.com/javase/tutorial/java/generics/types.html

(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(6)

  • 個人分類:CODE
▲top
  • 10月 22 週一 201213:55
  • [java]@Override 限定 Override 父類方法 - Override


關於 @Override Annotation 的說明


限定 Override 父類方法 - Override
(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(43)

  • 個人分類:CODE
▲top
  • 6月 06 週三 201216:56
  • [js]jquery sort table by data attr 排序表格

[js]jquery sort table by data attr 排序表格

javascript 區段加入

$(document).ready(function() {
$('.link-sort-table1').click(function(e) {
var $sort = this;
var $table = $('#sort-table1');
var $rows = $('tbody > tr',$table);

$rows.sort(function(a, b){
var keyA = parseInt($(a).attr('data-price'));
//alert(keyA);
var keyB = parseInt($(b).attr('data-price'));
if($($sort).hasClass('asc')){
return (keyA > keyB) ? 1 : 0;
} else {
return (keyA < keyB) ? 1 : 0;
}
});
$.each($rows, function(index, row){
$table.append(row);
});
e.preventDefault();
});
});

(繼續閱讀...)
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣(449)

  • 個人分類:CODE
▲top
12...7»

google adsense

靜思語

blogads

近期文章

  • [note]大丈夫豈能 不戰、不和、不守、不死、不降、不走。
  • [hadoop]聖誕禮物 Hortonworks Certified Apache Hadoop Administrator 1.x Got
  • [hadoop]Hortonworks Certified Apache Hadoop 1.x Administrator
  • [武術]2013 12月17日大師隕落 鄭子太極 鞠鴻賓 長洪宗師 陳清河
  • 啟用 peicheng-note http://peichengnote.blogspot.com/
  • [ROSL]Reflections on startup life
  • [武術]八卦掌 走掌 131218 (三)
  • [武術]宮式八卦養生內功 劉雲樵傳 氣血滾滾 養氣還原
  • [book]你要如何衡量你的人生
  • [python][flask] Context 應用上下文

文章彙整

文章分類

  • startup_note (1)
  • 日本 (4)
  • kickboxing (1)
  • music (2)
  • java (1)
  • ambari (2)
  • 轉貼 (5)
  • hadoop (43)
  • elasticsearch/logstash (4)
  • linux (29)
  • mac (4)
  • mac (4)
  • su (1)
  • tech_note (35)
  • 書單 (1)
  • 台灣人在北京 (2)
  • 隨筆 (10)
  • bookmark (3)
  • 合氣道 (5)
  • 遊記 (11)
  • [新加坡] (11)
  • 佛學 (4)
  • 旅遊pic (2)
  • python (64)
  • 歌詞 (7)
  • 北京大學 (12)
  • Gentoo (107)
  • BBS (8)
  • Ubuntu (17)
  • 合氣道 aikido (24)
  • PHP (5)
  • 日記 (268)
  • 新奇 (32)
  • 筆記 (75)
  • CODE (61)
  • DBbase (1)
  • CCU (12)
  • 哲學思想 (67)
  • 讀書心得 (21)
  • 專題 (4)
  • 電影 (34)
  • 台灣武術 (194)
  • 一般 (2)
  • 未分類文章 (1)

無名 正妹時計

氣象星座

links

參觀人氣

  • 本日人氣:
  • 累積人氣:

個人頭像

peicheng
暱稱:
peicheng
分類:
不設分類
好友:
累積中
地區:

楊淑君加油 我們都以妳為榮!

文章搜尋