mirror of
https://github.com/aljazceru/cryptoanarchywiki.github.io.git
synced 2025-12-18 13:44:20 +01:00
Update big changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Parsing JSON with Ruby"
|
||||
date: 2013-12-23 00:18:23
|
||||
date: 2013-12-23 00:18:23 +0700
|
||||
categories: ruby
|
||||
---
|
||||
Parsing JSON with Ruby is actually extremely easy. All you have to do is have the json gem installed (`gem install json`) and call the `JSON.parse` 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.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Welcome to Simply Grey"
|
||||
date: 2013-12-23 00:18:23
|
||||
date: 2013-12-23 00:18:23 +0700
|
||||
categories: simplygrey
|
||||
---
|
||||
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.
|
||||
@@ -18,6 +18,7 @@ Jekyll is a static site generator developed in ruby that generates websites from
|
||||
|
||||
### Code Snippets
|
||||
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.
|
||||
|
||||
{% highlight ruby %}
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Email BackEnd with SMTP Gmail"
|
||||
date: 2016-04-19 02:28:15
|
||||
date: 2016-04-19 02:28:15 +0700
|
||||
categories: django
|
||||
---
|
||||
|
||||
Add this configurations in your `settings.py`
|
||||
|
||||
This configurations is if you work with `smtp.gmail.com`, other smtp is similiar with configurations.
|
||||
|
||||
* Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha
|
||||
* Change to active: https://www.google.com/settings/security/lesssecureapps
|
||||
* Unlock Captha: [https://accounts.google.com/DisplayUnlockCaptcha](https://accounts.google.com/DisplayUnlockCaptcha)
|
||||
* Change to active: [https://www.google.com/settings/security/lesssecureapps](https://www.google.com/settings/security/lesssecureapps)
|
||||
|
||||
```
|
||||
EMAIL_HOST = 'smtp.gmail.com'
|
||||
|
||||
25
_posts/2016-04-19-welcome-to-jekyll.markdown
Normal file
25
_posts/2016-04-19-welcome-to-jekyll.markdown
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Welcome to Jekyll!"
|
||||
date: 2013-02-19 21:28:15 +0700
|
||||
categories: jekyll update
|
||||
---
|
||||
You’ll find this post in your `_posts` 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 `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
|
||||
|
||||
To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works.
|
||||
|
||||
Jekyll also offers powerful support for code snippets:
|
||||
|
||||
{% highlight ruby %}
|
||||
def print_hi(name)
|
||||
puts "Hi, #{name}"
|
||||
end
|
||||
print_hi('Tom')
|
||||
#=> prints 'Hi, Tom' to STDOUT.
|
||||
{% endhighlight %}
|
||||
|
||||
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
|
||||
|
||||
[jekyll-docs]: http://jekyllrb.com/docs/home
|
||||
[jekyll-gh]: https://github.com/jekyll/jekyll
|
||||
[jekyll-talk]: https://talk.jekyllrb.com/
|
||||
Reference in New Issue
Block a user