Skip to content

Commit

Permalink
new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tiepvupsu committed Jan 14, 2017
1 parent 0f63f77 commit 18fd625
Show file tree
Hide file tree
Showing 207 changed files with 13,561 additions and 207 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 12 additions & 8 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Site settings
title: Machine Learning cơ bản
email: [email protected]
# description: "Fundatmentals of Machine Learning and Optimization Algorithms"
baseurl: ""
url: "http://tiepvupsu.github.io"
# twitter_username: karpathy
github_username: tiepvupsu
sass:
style: :compressed # Change to :expanded for debugging

permalink: /:year/:month/:day/:title.html

url: http://tiepvupsu.github.io
future: true
debug: false

disqus_categories:
tech: 3550508
opinion: 3550509

# Build settings
markdown: kramdown
Expand Down
5 changes: 5 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="viewport" content="width=device-width">
Expand Down
130 changes: 130 additions & 0 deletions _includes/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
@import "variables";

@import "bootstrap/mixins";
@import "bootstrap/normalize";
@import "bootstrap/print";
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/grid";
@import "bootstrap/responsive-utilities";

@import "common";

// Tag index
.tag-box {
list-style: none;
margin: 0;
padding: 4px 0;
overflow: hidden
}

.tag-box li {
float: left;
line-height: 2.2
}

.tag-box a {
padding: 4px 6px;
margin: 2px;
color: #928983;
background-color: lighten(black, 90);
border-radius: 4px;
text-decoration: none
}

.tag-box span {
font-size: 0.7*$font-size-base;
vertical-align: super
}

.post-list {
padding: .5rem 0;
border-top: 1px solid #eee;
padding-left: 0;
list-style: none;
margin: .5em 0
}

.post-list li {
margin-top: 0;
font-size: 1.17*$font-size-base;
font-weight: bold;
line-height: 2
}

.post-list li .entry-date {
font-size: 75%;
color: #999;
}

.post-list li a:hover {
color: #268bd2;
text-decoration: none;
}

.post-list li a:hover span {
color: inherit;
}

.hidden {
display: none;
visibility: hidden
}


.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
content: "";
display: table;
border-collapse: collapse;
}
.ui-helper-clearfix:after {
clear: both;
}
.ui-helper-clearfix {
min-height: 0; /* support: IE7 */
}
.ui-tabs {
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
padding: .2em;
}
.ui-tabs .ui-tabs-nav {
margin: 0;
padding: 0;
}
.ui-tabs .ui-tabs-nav li {
list-style: none;
float: left;
position: relative;
top: 0;
padding: 0;
white-space: nowrap;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
float: left;
padding: .3em .7em;
text-decoration: none;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
margin-bottom: -2px;
}
.ui-tabs .ui-tabs-panel {
padding: .5em .3em;
}
.ui-widget-header {
border-bottom: 2px solid #dfdfdf;
color: rgb(60, 64, 64);
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited {
color: inherit;
cursor: pointer;
outline: none;
}
.ui-state-default a:hover {
background: #eee
}
.ui-tabs-active {
border-bottom: 2px solid #80b2b2
}
50 changes: 50 additions & 0 deletions _includes/loadCSS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*!
loadCSS: load a CSS file asynchronously.
[c]2014 @scottjehl, Filament Group, Inc.
Licensed MIT
*/
function loadCSS( href, before, media, callback ){
"use strict";
// Arguments explained:
// `href` is the URL for your CSS file.
// `before` optionally defines the element we'll use as a reference for injecting our <link>
// By default, `before` uses the first <script> element in the page.
// However, since the order in which stylesheets are referenced matters, you might need a more specific location in your document.
// If so, pass a different reference element to the `before` argument and it'll insert before that instead
// note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
var ss = window.document.createElement( "link" );
var ref = before || window.document.getElementsByTagName( "script" )[ 0 ];
var sheets = window.document.styleSheets;
ss.rel = "stylesheet";
ss.href = href;
// temporarily, set media to something non-matching to ensure it'll fetch without blocking render
ss.media = "only x";
// DEPRECATED
if( callback ) {
ss.onload = callback;
}

// inject link
ref.parentNode.insertBefore( ss, ref );
// This function sets the link's media back to `all` so that the stylesheet applies once it loads
// It is designed to poll until document.styleSheets includes the new sheet.
ss.onloadcssdefined = function( cb ){
var defined;
for( var i = 0; i < sheets.length; i++ ){
if( sheets[ i ].href && sheets[ i ].href.indexOf( href ) > -1 ){
defined = true;
}
}
if( defined ){
cb();
} else {
setTimeout(function() {
ss.onloadcssdefined( cb );
});
}
};
ss.onloadcssdefined(function() {
ss.media = media || "all";
});
return ss;
}
82 changes: 82 additions & 0 deletions _includes/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
window.GoogleAnalyticsObject = "__ga__";
window.__ga__ = function() {
for (var i=0; i<arguments.length; i++) {
var arg = arguments[i];
if (arg.constructor == Object && arg.hitCallback) {
arg.hitCallback();
}
}
};
window.__ga__.q = [["create", "UA-56790914-1", {"cookieDomain": "auto", "siteSpeedSampleRate": 10}],
["set", "forceSSL", true]];
window.__ga__.l = Date.now();

require.config({
baseUrl: "/scripts",
paths: {
"jquery": [
"//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min",
"jquery.min"
],
"jquery-ui": [
"//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min",
"jquery-ui.min"
],
"chart": "Chart.min",
"ga": localStorage.dontTrack ? "data:application/javascript," : [
"//www.google-analytics.com/analytics",
"data:application/javascript,"
],
},
shim: {
"ga": {
exports: "__ga__"
},
"prism": {
exports: "Prism"
}
}
});

require(["jquery"], function($) {
$.each(pageProperties.scripts, function(index, script) {
require([script]);
});
$(function() {
if ($("code[class*='language-'], [class*='language-'] code, code[class*='lang-'], [class*='lang-'] code").length) {
require(["prism"], function(prism) {
prism.highlightAll();
});
loadCSS(siteProperties.baseurl + "/style/prism.css");
}
$("article a").each(function() {
var url = $(this).attr("href");
if ((url.indexOf("http://") == 0 || url.indexOf("https://") == 0) && url.indexOf(siteProperties.url + "/") != 0) {
$(this).click(function(e) {
require(["ga"], function(ga) {
ga("send", "event", "outbound", "click", url, {"hitCallback":
function () {
document.location = url;
}
});
});
e.preventDefault();
});
}
});
});
});

require(["ga"], function(ga) {
if (pageProperties.category) {
ga("set", "dimension1", pageProperties.category);
}
ga("send", "pageview", {
"page": pageProperties.url,
"title": pageProperties.title
});
});

if (typeof disqus_identifer !== "undefined") {
require(["//veithen.disqus.com/embed.js"]);
}
Loading

0 comments on commit 18fd625

Please sign in to comment.