Skip to content

Instantly share code, notes, and snippets.

View zixiaojindao's full-sized avatar

Sun Zhao zixiaojindao

  • Fudan University
  • Shanghai, China
View GitHub Profile
@zixiaojindao
zixiaojindao / .gitignore
Created October 17, 2012 02:57 — forked from smoothfriction/.gitignore
.gitignore for visual studio
#OS junk files
[Tt]humbs.db
*.DS_Store
#Visual Studio files
*.[Oo]bj
*.user
*.aps
*.pch
*.vspscc
@zixiaojindao
zixiaojindao / tags.md
Created September 30, 2012 05:34
jeklly tags index.md
title layout
tag cloud
page
{% for tag in site.tags %} {{ tag[0] }} {% endfor %}
@zixiaojindao
zixiaojindao / jquery.tagcloud.js
Created September 30, 2012 04:56
tag cloud js
(function($) {
$.fn.tagcloud = function(options) {
var opts = $.extend({}, $.fn.tagcloud.defaults, options);
tagWeights = this.map(function(){
return $(this).attr("rel");
});
tagWeights = jQuery.makeArray(tagWeights).sort(compareWeights);
lowest = tagWeights[0];
highest = tagWeights.pop();
@zixiaojindao
zixiaojindao / categories.md
Created September 30, 2012 04:43
jeklly category index.md