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
cookbook_file "/etc/profile.d/proxy.sh" do | |
source "proxy.sh" | |
mode "0755" | |
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
require 'bundler/capistrano' | |
set :application, "redmine" | |
set :repository, "git://github.com/redmine/redmine.git" | |
set :use_sudo, false | |
set :git_enable_submodules, true | |
set :default_environment, { |
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
load 'config/deploy' |
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
eval('%d.upto(%d){|x|puts ("FizzBuzz "[n=x**4%%-15,n+13]||x.to_s).strip}'%$*) |
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
guard 'rspec' do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
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
# -*- coding:utf-8 -*- | |
require 'bundler/setup' | |
Bundler.require | |
require 'redcarpet' | |
class DenDen < Redcarpet::Render::HTML | |
def normal_text text | |
text.gsub(/\^([^\^]+?)\^/) do |_| | |
"<span class='tcy'>#{$1}</span>" | |
end.gsub(%r!{([^|]+)\|(.+)}!) do |_| |
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
gem "rspec-rails", :group => "test" | |
generate "rspec:install" | |
gem "slim-rails" | |
gem_group :development do | |
gem 'pry-rails' | |
gem 'pry-remote' | |
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
source "https://rubygems.org" | |
gem "veewee", github: 'jedi4ever/veewee' | |
gem "vagrant", github: 'mitchellh/vagrant', :tag => 'v1.1.4' |
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
doctype 5 | |
html | |
head | |
title = content_for?(:title) ? yield(:title) : (controller.controller_name + " : " + controller.action_name) | |
= stylesheet_link_tag :application | |
= javascript_include_tag :application | |
= csrf_meta_tags | |
/[ if lt IE 9 ] | |
script src="//html5shiv.googlecode.com/svn/trunk/html5.js" | |
body |
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
def md(content) | |
gfm.render(content).html_safe | |
end | |
private | |
class XHTMLwithPygments < Redcarpet::Render::XHTML | |
def block_code(code, language) | |
::Pygments.highlight(code, lexer: language) | |
end | |
OlderNewer