Skip to content

Instantly share code, notes, and snippets.

View zenoven's full-sized avatar
🎯
Focusing energy

zenoven zenoven

🎯
Focusing energy
View GitHub Profile
ol ol,
ul ol,
ol ul,
ul ul,
ol ul ol,
ul ul ol,
ol ul ul,
ul ul ul {
margin-top: 0;
margin-bottom: 0;
@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 / style.css
Created September 26, 2013 16:33
WordPress Style.CSS Header
/*
Theme Name: zAlive
Theme URI: http://www.zenoven.com/themes/zAlive
Author: zenoven
Author URI: http://www.zenoven.com/
Description: zAlive is a responsive two columns theme with green and black color. With rich options you can custom the slider, excerpt, advertisement code,primary sidebar layout, copyright, nav menu, CSS style, scripts and more.
Version: 1.2.5
License: GNU General Public License v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: green,black,dark,one-column,two-columns,right-sidebar,flexible-width,custom-menu,featured-images,flexible-header,post-formats,sticky-post,theme-options,threaded-comments,translation-ready,left-sidebar,full-width-template,custom-background
@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">