弗莱克斯纳
[按] 30年代美国普林斯顿大学校长亚伯拉罕·弗莱克斯纳(Abraham Flexner)教授曾以 “无用知识的有用性”为题,发表过一篇在科学界有影响的文章。该文章强调了基础研 究以及自由探索的重要性。全文一万余字,现节译如下,以餐读者。
智力与精神生活在表面上是一种无用型活动。人们之所以大量从事这种活动,是因
# .github/workflows/build.yml | |
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test |
<snippet> | |
<content><![CDATA[ | |
Upgrade rails from ${1:old_version} to ${2:new_version}. | |
- Updated: [rails](http://github.com/rails/rails), [${1:old_version}...${2:new_version}](https://github.com/rails/rails/compare/v${1:old_version}...v${2:new_version}) | |
- Updated: actionmailer, ${1:old_version}...${2:new_version} ([CHANGELOG](https://github.com/rails/rails/blob/v${2:new_version}/actionmailer/CHANGELOG.md)) | |
- Updated: actionpack, ${1:old_version}...${2:new_version} ([CHANGELOG](https://github.com/rails/rails/blob/v${2:new_version}/actionpack/CHANGELOG.md)) | |
- Updated: actionview, ${1:old_version}...${2:new_version} ([CHANGELOG](https://github.com/rails/rails/blob/v${2:new_version}/actionview/CHANGELOG.md)) | |
- Updated: activejob, ${1:old_version}...${2:new_version} ([CHANGELOG](https://github.com/rails/rails/blob/v${2:new_version}/activejob/CHANGELOG.md)) | |
- Updated: activemodel, ${1:old_version}...${2:new_version} ([CHANGELOG](https://github.com/rails/rails/blob/v${2:new_version}/activemodel/CHANGELOG.md)) |
language: ruby | |
bundler_args: --retry=3 --jobs=3 | |
cache: bundler | |
sudo: false | |
rvm: | |
- 2.3 | |
- 2.2 | |
- 2.1 | |
- 2.0 | |
- 1.9.3 |
This is how we test that all translation keys match up between locales.
Stuff that only goes in one locale (such as an admin section) or that can't be translated yet (if you use external translators) can simply go in files that don't match the path "config/locales/??.yml", like "config/locales/wip.fo.yml".
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#ZSH_THEME="yaci" | |
ZSH_THEME="yaci-agnoster" |
require 'active_support' | |
class Record | |
include ActiveSupport::Callbacks | |
define_callbacks :save | |
def save | |
run_callbacks :save do | |
puts "save!" | |
end |
<!--HTML--> | |
<select> | |
<option value="Beijing Provincial">Beijing Provincial</option> | |
<option value="Chongqing Provincial">Chongqing Provincial</option> | |
<option value="Shanghai Provincial">Shanghai Provincial</option> | |
<option value="Tianjin Provincial">Tianjin Provincial</option> | |
<option value="Hong Kong Provincial">Hong Kong Provincial</option> | |
<option value="Macau Provincial">Macau Provincial</option> | |
<option value="Anqing Prefectural">Anqing Prefectural</option> | |
<option value="Bengbu Prefectural">Bengbu Prefectural</option> |
bundle update
is a good practicemaster
)