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
### Keybase proof | |
I hereby claim: | |
* I am foxzool on github. | |
* I am foxzool (https://keybase.io/foxzool) on keybase. | |
* I have a public key ASAkw3BwISffC5U6iDLC1Wor6P6luBHTkvdQsCkw50ByhQo | |
To claim this, I am signing this object: |
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
.DS_Store | |
.bundle | |
.project | |
.idea | |
nbproject | |
config/database.yml | |
log/* | |
tmp/* | |
db/*.sqlite3 | |
db/schema.rb |
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
zh-CN: | |
activerecord: | |
models: | |
user: '用户' | |
attributes: | |
user: | |
email: '邮箱' | |
password: '密码' | |
password_confirmation: '确认密码' |
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
zh-CN: | |
simple_form: | |
"yes": '是' | |
"no": '否' | |
required: | |
text: '需要' | |
mark: '*' | |
# You can uncomment the line below if you need to overwrite the whole required html. | |
# When using html, text and mark won't be used. | |
# html: '<abbr title="required">*</abbr>' |
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
zh-CN: | |
flash: | |
actions: | |
create: | |
notice: '%{resource_name} 成功创建.' | |
update: | |
notice: '%{resource_name} 成功更新.' | |
destroy: | |
notice: '%{resource_name} 成功删除.' | |
alert: '%{resource_name} 不能删除.' |
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
zh-CN: | |
errors: | |
messages: | |
not_found: "没有找到" | |
already_confirmed: "已经确认" | |
not_locked: "没有锁定" | |
not_saved: | |
one: "有 1 个错误发生导致「%{resource}」无法被保存。" | |
other: "有 %{count} 个错误发生导致「%{resource}」无法被保存。" |
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
require "thor/shell" | |
say("Modifying a new Rails app ...", :yellow) | |
#---------------------------------------------------------------------------- | |
# Configure | |
#---------------------------------------------------------------------------- | |
=begin | |
unless options[:database] == 'sqlite3' | |
username = ask("What's your database username[root]") | |
username = 'root' if username.blank? |
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
class AppBuilder < Rails::AppBuilder | |
include Thor::Actions | |
include Thor::Shell | |
def test | |
append_test_gems | |
rspec | |
cucumber | |
jasmine | |
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
# zh-CN translations for Typus (template) | |
# by ZoOL <http://github.com/zhooul> | |
zh-CN: | |
"A valid token is required": "需要验证令牌" | |
"Actions": "动作" | |
"Active": "已激活" | |
"Add": "新增" | |
"Add %{resource}": "新增 %{resource}" | |
"Add new": "新增" |
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
location ~/(.*)/wp-admin/$ { | |
index index.php; | |
rewrite ^/(.*)/wp-admin/$ /wp-admin/ break; | |
} | |
location ~ /(.*)/wp-([a-zA-Z])*\.php { | |
index index.php; | |
rewrite ^/(.*)/(.*\.php) /$2 last; | |
} | |
location ~ /(.*)/(wp-(?:admin|content|includes).*\.php) { | |
root /var/www/html/wordpress/; |