Skip to content

Instantly share code, notes, and snippets.

View zenoven's full-sized avatar
🎯
Focusing energy

zenoven zenoven

🎯
Focusing energy
View GitHub Profile
@zenoven
zenoven / gist:be7332763ffece7b95d10a13f2ebaf62
Created February 6, 2018 07:44 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@zenoven
zenoven / html-domparser.js
Created November 5, 2016 06:04 — forked from eligrey/html-domparser.js
DOMParser HTML extension - Now a polyfill since HTML parsing was added to the DOMParser specification
/*
* DOMParser HTML extension
* 2012-09-04
*
* By Eli Grey, http://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
/*! @source https://gist.github.com/1129031 */
function smoothScroll(el, to, duration) {
if (duration < 0) {
return;
}
var difference = to - $(window).scrollTop();
var perTick = difference / duration * 10;
this.scrollToTimerCache = setTimeout(function() {
if (!isNaN(parseInt(perTick, 10))) {
window.scrollTo(0, $(window).scrollTop() + perTick);
smoothScroll(el, to, duration - 10);

MacOS

Build 3059

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

如何将阿拉伯数字每三位一逗号分隔,如:15000000转化为15,000,000。
回复时注意加上下面这句话,才会有语法高亮或格式缩进。
```javascript
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
@zenoven
zenoven / jQuery-no-conflict.js
Last active December 24, 2015 00:19 — forked from matthisamoto/doc-ready.js
JS:jQuery-no-conflict
(function($) {
}(jQuery));
HTML 5
<!DOCTYPE html>
XHTML 1.1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
XHTML 1.0 Transitional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@zenoven
zenoven / ie-conditional.html
Last active December 24, 2015 00:19 — forked from slalx/taobaohtml
HTML:IE-conditional
<!--[if lt IE 8]><html class="ltie8 ie"> <![endif]-->
<!--[if IE 8]><html class="ie8 ie"> <![endif]-->
<!--[if gt IE 8]><html class="gtie8"><![endif]-->
<!--[if !IE]><!--><html><!--<![endif]-->
</html>