qiushao.github.io's Introduction
<!DOCTYPE html> <html lang="en"> <!-- Head tag --> <head><meta name="generator" content="Hexo 3.8.0"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content> <meta name="keyword" content> <link rel="shortcut icon" href="/img/ironman-draw.png"> <!-- Place this tag in your head or just before your close body tag. --> <script async defer src="https://buttons.github.io/buttons.js"></script> <title> QiuShao Blog|邱少的博客 </title> <link rel="canonical" href="http://qiushao.xyz/README.html"> <!-- Bootstrap Core CSS --> <link rel="stylesheet" href="/css/bootstrap.min.css"> <!-- Custom CSS --> <link rel="stylesheet" href="/css/beantech.min.css"> <!-- Pygments Highlight CSS --> <link rel="stylesheet" href="/css/highlight.css"> <link rel="stylesheet" href="/css/widget.css"> <link rel="stylesheet" href="/css/rocket.css"> <link rel="stylesheet" href="/css/signature.css"> <link rel="stylesheet" href="/css/toc.css"> <!-- Custom Fonts --> <!-- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> --> <!-- Hux change font-awesome CDN to qiniu --> <link href="https://cdn.staticfile.org/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- Hux Delete, sad but pending in China <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/ css'> --> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <!-- ga & ba script hoook --> <script></script> </head> <!-- hack iOS CSS :active style --> <body ontouchstart=""> <!-- Modified by Yu-Hsuan Yen --> <!-- Post Header --> <style type="text/css"> header.intro-header{ background-image: url('/undefined') /*page*/ } #signature{ background-image: url('/img/signature/BeanTechSign-white.png'); } </style> <header class="intro-header"> <!-- Signature --> <div id="signature"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="site-heading"> <h1>QiuShao Blog</h1> <!--<hr class="small">--> <span class="subheading">佛山大学|数据科学与大数据应用</span> </div> </div> </div> </div> </div> </header> <!-- Navigation --> <nav class="navbar navbar-default navbar-custom navbar-fixed-top"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header page-scroll"> <button type="button" class="navbar-toggle"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">QiuShao Blog</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <!-- Known Issue, found by Hux: <nav>'s height woule be hold on by its content. so, when navbar scale out, the <nav> will cover tags. also mask any touch event of tags, unfortunately. --> <div id="huxblog_navbar"> <div class="navbar-collapse"> <ul class="nav navbar-nav navbar-right"> <li> <a href="/">Home</a> </li> <li> <a href="/about/">About</a> </li> <li> <a href="/archive/">Archives</a> </li> <li> <a href="/tags/">Tags</a> </li> </ul> </div> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> <script> // Drop Bootstarp low-performance Navbar // Use customize navbar with high-quality material design animation // in high-perf jank-free CSS3 implementation var $body = document.body; var $toggle = document.querySelector('.navbar-toggle'); var $navbar = document.querySelector('#huxblog_navbar'); var $collapse = document.querySelector('.navbar-collapse'); $toggle.addEventListener('click', handleMagic) function handleMagic(e){ if ($navbar.className.indexOf('in') > 0) { // CLOSE $navbar.className = " "; // wait until animation end. setTimeout(function(){ // prevent frequently toggle if($navbar.className.indexOf('in') < 0) { $collapse.style.height = "0px" } },400) }else{ // OPEN $collapse.style.height = "auto" $navbar.className += " in"; } } </script> <!-- Main Content --> <!-- Main Content --> <div class="container"> <div class="row"> <!-- USE SIDEBAR --> <!-- Post Container --> <div class=" col-lg-8 col-lg-offset-1 col-md-8 col-md-offset-1 col-sm-12 col-xs-12 post-container "> <blockquote> <p>Ported Theme of <a href="https://github.com/Huxpro/huxpro.github.io" target="_blank" rel="noopener">Hux Blog</a>, Thank <a href="https://github.com/Huxpro" target="_blank" rel="noopener">Huxpro</a> for designing such a flawless theme.</p> <p>This BeanTech theme created by <a href="http://beantech.org" target="_blank" rel="noopener">YuHsuan</a> modified from the original Porter <a href="http://kaijun.rocks/hexo-theme-huxblog/" target="_blank" rel="noopener">Kaijun</a></p> </blockquote> <h1><span id="live-demo"></span></h1> <p><img src="http://beantech.org/img/beantech-desktop.png" alt="BeanTech Desktop"></p> <h1><span id="usage">Usage</span></h1> <p>I publish the whole project for your convenience, so you can just follow the instruction down below, then you can easily customiz your own blog!</p> <p>Let’s begin!!!</p> <h2><span id="init">Init</span></h2> <figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> https://github.com/YenYuHsuan/hexo-theme-beantech.git ./hexo-beantech</span><br><span class="line"><span class="built_in">cd</span> hexo-beantech</span><br><span class="line">npm install</span><br></pre></td></tr></table></figure> <h2><span id="modify">Modify</span></h2> <p>Modify <code>_config.yml</code> file with your own info.<br> Especially the section:</p> <h3><span id="deployment">Deployment</span></h3> <p>Replace to your own repo!</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">deploy:</span></span><br><span class="line"><span class="attr"> type:</span> <span class="string">git</span></span><br><span class="line"><span class="attr"> repo:</span> <span class="attr">https://github.com/<yourAccount>/<repo></span></span><br><span class="line"><span class="attr"> branch:</span> <span class="string"><your-branch></span></span><br></pre></td></tr></table></figure> <h3><span id="sidebar-settings">Sidebar settings</span></h3> <p>Copy your avatar image to <code><root>/img/</code> and modify the <code>_config.yml</code>:</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">sidebar:</span> <span class="literal">true</span> <span class="comment"># whether or not using Sidebar.</span></span><br><span class="line"><span class="attr">sidebar-about-description:</span> <span class="string">"<your description>"</span></span><br><span class="line"><span class="attr">sidebar-avatar:</span> <span class="string">img/<your</span> <span class="string">avatar</span> <span class="string">path></span></span><br></pre></td></tr></table></figure> <p>and activate your personal widget you like</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">widgets:</span> <span class="comment"># here are widget you can use, you can comment out</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">featured-tags</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">short-about</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">recent-posts</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">friends-blog</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">archive</span></span><br><span class="line"><span class="bullet">-</span> <span class="string">category</span></span><br></pre></td></tr></table></figure> <p>if you want to add sidebar widget, please add at <code>layout/_widget</code>.</p> <h3><span id="signature-setup">Signature Setup</span></h3> <p>Copy your signature image to <code><root>/img/signature</code> and modify the <code>_config.yml</code>:</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">signature:</span> <span class="literal">true</span> <span class="comment"># show signature</span></span><br><span class="line"><span class="attr">signature-img:</span> <span class="string">img/signature/<your-signature-ID></span></span><br></pre></td></tr></table></figure> <h3><span id="go-to-top-icon-setup">Go to top icon Setup</span></h3> <p>My icon is using iron man, you can change to your own icon at <code>css/image</code>.</p> <h3><span id="post-tag">Post tag</span></h3> <p>You can decide to show post tags or not.</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">home_posts_tag:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure> <p><img src="./source/_posts/hexo-theme-beantech/home_posts_tag-true.png" alt="home_posts_tag-true"></p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">home_posts_tag:</span> <span class="literal">false</span></span><br></pre></td></tr></table></figure> <p><img src="./source/_posts/hexo-theme-beantech/home_posts_tag-false.png" alt="home_posts_tag-false"></p> <h3><span id="markdown-render">Markdown render</span></h3> <p>My markdown render engine plugin is <a href="https://github.com/celsomiranda/hexo-renderer-markdown-it" target="_blank" rel="noopener">hexo-renderer-markdown-it</a>.</p> <figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Markdown-it config</span></span><br><span class="line"><span class="comment">## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki</span></span><br><span class="line"><span class="attr">markdown:</span></span><br><span class="line"><span class="attr"> render:</span></span><br><span class="line"><span class="attr"> html:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> xhtmlOut:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> breaks:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> linkify:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> typographer:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> quotes:</span> <span class="string">'“”‘’'</span></span><br></pre></td></tr></table></figure> <p>and if you want to change the header anchor ‘ℬ’, you can go to <code>layout/post.ejs</code> to change it.</p> <figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">async</span>(<span class="string">"//cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js"</span>,<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>{</span><br><span class="line"> anchors.options = {</span><br><span class="line"> visible: <span class="string">'hover'</span>,</span><br><span class="line"> placement: <span class="string">'left'</span>,</span><br><span class="line"> icon: <span class="string">'ℬ'</span></span><br><span class="line"> };</span><br><span class="line"> anchors.add().remove(<span class="string">'.intro-header h1'</span>).remove(<span class="string">'.subheading'</span>).remove(<span class="string">'.sidebar-container h5'</span>);</span><br><span class="line"> })</span><br></pre></td></tr></table></figure> <h2><span id="hexo-basics">Hexo Basics</span></h2> <p>Some hexo command:</p> <figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">hexo new post <span class="string">"<post name>"</span> <span class="comment"># you can change post to another layout if you want</span></span><br><span class="line">hexo clean && hexo generate <span class="comment"># generate the static file</span></span><br><span class="line">hexo server <span class="comment"># run hexo in local environment</span></span><br><span class="line">hexo deploy <span class="comment"># hexo will push the static files automatically into the specific branch(gh-pages) of your repo!</span></span><br></pre></td></tr></table></figure> <h1><span id="have-fun-_">Have fun ^_^</span></h1> <p>Please <a href="https://github.com/YenYuHsuan/hexo-theme-beantech" target="_blank" rel="noopener">Star</a> this Project if you like it! <a href="https://github.com/YenYuHsuan" target="_blank" rel="noopener">Follow</a> would also be appreciated!<br> Peace!</p> <!-- 如果开启评论功能 --> <hr> <!-- disqus 评论框 start --> <div class="comment"> <div id="disqus_thread" class="disqus-thread"></div> </div> <!-- disqus 评论框 end --> <!-- disqus 公共JS代码 start (一个网页只需插入一次) --> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES * * */ var disqus_shortname = "your-disqus-ID"; var disqus_identifier = "http://qiushao.xyz/README.html"; var disqus_url = "http://qiushao.xyz/README.html"; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <!-- disqus 公共JS代码 end --> </div> <!-- Sidebar Container --> <div class=" col-lg-3 col-lg-offset-0 col-md-3 col-md-offset-0 col-sm-12 col-xs-12 sidebar-container "> <!-- Featured Tags --> <section> <!-- no hr --> <h5><a href="/tags/">FEATURED TAGS</a></h5> <div class="tags"> </div> </section> <hr> <!-- Short About --> <section class="visible-md visible-lg"> <h5><a href="/about/">ABOUT ME</a></h5> <div class="short-about"> <img id="avatar_pic" src="/img/ironman-draw.png"> <p>Hi, i'm Qiushao</p> <!-- SNS Link --> <ul class="list-inline"> <li> <a target="_blank" href="https://www.zhihu.com/people/qiu-wen-hao-43"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-stack-1x fa-inverse">知</i> </span> </a> </li> <li> <a target="_blank" href="https://github.com/504250439"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-github fa-stack-1x fa-inverse"></i> </span> </a> </li> </ul> </div> </section> <hr> <h5>RECENT POSTS <div class="widget"> <ul> <li> <a href="/2019/05/05/随便写写/">随便写写</a> </li> </ul> </div> </h5> <hr> <!-- Friends Blog --> <h5>FRIENDS</h5> <ul class="list-inline"> <li><a href="http://beantech.org" target="_blank">Bean Tech</a></li> <li><a href="http://blog.kaijun.rocks" target="_blank">Kaijun's Blog</a></li> <li><a href="http://huangxuan.me" target="_blank">Hux Blog</a></li> <li><a href="#" target="_blank">It Helps SEO</a></li> </ul> <hr> </div> </div> </div> <!-- Footer --> <!-- Footer --> <footer> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> <li> <a target="_blank" href="https://www.zhihu.com/people/qiu-wen-hao-43"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-stack-1x fa-inverse">知</i> </span> </a> </li> <li> <a target="_blank" href="https://github.com/504250439"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-github fa-stack-1x fa-inverse"></i> </span> </a> </li> </ul> <p class="copyright text-muted"> Copyright © Qiushao 2019 <br> Theme by <a href="http://huangxuan.me">Hux</a> <span style="display: inline-block; margin: 0 5px;"> <i class="fa fa-heart"></i> </span> re-Ported by <a href="http://beantech.org">BeanTech</a> | <iframe style="margin-left: 2px; margin-bottom:-5px;" frameborder="0" scrolling="0" width="91px" height="20px" src="https://ghbtns.com/github-btn.html?user=YenYuHsuan&repo=hexo-theme-beantech&type=star&count=true"> </iframe> </p> </div> </div> </div> </footer> <!-- jQuery --> <script src="/js/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="/js/bootstrap.min.js"></script> <!-- Custom Theme JavaScript --> <script src="/js/hux-blog.min.js"></script> <!-- async load function --> <script> function async(u, c) { var d = document, t = 'script', o = d.createElement(t), s = d.getElementsByTagName(t)[0]; o.src = u; if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); } s.parentNode.insertBefore(o, s); } </script> <!-- Because of the native support for backtick-style fenced code blocks right within the Markdown is landed in Github Pages, From V1.6, There is no need for Highlight.js, so Huxblog drops it officially. - https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0 - https://help.github.com/articles/creating-and-highlighting-code-blocks/ --> <!-- <script> async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){ hljs.initHighlightingOnLoad(); }) </script> <link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet"> --> <!-- jquery.tagcloud.js --> <script> // only load tagcloud.js in tag.html if($('#tag_cloud').length !== 0){ async("http://qiushao.xyz/js/jquery.tagcloud.js",function(){ $.fn.tagcloud.defaults = { //size: {start: 1, end: 1, unit: 'em'}, color: {start: '#bbbbee', end: '#0085a1'}, }; $('#tag_cloud a').tagcloud(); }) } </script> <!--fastClick.js --> <script> async("https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js", function(){ var $nav = document.querySelector("nav"); if($nav) FastClick.attach($nav); }) </script> <!-- Google Analytics --> <script> // dynamic User by Hux var _gaId = 'UA-XXXXXXXX-X'; var _gaDomain = 'yoursite'; // Originial (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', _gaId, _gaDomain); ga('send', 'pageview'); </script> <!-- Baidu Tongji --> <a id="rocket" href="#top" class=""></a> <script type="text/javascript" src="/js/totop.js?v=1.0.0" async=""></script> <script type="text/javascript" src="/js/toc.js?v=1.0.0" async=""></script> <!-- Image to hack wechat --> <img src="http://qiushao.xyz/img/icon_wechat.png" width="0" height="0" /> <!-- Migrate from head to bottom, no longer block render and still work --> </body> </html>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.