Skip to content

Instantly share code, notes, and snippets.

Ryuichi.N nukos

Block or report user

Report or block nukos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nukos
nukos / _color_palettes.scss
Last active Aug 29, 2015
SCSS Color Management Mixins.
View _color_palettes.scss
// Mixin to return the color code
//
// $palettes - Array containing the palette.
// $palette_name - The name of the palette.
// $property_name - The name of the property.
// $tone_name - (option) The name of the tone.
// $state_name - (option) The name of the state of tone.
//
@function palette( $palettes, $palette_name, $property_name, $state_name: 'normal', $tone_name: 'base' ){
$error_color : #cc0000;
View example.html
<h1>Embed Example</h1>
<p>hoge</p>
@nukos
nukos / index.html
Created Jan 31, 2015
Jekyll for archive list
View index.html
{% for post in site.posts %}
{% capture month %}{{ post.date | date: '%m%Y' }}{% endcapture %}
{% capture nmonth %}{{ post.next.date | date: '%m%Y' }}{% endcapture %}
{% if month != nmonth %}
<li class="list-item">
<a href="/{{ post.date | date: '%Y/%m/' }}">
<span class="item-year" title="{{ post.date | date: '%Y年' }}">{{ post.date | date: '%Y' }}</span>
<span class="item-month" title="{{ post.date | date: '%m月' }}">{{ post.date | date: '%m' }}</span>
</a>
</li>
@nukos
nukos / category_archive.html
Last active Feb 10, 2016
Jekyll for category archive.
View category_archive.html
---
layout: default
---
<h2 class="post_title">{{page.title}}</h2>
<ul>
{% for post in site.posts %}
{% for category in post.category %}
{% if category == page.category %}
<li class="archive_list">
<time datetime='{{post.date | date: "%Y-%m-%d"}}'>{{post.date | date: "%m/%d/%y"}}</time> <a class="archive_list_article_link" href='{{post.url}}'>{{post.title}}</a>
View font-awesome-jekyll.rb
module Jekyll
class RenderFontAwesomeTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@classes = text.split(' ')
end
def render(context)
# local vars
@nukos
nukos / tag_order.rb
Last active Aug 29, 2015
Sort the tag of jekyll in Posts.
View tag_order.rb
module Jekyll
module Filters
def tag_order(tags, order, orderby='ASC')
# order
case order
when 'count' then
order_tags = tags.sort_by { | t, posts | posts.count }
end
@nukos
nukos / add_date_for_csv.sh
Last active Aug 29, 2015
CSVの行に一括で日付を追加する
View add_date_for_csv.sh
# すべての行の先頭に日付を追加
LC_ALL=C sed -i -e 's/^/2014\/12\/08,/g' 2014-12-08.csv
# 先頭行の項目名を日付に修正する
LC_ALL=C sed -i -e '1s/^2014\/12\/08/日付/g' 2014-12-08.csv
# 月ごとにCSVを結合する
cat 2014-12-*.csv > 2014-12.csv
# すべてのCSVを結合する
@nukos
nukos / _colors.scss
Last active Aug 29, 2015
SCSS color palette mixin.
View _colors.scss
$palettes: (
'typo': (
'base': (
'normal': #E6ECF2,
'light' : #ffffff,
'dark' : #dddddd
),
'inverse': (
'normal': #444444,
@nukos
nukos / httpd.conf
Last active Aug 29, 2015
Wordpress Apache Setting
View httpd.conf
ServerTokens ProductOnly
SercerRoot "/etc/httpd"
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
Listen 80
#load modules
@nukos
nukos / _config.yml
Last active Feb 12, 2017
Jekyll Plugin: Liquid tag FontAwesome icon.
View _config.yml
fa_prefix: #default: fa
fa_exclude:
You can’t perform that action at this time.