Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
642 additions
and
656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
tmp | ||
*.swp | ||
.bundle | ||
_site/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
url: http://ku1ik.com | ||
title: Odes of the Occult | ||
author: Marcin Kulik | ||
markdown: rdiscount | ||
download_prefix: "http://dl.dropbox.com/u/12119988/blog" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
/** | ||
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread] | ||
*/ | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = 'http://sickill.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=sickill">comments powered by Disqus.</a></noscript> | ||
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<title>{% if page.title %}{{ page.title }} - {% endif %}Odes of the Occult</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<meta name="description" content="{% if page.id %}{{ page.title }}{% else %}Personal blog of Marcin Kulik, curious software developer and open-source addict{% endif %}" /> | ||
<meta name="keywords" content="marcin kulik, mkulik, sickill, blog, programming, ruby, {{ page.tags | join:', '}}" /> | ||
<link rel="alternate" type="application/atom+xml" title="Atom" href="http://feeds.feedburner.com/SickillNet" /> | ||
<link rel="stylesheet" href="/stylesheets/reset.css" type="text/css" /> | ||
<link rel="stylesheet" href="/stylesheets/main.css" type="text/css" /> | ||
<link rel="stylesheet" href="/stylesheets/jquery.lightbox-0.5.css" type="text/css" /> | ||
<link rel="shortcut icon" href="/favicon.ico"> | ||
<link rel="openid.server" href="http://www.myopenid.com/server" /> | ||
<link rel="openid.delegate" href="http://sickill.myopenid.com/" /> | ||
<meta http-equiv="X-XRDS-Location" content="http://www.myopenid.com/xrds?username=sickill.myopenid.com" /> | ||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | ||
<script type="text/javascript" src="/javascripts/sickill.js"></script> | ||
<script type="text/javascript" src="/javascripts/jquery.lightbox-0.5.pack.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<li> | ||
<a href="{{ post.url }}">{{ post.title }}</a> | ||
[{{ post.date | date:'%Y/%m/%d' }}] | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% unless page.tags == empty %} | ||
<div class="tags"> | ||
Read more about | ||
{{ page.tags | sort | collect: '<a href="/topics/[item]">[item]</a>' | join: ', ' }}. | ||
</div> | ||
{% endunless %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ site.posts | map:'date' | map:'year' | uniq | sort | collect: '<a href="/[item]/">[item]</a> ' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
{% include head.html %} | ||
</head> | ||
<body {% if page.id %}class="post"{% endif %}> | ||
<div id="container" class="centered"> | ||
|
||
<div id="header"> | ||
{% if page.url != '/index.html' %} | ||
<a href="/" class="home" title="Go home!">⇧</a> | ||
{% endif %} | ||
<div class="logo"> <a href="/me" title="Who's Marcin?">MARCIN KULIK</a>'S: </div> | ||
</div> | ||
|
||
<div id="content"> | ||
{{ content }} | ||
</div> | ||
|
||
</div> | ||
|
||
{% if page.id %} | ||
<div id="lower"> | ||
<div class="comments centered"> | ||
{% include disqus.html %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<div id="footer" class="centered"> | ||
Browse through archives: {% include post_years.html %} | ||
</div> | ||
|
||
{% include analytics.html %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<div class="post"> | ||
<div class="header"> | ||
<h2>"{{ page.title }}"</h2> | ||
<p class="date">{{ page.date | date:'%B %d, %Y' }}</p> | ||
{% if page.img %} | ||
<img src="{{ page.img | replace:'\_','_' }}" /> | ||
{% endif %} | ||
</div> | ||
<div class="body"> | ||
{{ content }} | ||
</div> | ||
{% include post_tags.html %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<h2>{{ page.header }}</h2> | ||
|
||
<ul class="post-list"> | ||
{{ content }} | ||
</ul> | ||
|
||
{% if page.url == '/index.html' %} | ||
<p class="rss-feed"> | ||
<a href="http://feeds.feedburner.com/SickillNet" class="feed">Subscribe via RSS</a> | ||
</p> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: post_list | ||
header: writings on <em>{{subject}}</em> | ||
--- | ||
|
||
{% for post in site.posts %} | ||
{% if post.tags contains page.subject %} | ||
{% include post_link.html %} | ||
{% endif %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: post_list | ||
header: Year <em>{{subject}}</em> | ||
--- | ||
|
||
{% for post in site.posts %} | ||
{% if page.subject == post.date_year %} | ||
{% include post_link.html %} | ||
{% endif %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Jekyll | ||
|
||
# monkey-patched to add date_year | ||
|
||
class Post | ||
# Convert this post into a Hash for use in Liquid templates. | ||
# | ||
# Returns <Hash> | ||
def to_liquid | ||
self.data.deep_merge({ | ||
"title" => self.data["title"] || self.slug.split('-').select {|w| w.capitalize! || w }.join(' '), | ||
"url" => self.url, | ||
"date" => self.date, | ||
"date_year" => self.date.year, | ||
"id" => self.id, | ||
"categories" => self.categories, | ||
"next" => self.next, | ||
"previous" => self.previous, | ||
"tags" => self.tags, | ||
"content" => self.content }) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Sickill | ||
module Filters | ||
|
||
def uniq(arg) | ||
arg.uniq | ||
end | ||
|
||
def collect(items, pattern) | ||
[*items].map do |item| | ||
pattern.gsub('[item]', item.to_s) | ||
end | ||
end | ||
end | ||
end | ||
|
||
Liquid::Template.register_filter(Sickill::Filters) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module Jekyll | ||
|
||
class IndexGenerator < Generator | ||
safe true | ||
|
||
def generate(site) | ||
if site.layouts.key? 'year_index' | ||
site.posts.map { |p| p.date.year }.uniq.each do |year| | ||
write_index(site, year.to_s, year, 'year_index.html') | ||
end | ||
end | ||
|
||
if site.layouts.key? 'tag_index' | ||
site.tags.keys.each do |tag| | ||
write_index(site, File.join('topics', tag.to_s), tag, 'tag_index.html') | ||
end | ||
end | ||
end | ||
|
||
def write_index(site, dir, subject, template_name) | ||
index = IndexPage.new(site, site.source, dir, subject, template_name) | ||
index.render(site.layouts, site.site_payload) | ||
index.write(site.dest) | ||
site.pages << index | ||
end | ||
|
||
class IndexPage < Page | ||
def initialize(site, base, dir, subject, template_name) | ||
@site = site | ||
@base = base | ||
@dir = dir | ||
@name = 'index.html' | ||
|
||
self.process(@name) | ||
self.read_yaml(File.join(base, '_layouts'), template_name) | ||
self.data['header'].gsub!('{{subject}}', subject.to_s) if data['header'] | ||
self.data['subject'] = subject | ||
self.data['title'] = subject | ||
end | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
...g/2009-03-10-open-file-fast-0-9-1.textile → ...s/2009-03-10-open-file-fast-0-9-1.textile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
--- | ||
title: Open File Fast 0.9.1 | ||
date: 2009-03-10 21:34 | ||
tags: netbeans, off | ||
layout: post | ||
tags: | ||
- netbeans | ||
- 'off' | ||
--- | ||
|
||
Here is a quick update for Open File Fast plugin. | ||
|
||
I've noticed (and also got some feedback about it in anouncement comments) that switching projects when OFF is installed is slower than without plugin and Joe Rafaniello who is using it noticed some problems when using OFF with big projects. After a little investigation (with Joe's help) it appeared that events about project switching which OFF uses for reindexing project files are being sent by Netbeans in the UI thread and this was the cause of the slowdown. | ||
|
||
I've moved indexing into separate thread and this solved the problem. So here is improved OFF: <%= download_link "off-netbeans-0.9.1.nbm" %>. | ||
I've moved indexing into separate thread and this solved the problem. So here is improved OFF: "off-netbeans-0.9.1.nbm":https://github.com/downloads/sickill/off-plugin/off-netbeans-0.9.1.nbm". |
10 changes: 8 additions & 2 deletions
10
...sole-output-with-rainbow-ruby-gem.textile → ...sole-output-with-rainbow-ruby-gem.textile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.