mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-17 05:04:21 +01:00
Deleted
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
source 'https://rubygems.org'
|
||||
gem 'github-pages', group: :jekyll_plugins
|
||||
@@ -1,133 +0,0 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
RedCloth (4.2.9)
|
||||
activesupport (4.2.6)
|
||||
i18n (~> 0.7)
|
||||
json (~> 1.7, >= 1.7.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.4.0)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.10.0)
|
||||
colorator (0.1)
|
||||
ethon (0.8.1)
|
||||
ffi (>= 1.3.0)
|
||||
execjs (2.6.0)
|
||||
faraday (0.9.2)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ffi (1.9.10)
|
||||
gemoji (2.1.0)
|
||||
github-pages (71)
|
||||
RedCloth (= 4.2.9)
|
||||
github-pages-health-check (= 1.1.0)
|
||||
jekyll (= 3.0.3)
|
||||
jekyll-coffeescript (= 1.0.1)
|
||||
jekyll-feed (= 0.5.1)
|
||||
jekyll-gist (= 1.4.0)
|
||||
jekyll-github-metadata (= 1.11.0)
|
||||
jekyll-mentions (= 1.1.2)
|
||||
jekyll-paginate (= 1.1.0)
|
||||
jekyll-redirect-from (= 0.10.0)
|
||||
jekyll-sass-converter (= 1.3.0)
|
||||
jekyll-seo-tag (= 1.3.3)
|
||||
jekyll-sitemap (= 0.10.0)
|
||||
jekyll-textile-converter (= 0.1.0)
|
||||
jemoji (= 0.6.2)
|
||||
kramdown (= 1.10.0)
|
||||
liquid (= 3.0.6)
|
||||
mercenary (~> 0.3)
|
||||
rdiscount (= 2.1.8)
|
||||
redcarpet (= 3.3.3)
|
||||
rouge (= 1.10.1)
|
||||
terminal-table (~> 1.4)
|
||||
github-pages-health-check (1.1.0)
|
||||
addressable (~> 2.3)
|
||||
net-dns (~> 0.8)
|
||||
octokit (~> 4.0)
|
||||
public_suffix (~> 1.4)
|
||||
typhoeus (~> 0.7)
|
||||
html-pipeline (2.4.0)
|
||||
activesupport (>= 2, < 5)
|
||||
nokogiri (>= 1.4)
|
||||
i18n (0.7.0)
|
||||
jekyll (3.0.3)
|
||||
colorator (~> 0.1)
|
||||
jekyll-sass-converter (~> 1.0)
|
||||
jekyll-watch (~> 1.1)
|
||||
kramdown (~> 1.3)
|
||||
liquid (~> 3.0)
|
||||
mercenary (~> 0.3.3)
|
||||
rouge (~> 1.7)
|
||||
safe_yaml (~> 1.0)
|
||||
jekyll-coffeescript (1.0.1)
|
||||
coffee-script (~> 2.2)
|
||||
jekyll-feed (0.5.1)
|
||||
jekyll-gist (1.4.0)
|
||||
octokit (~> 4.2)
|
||||
jekyll-github-metadata (1.11.0)
|
||||
octokit (~> 4.0)
|
||||
jekyll-mentions (1.1.2)
|
||||
html-pipeline (~> 2.3)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-paginate (1.1.0)
|
||||
jekyll-redirect-from (0.10.0)
|
||||
jekyll (>= 2.0)
|
||||
jekyll-sass-converter (1.3.0)
|
||||
sass (~> 3.2)
|
||||
jekyll-seo-tag (1.3.3)
|
||||
jekyll (~> 3.0)
|
||||
jekyll-sitemap (0.10.0)
|
||||
jekyll-textile-converter (0.1.0)
|
||||
RedCloth (~> 4.0)
|
||||
jekyll-watch (1.3.1)
|
||||
listen (~> 3.0)
|
||||
jemoji (0.6.2)
|
||||
gemoji (~> 2.0)
|
||||
html-pipeline (~> 2.2)
|
||||
jekyll (>= 3.0)
|
||||
json (1.8.1)
|
||||
kramdown (1.10.0)
|
||||
liquid (3.0.6)
|
||||
listen (3.0.6)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9.7)
|
||||
mercenary (0.3.6)
|
||||
mini_portile2 (2.0.0)
|
||||
minitest (5.4.3)
|
||||
multipart-post (2.0.0)
|
||||
net-dns (0.8.0)
|
||||
nokogiri (1.6.7.2)
|
||||
mini_portile2 (~> 2.0.0.rc2)
|
||||
octokit (4.3.0)
|
||||
sawyer (~> 0.7.0, >= 0.5.3)
|
||||
public_suffix (1.5.3)
|
||||
rb-fsevent (0.9.7)
|
||||
rb-inotify (0.9.7)
|
||||
ffi (>= 0.5.0)
|
||||
rdiscount (2.1.8)
|
||||
redcarpet (3.3.3)
|
||||
rouge (1.10.1)
|
||||
safe_yaml (1.0.4)
|
||||
sass (3.4.22)
|
||||
sawyer (0.7.0)
|
||||
addressable (>= 2.3.5, < 2.5)
|
||||
faraday (~> 0.8, < 0.10)
|
||||
terminal-table (1.5.2)
|
||||
thread_safe (0.3.5)
|
||||
typhoeus (0.8.0)
|
||||
ethon (>= 0.8.0)
|
||||
tzinfo (1.2.2)
|
||||
thread_safe (~> 0.1)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
github-pages
|
||||
|
||||
BUNDLED WITH
|
||||
1.11.2
|
||||
@@ -1,21 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Agus Makmun
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,3 +0,0 @@
|
||||
Our Stack Problems
|
||||
|
||||
> This project forked and has been modified from [A simple grey theme for Jekyll](https://github.com/liamsymonds/simplygrey-jekyll)
|
||||
@@ -1,78 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> About </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<article class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">About</h1>
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
<p>I am freelance developer. Currently doing more in backend, actually in Python and Django.</p>
|
||||
|
||||
<p>email: agus[at]python.web.id</p>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
7
_site/css/bootstrap-theme.min.css
vendored
7
_site/css/bootstrap-theme.min.css
vendored
File diff suppressed because one or more lines are too long
7
_site/css/bootstrap.min.css
vendored
7
_site/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -1,168 +0,0 @@
|
||||
/**
|
||||
* //////////////
|
||||
* Master styling
|
||||
* //////////////
|
||||
*/
|
||||
body {
|
||||
font-family: "Roboto Condensed", Arial, sans-serif;
|
||||
background-color: #fff;
|
||||
font-size: 16px;
|
||||
line-height: 1.5em;
|
||||
color: #666;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
/*
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 780px;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* //////////////////////////
|
||||
* Font and link declarations
|
||||
* //////////////////////////
|
||||
*/
|
||||
span.time {
|
||||
color: #ADADAD;
|
||||
margin-bottom: 5px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
color: #696969;
|
||||
margin-bottom: 10px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-weight: normal;
|
||||
margin-bottom: 5px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
margin-bottom: 5px;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
a, a:link, a:active {
|
||||
text-decoration: none;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #B3B3B3;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/**
|
||||
* /////////////////
|
||||
* Container element
|
||||
* /////////////////
|
||||
*/
|
||||
div#container {
|
||||
width: 700px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* //////////////////////////////////
|
||||
* Right aka content column formatting
|
||||
* //////////////////////////////////
|
||||
*/
|
||||
div.right {
|
||||
width: 500px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.content {
|
||||
border-top: 1px solid #E6E6E6;
|
||||
margin-top: 5px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
div.content pre {
|
||||
background: #333333;
|
||||
padding: 5px;
|
||||
color: #FFF;
|
||||
overflow-x: auto;
|
||||
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
div.content .highlight {
|
||||
background: #333333;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid #E6E6E6;
|
||||
width: 100%;
|
||||
height: 10px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 3em;
|
||||
padding-top: 10px;
|
||||
color: #C2C2C2;
|
||||
font-size: 11px;
|
||||
bottom: 0;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
footer div#github {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
div.right h1 {
|
||||
margin-bottom: -2px;
|
||||
}
|
||||
|
||||
div.right ul {
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.right ul li {
|
||||
margin-top: 5px;
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.right .post ul {
|
||||
list-style: square;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
/**
|
||||
* ///////////////////////////////////
|
||||
* Left column aka nav bar formatting
|
||||
* ///////////////////////////////////
|
||||
*/
|
||||
div.col-sm-3 {
|
||||
margin-top: 100px;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
div.col-sm-3 strong {
|
||||
font-size: 16px;
|
||||
color: #4A4A4A;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div.col-sm-3 div#about {
|
||||
margin-top: 10px;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
div.col-sm-3 img#about {
|
||||
-webkit-border-radius: 150px;
|
||||
margin-bottom: 10px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
.highlight .hll { background-color: #49483e }
|
||||
.highlight .c { color: #75715e } /* Comment */
|
||||
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
|
||||
.highlight .k { color: #66d9ef } /* Keyword */
|
||||
.highlight .l { color: #ae81ff } /* Literal */
|
||||
.highlight .n { color: #f8f8f2 } /* Name */
|
||||
.highlight .o { color: #f92672 } /* Operator */
|
||||
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
||||
.highlight .cm { color: #75715e } /* Comment.Multiline */
|
||||
.highlight .cp { color: #75715e } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #75715e } /* Comment.Single */
|
||||
.highlight .cs { color: #75715e } /* Comment.Special */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
|
||||
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #66d9ef } /* Keyword.Type */
|
||||
.highlight .ld { color: #e6db74 } /* Literal.Date */
|
||||
.highlight .m { color: #ae81ff } /* Literal.Number */
|
||||
.highlight .s { color: #e6db74 } /* Literal.String */
|
||||
.highlight .na { color: #a6e22e } /* Name.Attribute */
|
||||
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
|
||||
.highlight .nc { color: #a6e22e } /* Name.Class */
|
||||
.highlight .no { color: #66d9ef } /* Name.Constant */
|
||||
.highlight .nd { color: #a6e22e } /* Name.Decorator */
|
||||
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
||||
.highlight .ne { color: #a6e22e } /* Name.Exception */
|
||||
.highlight .nf { color: #a6e22e } /* Name.Function */
|
||||
.highlight .nl { color: #f8f8f2 } /* Name.Label */
|
||||
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
||||
.highlight .nx { color: #a6e22e } /* Name.Other */
|
||||
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
||||
.highlight .nt { color: #f92672 } /* Name.Tag */
|
||||
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
|
||||
.highlight .ow { color: #f92672 } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
||||
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
|
||||
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
||||
@@ -1,88 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Email BackEnd with SMTP Gmail </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Email BackEnd with SMTP Gmail</h1>
|
||||
<span class="time">19 Apr 2016</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>Add this configurations in your <code class="highlighter-rouge">settings.py</code></p>
|
||||
|
||||
<p>This configurations is if you work with <code class="highlighter-rouge">smtp.gmail.com</code>, other smtp is similiar with configurations.</p>
|
||||
|
||||
<ul>
|
||||
<li>Unlock Captha: <a href="https://accounts.google.com/DisplayUnlockCaptcha">https://accounts.google.com/DisplayUnlockCaptcha</a></li>
|
||||
<li>Change to active: <a href="https://www.google.com/settings/security/lesssecureapps">https://www.google.com/settings/security/lesssecureapps</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>EMAIL_HOST = 'smtp.gmail.com'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_HOST_USER = 'your_gmail@gmail.com'
|
||||
EMAIL_HOST_PASSWORD = 'your_password'
|
||||
EMAIL_USE_TLS = True
|
||||
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
186
_site/feed.xml
186
_site/feed.xml
@@ -1,186 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title></title>
|
||||
<description></description>
|
||||
<link>https://agusmakmun.github.io/</link>
|
||||
<atom:link href="https://agusmakmun.github.io/sitemap.xml" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>Tue, 19 Apr 2016 13:26:28 +0700</pubDate>
|
||||
<lastBuildDate>Tue, 19 Apr 2016 13:26:28 +0700</lastBuildDate>
|
||||
<generator>Jekyll v3.0.3</generator>
|
||||
|
||||
<item>
|
||||
<title>Welcome to Jekyll!</title>
|
||||
<description><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=&gt; prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</description>
|
||||
<pubDate>Tue, 19 Apr 2016 13:06:53 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/jekyll/update/2016/04/19/welcome-to-jekyll.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/jekyll/update/2016/04/19/welcome-to-jekyll.html</guid>
|
||||
|
||||
|
||||
<category>jekyll</category>
|
||||
|
||||
<category>update</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Email BackEnd with SMTP Gmail</title>
|
||||
<description><p>Add this configurations in your <code class="highlighter-rouge">settings.py</code></p>
|
||||
|
||||
<p>This configurations is if you work with <code class="highlighter-rouge">smtp.gmail.com</code>, other smtp is similiar with configurations.</p>
|
||||
|
||||
<ul>
|
||||
<li>Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha</li>
|
||||
<li>Change to active: https://www.google.com/settings/security/lesssecureapps</li>
|
||||
</ul>
|
||||
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>EMAIL_HOST = 'smtp.gmail.com'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_HOST_USER = 'your_gmail@gmail.com'
|
||||
EMAIL_HOST_PASSWORD = 'your_password'
|
||||
EMAIL_USE_TLS = True
|
||||
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
</code></pre>
|
||||
</div>
|
||||
</description>
|
||||
<pubDate>Tue, 19 Apr 2016 02:28:15 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/django/2016/04/19/email-backend-with-smtp-gmail.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/django/2016/04/19/email-backend-with-smtp-gmail.html</guid>
|
||||
|
||||
|
||||
<category>django</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Welcome to Simply Grey</title>
|
||||
<description><p>SimplyGrey is a simple, easy to use theme for Jekyll that compromises of mainly grey colours. A lot of people enjoy the simplistic look of grey and also find it easier to read.</p>
|
||||
|
||||
<h2 id="why-use-simply-grey">Why use Simply Grey?</h2>
|
||||
<p>There are lots of reasons why I think you should use Simply Grey but I will list the main ones that I believe are more of benefit to you, the user.</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Easy to use and setup</em> - Jekyll has a huge range of documentation to get you started writing posts and the Simply Grey theme makes your blog look beautiful.</li>
|
||||
<li><em>Easy configuration</em> - I developed this theme in order to be as customisable as possible. If you want to add more links to the navigation bar, all you have to do is edit the _config.yaml file and the <code class="highlighter-rouge">urls</code> part of it.</li>
|
||||
<li><em>You can change it</em> - After being released with the MIT license (like Jekyll itself) you are free to change and basically do anything you want to this theme provided you keep the copyright notice in the files and distribute the license with it.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="jekyll">Jekyll</h2>
|
||||
<p>Jekyll is a static site generator developed in ruby that generates websites from markdown and many other formats. The benefit of this is that you can have a highly customisable blog where you can generate posts by writing easy markdown code whilst still retaining the small memory imprint that Jekyll has.</p>
|
||||
|
||||
<h3 id="code-snippets">Code Snippets</h3>
|
||||
<p>Code Snippets are one of the main reasons why I love Jekyll and I think you will too. All code snippets become highlighted with great colours when you write the code in markdown. Here is an example of highlighted Ruby code in a weather application that I have made.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&amp;mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">notify</span><span class="p">(</span><span class="n">summary</span><span class="p">)</span>
|
||||
<span class="no">Libnotify</span><span class="p">.</span><span class="nf">show</span><span class="p">(</span><span class="ss">:body</span> <span class="o">=&gt;</span> <span class="s2">"Current temperature is: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2"> degrees celsius.</span><span class="se">\n</span><span class="s2">Current description of conditions: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="si">}</span><span class="s2">"</span><span class="p">,</span> <span class="ss">:summary</span> <span class="o">=&gt;</span> <span class="s2">"Weather Update"</span><span class="p">,</span> <span class="ss">:timeout</span> <span class="o">=&gt;</span> <span class="mi">10</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">notify</span><span class="p">(</span><span class="n">parsejson</span><span class="p">())</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/mojombo/jekyll">Jekyll’s GitHub repo</a>.</p>
|
||||
|
||||
</description>
|
||||
<pubDate>Mon, 23 Dec 2013 00:18:23 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/simplygrey/2013/12/23/welcome-to-simply-grey.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/simplygrey/2013/12/23/welcome-to-simply-grey.html</guid>
|
||||
|
||||
|
||||
<category>simplygrey</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Parsing JSON with Ruby</title>
|
||||
<description><p>Parsing JSON with Ruby is actually extremely easy. All you have to do is have the json gem installed (<code class="highlighter-rouge">gem install json</code>) and call the <code class="highlighter-rouge">JSON.parse</code> method on the JSON data to convert it to ruby hashes. If you look at this small program here, you can see how I have implemented parsing JSON in Ruby.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&amp;mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span></code></pre></figure>
|
||||
|
||||
</description>
|
||||
<pubDate>Mon, 23 Dec 2013 00:18:23 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/ruby/2013/12/23/ruby-json.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/ruby/2013/12/23/ruby-json.html</guid>
|
||||
|
||||
|
||||
<category>ruby</category>
|
||||
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB |
@@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Agus Makmun </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<div id="home">
|
||||
<h1>Stack Problems</h1>
|
||||
<hr />
|
||||
<ol class="posts">
|
||||
|
||||
<li><a href="/django/2016/04/19/email-backend-with-smtp-gmail.html">Email BackEnd with SMTP Gmail</a> » <i><span>19 Apr 2016</span></i></li>
|
||||
|
||||
<li><a href="/simplygrey/2013/12/23/welcome-to-simply-grey.html">Welcome to Simply Grey</a> » <i><span>23 Dec 2013</span></i></li>
|
||||
|
||||
<li><a href="/ruby/2013/12/23/ruby-json.html">Parsing JSON with Ruby</a> » <i><span>23 Dec 2013</span></i></li>
|
||||
|
||||
<li><a href="/jekyll/update/2013/02/19/welcome-to-jekyll.html">Welcome to Jekyll!</a> » <i><span>19 Feb 2013</span></i></li>
|
||||
|
||||
</ol>
|
||||
|
||||
<!-- Pagination links -->
|
||||
|
||||
</div><!-- end #home -->
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,84 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Welcome to Jekyll! </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Welcome to Jekyll!</h1>
|
||||
<span class="time">19 Feb 2013</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Welcome to Jekyll! </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Welcome to Jekyll!</h1>
|
||||
<span class="time">19 Feb 2016</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Welcome to Jekyll! </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Welcome to Jekyll!</h1>
|
||||
<span class="time">19 Mar 2016</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Welcome to Jekyll! </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Welcome to Jekyll!</h1>
|
||||
<span class="time">19 Apr 2016</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
6
_site/js/bootstrap.min.js
vendored
6
_site/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,104 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Parsing JSON with Ruby </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Parsing JSON with Ruby</h1>
|
||||
<span class="time">23 Dec 2013</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>Parsing JSON with Ruby is actually extremely easy. All you have to do is have the json gem installed (<code class="highlighter-rouge">gem install json</code>) and call the <code class="highlighter-rouge">JSON.parse</code> method on the JSON data to convert it to ruby hashes. If you look at this small program here, you can see how I have implemented parsing JSON in Ruby.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span></code></pre></figure>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,127 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" />
|
||||
<title> Welcome to Simply Grey </title>
|
||||
|
||||
<!-- syntax highlighting CSS -->
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link href="//fonts.googleapis.com/css?family=Roboto+Condensed:400,300italic,300,400italic,700&subset=latin,latin-ext" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- Custom CSS -->
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="col-sm-3">
|
||||
<img id="about" src="/img/avatar.jpg" height="75px" width="75px" />
|
||||
<h1 class="author-name">Agus Makmun</h1>
|
||||
|
||||
<div id="about">
|
||||
I am freelance developer. Currently doing more in backend, actually in Python and Django.
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<strong>Navigation</strong><br />
|
||||
» <a href="">Home</a> <br />
|
||||
|
||||
» <a class="about" href="/about/">About Me</a><br />
|
||||
|
||||
» <a class="about" href="https://github.com/agusmakmun">Github</a><br />
|
||||
|
||||
» <a class="about" href="/sitemap.xml">XML Sitemap</a><br />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-8 col-offset-1">
|
||||
<h1>Welcome to Simply Grey</h1>
|
||||
<span class="time">23 Dec 2013</span>
|
||||
|
||||
<div class="content">
|
||||
<div class="post"><p>SimplyGrey is a simple, easy to use theme for Jekyll that compromises of mainly grey colours. A lot of people enjoy the simplistic look of grey and also find it easier to read.</p>
|
||||
|
||||
<h2 id="why-use-simply-grey">Why use Simply Grey?</h2>
|
||||
<p>There are lots of reasons why I think you should use Simply Grey but I will list the main ones that I believe are more of benefit to you, the user.</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Easy to use and setup</em> - Jekyll has a huge range of documentation to get you started writing posts and the Simply Grey theme makes your blog look beautiful.</li>
|
||||
<li><em>Easy configuration</em> - I developed this theme in order to be as customisable as possible. If you want to add more links to the navigation bar, all you have to do is edit the _config.yaml file and the <code class="highlighter-rouge">urls</code> part of it.</li>
|
||||
<li><em>You can change it</em> - After being released with the MIT license (like Jekyll itself) you are free to change and basically do anything you want to this theme provided you keep the copyright notice in the files and distribute the license with it.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="jekyll">Jekyll</h2>
|
||||
<p>Jekyll is a static site generator developed in ruby that generates websites from markdown and many other formats. The benefit of this is that you can have a highly customisable blog where you can generate posts by writing easy markdown code whilst still retaining the small memory imprint that Jekyll has.</p>
|
||||
|
||||
<h3 id="code-snippets">Code Snippets</h3>
|
||||
<p>Code Snippets are one of the main reasons why I love Jekyll and I think you will too. All code snippets become highlighted with great colours when you write the code in markdown. Here is an example of highlighted Ruby code in a weather application that I have made.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">notify</span><span class="p">(</span><span class="n">summary</span><span class="p">)</span>
|
||||
<span class="no">Libnotify</span><span class="p">.</span><span class="nf">show</span><span class="p">(</span><span class="ss">:body</span> <span class="o">=></span> <span class="s2">"Current temperature is: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2"> degrees celsius.</span><span class="se">\n</span><span class="s2">Current description of conditions: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="si">}</span><span class="s2">"</span><span class="p">,</span> <span class="ss">:summary</span> <span class="o">=></span> <span class="s2">"Weather Update"</span><span class="p">,</span> <span class="ss">:timeout</span> <span class="o">=></span> <span class="mi">10</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">notify</span><span class="p">(</span><span class="n">parsejson</span><span class="p">())</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/mojombo/jekyll">Jekyll’s GitHub repo</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<footer>
|
||||
© Agus Makmun
|
||||
|
||||
- <a href="https://github.com/agusmakmun">https://github.com/agusmakmun</a> - Powered by Jekyll.
|
||||
|
||||
</footer>
|
||||
</div><!-- end /.col-sm-8 -->
|
||||
</div><!-- end /.container -->
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,186 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title></title>
|
||||
<description></description>
|
||||
<link>https://agusmakmun.github.io/</link>
|
||||
<atom:link href="https://agusmakmun.github.io/sitemap.xml" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>Tue, 19 Apr 2016 13:54:58 +0700</pubDate>
|
||||
<lastBuildDate>Tue, 19 Apr 2016 13:54:58 +0700</lastBuildDate>
|
||||
<generator>Jekyll v3.0.3</generator>
|
||||
|
||||
<item>
|
||||
<title>Email BackEnd with SMTP Gmail</title>
|
||||
<description><p>Add this configurations in your <code class="highlighter-rouge">settings.py</code></p>
|
||||
|
||||
<p>This configurations is if you work with <code class="highlighter-rouge">smtp.gmail.com</code>, other smtp is similiar with configurations.</p>
|
||||
|
||||
<ul>
|
||||
<li>Unlock Captha: <a href="https://accounts.google.com/DisplayUnlockCaptcha">https://accounts.google.com/DisplayUnlockCaptcha</a></li>
|
||||
<li>Change to active: <a href="https://www.google.com/settings/security/lesssecureapps">https://www.google.com/settings/security/lesssecureapps</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="highlighter-rouge"><pre class="highlight"><code>EMAIL_HOST = 'smtp.gmail.com'
|
||||
EMAIL_PORT = 587
|
||||
EMAIL_HOST_USER = 'your_gmail@gmail.com'
|
||||
EMAIL_HOST_PASSWORD = 'your_password'
|
||||
EMAIL_USE_TLS = True
|
||||
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
</code></pre>
|
||||
</div>
|
||||
</description>
|
||||
<pubDate>Tue, 19 Apr 2016 02:28:15 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/django/2016/04/19/email-backend-with-smtp-gmail.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/django/2016/04/19/email-backend-with-smtp-gmail.html</guid>
|
||||
|
||||
|
||||
<category>django</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Welcome to Simply Grey</title>
|
||||
<description><p>SimplyGrey is a simple, easy to use theme for Jekyll that compromises of mainly grey colours. A lot of people enjoy the simplistic look of grey and also find it easier to read.</p>
|
||||
|
||||
<h2 id="why-use-simply-grey">Why use Simply Grey?</h2>
|
||||
<p>There are lots of reasons why I think you should use Simply Grey but I will list the main ones that I believe are more of benefit to you, the user.</p>
|
||||
|
||||
<ul>
|
||||
<li><em>Easy to use and setup</em> - Jekyll has a huge range of documentation to get you started writing posts and the Simply Grey theme makes your blog look beautiful.</li>
|
||||
<li><em>Easy configuration</em> - I developed this theme in order to be as customisable as possible. If you want to add more links to the navigation bar, all you have to do is edit the _config.yaml file and the <code class="highlighter-rouge">urls</code> part of it.</li>
|
||||
<li><em>You can change it</em> - After being released with the MIT license (like Jekyll itself) you are free to change and basically do anything you want to this theme provided you keep the copyright notice in the files and distribute the license with it.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="jekyll">Jekyll</h2>
|
||||
<p>Jekyll is a static site generator developed in ruby that generates websites from markdown and many other formats. The benefit of this is that you can have a highly customisable blog where you can generate posts by writing easy markdown code whilst still retaining the small memory imprint that Jekyll has.</p>
|
||||
|
||||
<h3 id="code-snippets">Code Snippets</h3>
|
||||
<p>Code Snippets are one of the main reasons why I love Jekyll and I think you will too. All code snippets become highlighted with great colours when you write the code in markdown. Here is an example of highlighted Ruby code in a weather application that I have made.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&amp;mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">notify</span><span class="p">(</span><span class="n">summary</span><span class="p">)</span>
|
||||
<span class="no">Libnotify</span><span class="p">.</span><span class="nf">show</span><span class="p">(</span><span class="ss">:body</span> <span class="o">=&gt;</span> <span class="s2">"Current temperature is: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="si">}</span><span class="s2"> degrees celsius.</span><span class="se">\n</span><span class="s2">Current description of conditions: </span><span class="si">#{</span><span class="n">summary</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="si">}</span><span class="s2">"</span><span class="p">,</span> <span class="ss">:summary</span> <span class="o">=&gt;</span> <span class="s2">"Weather Update"</span><span class="p">,</span> <span class="ss">:timeout</span> <span class="o">=&gt;</span> <span class="mi">10</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">notify</span><span class="p">(</span><span class="n">parsejson</span><span class="p">())</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/mojombo/jekyll">Jekyll’s GitHub repo</a>.</p>
|
||||
|
||||
</description>
|
||||
<pubDate>Mon, 23 Dec 2013 00:18:23 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/simplygrey/2013/12/23/welcome-to-simply-grey.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/simplygrey/2013/12/23/welcome-to-simply-grey.html</guid>
|
||||
|
||||
|
||||
<category>simplygrey</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Parsing JSON with Ruby</title>
|
||||
<description><p>Parsing JSON with Ruby is actually extremely easy. All you have to do is have the json gem installed (<code class="highlighter-rouge">gem install json</code>) and call the <code class="highlighter-rouge">JSON.parse</code> method on the JSON data to convert it to ruby hashes. If you look at this small program here, you can see how I have implemented parsing JSON in Ruby.</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="c1">#!/usr/bin/env ruby</span>
|
||||
|
||||
<span class="nb">require</span> <span class="s1">'json'</span>
|
||||
<span class="nb">require</span> <span class="s1">'net/http'</span>
|
||||
<span class="nb">require</span> <span class="s1">'libnotify'</span>
|
||||
|
||||
<span class="k">def</span> <span class="nf">parsejson</span>
|
||||
<span class="n">file</span> <span class="o">=</span> <span class="s2">"http://api.openweathermap.org/data/2.5/find?q=London&amp;mode=json"</span>
|
||||
<span class="n">response</span> <span class="o">=</span> <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="p">.</span><span class="nf">get_response</span><span class="p">(</span><span class="no">URI</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">file</span><span class="p">))</span>
|
||||
<span class="n">weatherjson</span> <span class="o">=</span> <span class="n">response</span><span class="p">.</span><span class="nf">body</span>
|
||||
<span class="n">actual</span> <span class="o">=</span> <span class="no">JSON</span><span class="p">.</span><span class="nf">parse</span><span class="p">(</span><span class="n">weatherjson</span><span class="p">)</span>
|
||||
|
||||
<span class="c1"># check for errors</span>
|
||||
<span class="k">if</span> <span class="n">actual</span><span class="p">.</span><span class="nf">has_key?</span> <span class="s1">'Error'</span>
|
||||
<span class="k">raise</span> <span class="s2">"error with the url"</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="n">results</span> <span class="o">=</span> <span class="p">[]</span>
|
||||
|
||||
<span class="n">actual</span><span class="p">[</span><span class="s2">"list"</span><span class="p">].</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">listitem</span><span class="o">|</span>
|
||||
<span class="n">weather</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"weather"</span><span class="p">]</span>
|
||||
<span class="n">weather</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">weath</span><span class="o">|</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span><span class="p">(</span><span class="n">weath</span><span class="p">[</span><span class="s2">"description"</span><span class="p">])</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">main</span> <span class="o">=</span> <span class="n">listitem</span><span class="p">[</span><span class="s2">"main"</span><span class="p">]</span>
|
||||
<span class="n">temp</span> <span class="o">=</span> <span class="n">main</span><span class="p">[</span><span class="s2">"temp"</span><span class="p">]</span> <span class="o">-</span> <span class="mi">273</span><span class="o">.</span><span class="mi">15</span>
|
||||
<span class="n">results</span><span class="p">.</span><span class="nf">push</span> <span class="p">(</span><span class="s2">"%.2f"</span> <span class="o">%</span> <span class="n">temp</span><span class="p">)</span>
|
||||
<span class="k">end</span>
|
||||
|
||||
<span class="k">return</span> <span class="n">results</span>
|
||||
<span class="k">end</span></code></pre></figure>
|
||||
|
||||
</description>
|
||||
<pubDate>Mon, 23 Dec 2013 00:18:23 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/ruby/2013/12/23/ruby-json.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/ruby/2013/12/23/ruby-json.html</guid>
|
||||
|
||||
|
||||
<category>ruby</category>
|
||||
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<title>Welcome to Jekyll!</title>
|
||||
<description><p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class="highlighter-rouge">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>
|
||||
|
||||
<p>To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention <code class="highlighter-rouge">YYYY-MM-DD-name-of-post.ext</code> and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>
|
||||
|
||||
<p>Jekyll also offers powerful support for code snippets:</p>
|
||||
|
||||
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
|
||||
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">end</span>
|
||||
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
|
||||
<span class="c1">#=&gt; prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>
|
||||
|
||||
<p>Check out the <a href="http://jekyllrb.com/docs/home">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/jekyll/jekyll">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href="https://talk.jekyllrb.com/">Jekyll Talk</a>.</p>
|
||||
|
||||
</description>
|
||||
<pubDate>Tue, 19 Feb 2013 21:28:15 +0700</pubDate>
|
||||
<link>https://agusmakmun.github.io/jekyll/update/2013/02/19/welcome-to-jekyll.html</link>
|
||||
<guid isPermaLink="true">https://agusmakmun.github.io/jekyll/update/2013/02/19/welcome-to-jekyll.html</guid>
|
||||
|
||||
|
||||
<category>jekyll</category>
|
||||
|
||||
<category>update</category>
|
||||
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user