Encore's Blog

Web 开发者 | 专注于WEB应用程序的软件开发人员
How to know the cost of loading all gems in your project
开发 2017-07-15 邵壮

Add benchmark to config/boot.rb require 'benchmark' def require(file) puts Benchmark.measure("") { super }.format("%t require #{file}") end Run command in iterm2 rails runner 1 | sort -nr | head -n 150 You will see all output like this: encore:blog (master) : 14h42m -> rails runner 1 | sort -nr | head -n 150 0.050000 require i18n 0.030000 require securerandom 0.030000 re...

标签: Ruby Rails
Mac Iterm2 配色方案
开发 2017-07-04 Encore Shao

# Iterm2 配色 1. 先要修改 ~/.bash_profile. 添加代码如下: # enables colorin the terminal bash shell export export CLICOLOR=1 # sets up thecolor scheme for list export export LSCOLORS=gxfxcxdxbxegedabagacad # sets up theprompt color (currently a green similar to linux terminal) export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ' # enables colorfor iTerm export TER...

开发 2017-06-28 Encore Shao

制作前准备16G U盘, Mac电脑 制作U盘安装请备份数据. 格式化安装会丢失硬盘数据.  从 App Store 中下载完整的 OS X Yosemite 安装程序,移动该安装程序到应用程序(/Applications)文件夹中。 格式化U盘,并启动磁盘工具对该介质执行”抹掉”操作,抹掉前注意备份重要数据。盘符名请命名为”Yosemite” 格式[Mac OS Extended (Journaled)]/[Mac OS 扩展(日志式)] 打开”终端”开始制作安装盘: 1 在终端输入下面的命令 sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Vol...

标签: Mac Yosemite
This website uses cookies to ensure you get the best experience on our website.
Got it!