This file contains hidden or 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像素透明 --> | |
| <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> | |
| <!-- 1像素黑色 --> | |
| <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="> | |
| <a href="http://proger.i-forge.net/%D0%9A%D0%BE%D0%BC%D0%BF%D1%8C%D1%8E%D1%82%D0%B5%D1%80/[20121112]%20The%20smallest%20transparent%20pixel.html">参考网址</a> |
This file contains hidden or 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
| a=$('.subitems').map(function() { | |
| return $(this).find('dl').map(function() { | |
| var res = {}, $this = $(this); | |
| var name = $this.children('dt').text().slice(0, -1); | |
| res[name] = $this.children('dd').children('a').map(function() { return $(this).text(); }).get(); | |
| return res; | |
| }).get(); | |
| }).get(); |
This file contains hidden or 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
| echo 'start building!' | |
| echo $PATH | |
| export PATH=$PATH:/usr/local/bin | |
| echo $PATH | |
| pwd | |
| cd use-php | |
| /usr/local/bin/npm install | |
| /usr/local/bin/fis3 release -d ../../builds/$BUILD_NUMBER/use-php | |
| tar -czf ../../builds/$BUILD_NUMBER/$BUILD_TAG.tar.gz -C ../../builds/$BUILD_NUMBER/use-php . | |
| echo 'build success!' |
This file contains hidden or 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
| function cal(node, cur) { | |
| cur = cur || 1; | |
| var c = node.childNodes; | |
| if(node.nodeName === "IFRAME") { | |
| c = [node.contentDocument]; | |
| } | |
| var i = 0, l = c.length, maxarr=[]; | |
| if(c && l) { | |
| cur ++; | |
| while(i < l) { |
This file contains hidden or 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
| function reverse(s, k) { | |
| var arr = s.split(""), l = s.length; k = k % l; | |
| function r(m, n) { | |
| while(m < n) { | |
| var tmp = arr[m]; | |
| arr[m++] = arr[n]; | |
| arr[n--] = tmp; | |
| } | |
| } | |
| r(0, k - 1); |
This file contains hidden or 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
| /************快速排序**************/ | |
| function qsort(a, p, r) { | |
| if(p < r) { | |
| var q = partition(a, p, r); | |
| qsort(a, p, q - 1); | |
| qsort(a, q + 1, r); | |
| } | |
| } | |
| function partition(a, p, r) { | |
| var mid = a[r]; |
This file contains hidden or 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
| function trans(s) { | |
| s = s.replace(/-(\d)0/g, "-$1"); | |
| var d = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九", "", "十", "二十", "三十", "年", "月"]; | |
| var r = [], flag = 14, gap = 0, t; | |
| for(var i = 0; i < s.length; i ++) { | |
| t = s.charAt(i); | |
| if(t === "-") { | |
| r.push(d[flag++]); | |
| gap = 10; | |
| } else { |
This file contains hidden or 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
| function trans(s) { | |
| var l = s.length % 3 || 3; | |
| return s.slice(0,l)+s.slice(l).replace(/(\d{3})/g, ",$1"); | |
| } |
NewerOlder