<commit_before>---
layout: default
permalink: /rails/
---
%article.container{ role: "main" }
  .row
    .col-md-4
      .panel.panel-default
        .panel-heading Rails？
        .panel-body
          Rails是一套用Ruby语言编写的网页开发框架，用它能快速开发出一个新的网页应用程序。
          Rails遵循更少的代码、约定优于配置等原则。
  .row
    .col-md-8
      .panel.panel-default
        .panel-heading 安装 Rails
        .panel-body
          %pre
            = preserve do
              :escaped
                sudo apt-get install gcc make libssl-dev
                wget https://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
                tar xfvz ruby-2.0.0-p247.tar.gz
                cd ruby-2.0.0-p247
                ./configure
                make
                sudo make install
                sudo gem install -V rails
    .col-md-4
      .panel.panel-default
        .panel-heading 一大堆关于Ruby/Rails的链接
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://ruby-doc.org/core-2.0.0/" } Ruby Documentation
          %li.list-group-item
            %a{ href: "http://guides.rubyonrails.org/" } Ruby on Rails Guides
          %li.list-group-item
            %a{ href: "http://ihower.tw/rails3/index.html" } Ruby on Rails 實戰聖經
          %li.list-group-item
            %a{ href: "https://www.ruby-toolbox.com/" } The Ruby Toolbox
          %li.list-group-item
            %a{ href: "http://railscasts.com/" } Railscasts
          %li.list-group-item
            %a{ href: "http://learnxinyminutes.com/docs/ruby/" } Learn Ruby in Y Minutes
          %li.list-group-item
            %a{ href: "https://github.com/bbatsov/ruby-style-guide" } Ruby coding style guide
  .row
    .col-md-4
      .panel.panel-default
        .panel-heading Converters
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://www.haml-converter.com/" } HTML -> HAML
            ,
            %a{ href: "http://html2jade.com/" } HTML <-> JADE
          %li.list-group-item
            %a{ href: "http://css2sass.heroku.com/" } CSS -> SASS/SCSS
            ,
            %a{ href: "http://sass-lang.com/try.html" } SCSS -> CSS
          %li.list-group-item
            %a{ href: "http://js2coffee.org/" } JS <-> CoffeeScript
    .col-md-4
      .panel.panel-default
        .panel-heading Compressors
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://closure-compiler.appspot.com/" } Closure Compiler
            ,
            %a{ href: "http://lisperator.net/uglifyjs/#demo" } UglifyJS
            ,
            %a{ href: "http://jsbeautifier.org/" } JS Beautifier
          %li.list-group-item
            %a{ href: "http://cssminifier.com/" } CSS Minifier
            ,
            %a{ href: "http://www.codebeautifier.com/" } Code Beautifier
          %li.list-group-item
            %a{ href: "http://compressjpg.com/" } JPG
            ,
            %a{ href: "http://compresspng.com/" } PNG
            ,
            %a{ href: "http://www.jpegmini.com/main/shrink_photo" } JPEGMini
            ,
            %a{ href: "http://imageoptim.com/" } ImageOptim
    .col-md-4
      .panel.panel-default
        .panel-heading Validators
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://yamllint.com/" } YAML
          %li.list-group-item
            %a{ href: "http://jsonlint.com/" } JSON
<commit_msg>change layout and add link;<commit_after>---
layout: default
permalink: /rails/
---
%article.container{ role: "main" }
  .row
    .col-md-8
      .panel.panel-default
        .panel-heading Rails？
        .panel-body
          Rails是一套用Ruby语言编写的网页开发框架，用它能快速开发出一个新的网页应用程序。
          Rails遵循更少的代码、约定优于配置等原则。
      .panel.panel-default
        .panel-heading 安装 Rails
        .panel-body
          %pre
            = preserve do
              :escaped
                sudo apt-get install gcc make libssl-dev
                wget https://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
                tar xfvz ruby-2.0.0-p247.tar.gz
                cd ruby-2.0.0-p247
                ./configure
                make
                sudo make install
                sudo gem install -V rails
    .col-md-4
      .panel.panel-default
        .panel-heading 一大堆关于Ruby/Rails的链接
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://ruby-doc.org/core-2.0.0/" } Ruby Documentation
          %li.list-group-item
            %a{ href: "http://guides.rubyonrails.org/" } Ruby on Rails Guides
          %li.list-group-item
            %a{ href: "http://ihower.tw/rails3/index.html" } Ruby on Rails 實戰聖經
          %li.list-group-item
            %a{ href: "https://www.ruby-toolbox.com/" } The Ruby Toolbox
          %li.list-group-item
            %a{ href: "http://railscasts.com/" } Railscasts
          %li.list-group-item
            %a{ href: "http://learnxinyminutes.com/docs/ruby/" } Learn Ruby in Y Minutes
          %li.list-group-item
            %a{ href: "https://github.com/bbatsov/ruby-style-guide" } Ruby coding style guide
  .row
    .col-md-4
      .panel.panel-default
        .panel-heading Converters
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://www.haml-converter.com/" } HTML -> HAML
            ,
            %a{ href: "http://html2jade.com/" } HTML <-> JADE
          %li.list-group-item
            %a{ href: "http://css2sass.heroku.com/" } CSS -> SASS/SCSS
            ,
            %a{ href: "http://sass-lang.com/try.html" } SCSS -> CSS
          %li.list-group-item
            %a{ href: "http://js2coffee.org/" } JS <-> CoffeeScript
    .col-md-4
      .panel.panel-default
        .panel-heading Compressors
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://closure-compiler.appspot.com/" } Closure Compiler
            ,
            %a{ href: "http://lisperator.net/uglifyjs/#demo" } UglifyJS
            ,
            %a{ href: "http://jsbeautifier.org/" } JS Beautifier
          %li.list-group-item
            %a{ href: "http://cssminifier.com/" } CSS Minifier
            ,
            %a{ href: "http://www.codebeautifier.com/" } Code Beautifier
          %li.list-group-item
            %a{ href: "http://compressjpg.com/" } JPG
            ,
            %a{ href: "http://compresspng.com/" } PNG
            ,
            %a{ href: "http://www.jpegmini.com/main/shrink_photo" } JPEGMini
            ,
            %a{ href: "http://imageoptim.com/" } ImageOptim
    .col-md-4
      .panel.panel-default
        .panel-heading Validators / Viewers
        %ul.list-group
          %li.list-group-item
            %a{ href: "http://yamllint.com/" } YAML
          %li.list-group-item
            %a{ href: "http://jsonlint.com/" } JSON
          %li.list-group-item
            %a{ href: "http://jsonmate.com/" } JSONMate

{'fraction_non_alphanumeric': 0.14528661486585545, 'fraction_numerical': 0.009529394516933002, 'mean_word_length': 1.4390418305327137, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1628220', 'n_tokens_mistral': 2440, 'n_tokens_neox': 2372, 'n_words': 414}