This file contains hidden or 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
| $(".more-link").click(function() { | |
| var $this = $(this); | |
| var $more = $this.parents(".entry-more"); | |
| var $content = $more.parents(".entry-content"); | |
| var file = $this.attr("href").replace("/#more", "/"); | |
| $more.remove(); | |
| $content.after("<div class='entry-content-more'><p class='more-loading'><span>now loading...</span></p></div>"); | |
| var $more_content = $content.next(); |
This file contains hidden or 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
| # 使用している jekyll, compass のバージョンを取得する plugin | |
| # {% varsion markup %} | |
| # @markup jekyll, compass | |
| require 'rubygems' | |
| require 'compass' | |
| module Jekyll | |
| class VersionTag < Liquid::Tag | |
| def initialize(tag_name, markup, tokens) |
This file contains hidden or 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
| # Liquid filter | |
| # format_date 2013年01月01日 | |
| # w3cdtf_date 2013-01-01 | |
| module Jekyll | |
| module AssetFilter | |
| def format_date(date) | |
| "#{date.strftime('%Y年%m月%d日')}" | |
| end |
This file contains hidden or 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
| "--------------- | |
| " Neobundle | |
| "---------------- | |
| set nocompatible | |
| filetype off | |
| if has('vim_starting') | |
| set runtimepath+=~/.vim/bundle/neobundle.vim | |
| call neobundle#rc(expand('~/.vim/bundle/')) | |
| endif |
This file contains hidden or 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
| <?php | |
| class AssignedRolesSeeder extends Seeder { | |
| /** | |
| * Run the database seeds. | |
| * | |
| * @return void | |
| */ | |
| public function run() |
This file contains hidden or 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
| private int GetIEVersion() | |
| { | |
| var r = new Regex(@"(\d{1,2})\.(\d{1,2})\.[\d]+.[\d]+"); | |
| var m = r.Match(Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Internet Explorer").GetValue("Version").ToString()); | |
| var ver1 = Convert.ToInt32(m.Groups[1].Value); | |
| var ver2 = Convert.ToInt32(m.Groups[2].Value); | |
| if (ver1 == 9 && ver2 > 9) | |
| { |
This file contains hidden or 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
| private void KeyPressNumberOnly(Object sender, KeyEventArgs e) | |
| { | |
| if ((e.Key < Key.D0 || e.Key > Key.D9) && | |
| (e.Key < Key.NumPad0 || e.Key > Key.NumPad9) && | |
| e.Key != Key.Back && | |
| e.Key != Key.Delete && | |
| e.Key != Key.Left && | |
| e.Key != Key.Right && | |
| e.Key != Key.Tab) | |
| { |
This file contains hidden or 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
| .layout { | |
| // display | |
| &.horizontal, | |
| &.horizontal-reverse, | |
| &.vertical, | |
| &.vertical-reverse { | |
| display: flex; | |
| } | |
| &.inline { |
This file contains hidden or 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
| pre[prism] { | |
| // color | |
| @base00: #fff; | |
| @base0: #333; | |
| @base1: #969896; | |
| @brown: #693a17; | |
| @orange: #df5000; | |
| @red: #b52a1d; | |
| @magenta: #a71d5d; | |
| @violet: #795da3; |
This file contains hidden or 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
| pre.highlight { | |
| // prefix | |
| @base: hljs-; | |
| @lang: language-; | |
| // color | |
| @base00: #fff; | |
| @base0: #333; | |
| @base1: #969896; | |
| @brown: #693a17; |