Skip to content

Instantly share code, notes, and snippets.

Yang He abruzzihraig

Block or report user

Report or block abruzzihraig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@abruzzihraig
abruzzihraig / font-family.css
Last active Aug 29, 2015
中文font-family
View font-family.css
font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
@abruzzihraig
abruzzihraig / index.html
Last active Aug 29, 2015
A Pen by abruzzi.
View index.html
<img class="pic" src="https://help.github.com/assets/help/set-up-git-0340a11d480e51c09d6123569d3d1d31.gif" alt="github" />
<div class="scroller-container">
<div class="scroller"></div>
</div>
@abruzzihraig
abruzzihraig / jQuery.reduce patch
Last active Aug 29, 2015
This is a patch that supports reduce function for jQuery.
View jQuery.reduce patch
$.reduce = function(arr, reduce_cb, prev) {
arr = arr.toArray();
if (Array.prototype.reduce) {
return Array.prototype.reduce.call(arr, reduce_cb, prev);
}
$.each(arr, function(i, cur) {
result = reduce_cb.call(null, prev, cur, i, arr);
prev = cur;
});
return result;
You can’t perform that action at this time.