Skip to content

Instantly share code, notes, and snippets.

View nukos's full-sized avatar

Ryuichi.N nukos

  • Tokyo/Japan
View GitHub Profile
@nukos
nukos / Example: $emitと$broadcast.markdown
Created May 21, 2015 04:05
Example: $emitと$broadcast
@nukos
nukos / gulpfile.js
Created April 7, 2015 00:54
image resize task.
var gulp = require('gulp');
var filelog = require('gulp-filelog');
var glob = require('glob-all');
var imageResize = require('gulp-image-resize');
var paths = {
srcDir : 'source/articles'
}
gulp.task( 'image-optim:thumb', function(){
@nukos
nukos / website_debut_check_list.md
Last active August 29, 2015 14:17
Webサイト公開前にやっておきたいことリスト

サイト立ち上げ時に最低限やっておきたいこと

  • GoogleAnalytics
    • サイトの登録
    • プロパティ設定
      • ウェブマスター ツール サイトの有効化
      • ユーザー属性とインタレスト カテゴリに関するレポートの有効化
      • 拡張リンク アトリビューションを使用するの有効化
    • トラッキング情報
  • 参照元除外リストの確認
@nukos
nukos / _colors.scss
Last active August 29, 2015 14:16
Prism CSS Color Palette Management.
// Prism 0.1.0
// http://prism.nukos.kitchen/
// Copyright 2015 nuko's kitchen
// MIT License
$COLOR-PRIMARY: #fafafa !default;
$COLOR-TEXT_BASE: #444444 !default;
$COLOR-TEXT_INVERSE: #eeeeee !default;
@nukos
nukos / _color_palettes.scss
Last active August 29, 2015 14:16
SCSS Color Management Mixins.
// 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;
@nukos
nukos / example.html
Created February 12, 2015 02:39
Embed Example
<h1>Embed Example</h1>
<p>hoge</p>
@nukos
nukos / tag_order.rb
Last active August 29, 2015 14:13
Sort the tag of jekyll in Posts.
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 August 29, 2015 14:13
CSVの行に一括で日付を追加する
# すべての行の先頭に日付を追加
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 August 29, 2015 14:12
SCSS color palette mixin.
$palettes: (
'typo': (
'base': (
'normal': #E6ECF2,
'light' : #ffffff,
'dark' : #dddddd
),
'inverse': (
'normal': #444444,
@nukos
nukos / httpd.conf
Last active August 29, 2015 14:09
Wordpress Apache Setting
ServerTokens ProductOnly
SercerRoot "/etc/httpd"
Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
Listen 80
#load modules