привет
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
nice |
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
werwerw |
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 'benchmark' | |
def byte_can_encode(str) | |
str.each_char do |c| | |
# simple range checks for most common characters (' '..'_') or ('a'..'~') | |
b = c.getbyte(0) | |
unless b >= 0x20 && b <= 0x5F || b >= 0x61 && b <= 0x7E | |
return false | |
end | |
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
env CFLAGS='-g -O2' RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 2.0.0-p0 |
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
╭─yury@airbot ~/Work/deck ‹ruby-1.9.3› ‹master*› | |
╰─$ rake 1 ↵ | |
Build ./build/iPhoneSimulator-5.1-Development | |
rake aborted! | |
can't convert Pathname into String | |
Tasks: TOP => default => simulator => build:simulator | |
(See full trace by running task with --trace) |
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
╭─yury@airbot ~/Work/deck ‹ruby-1.9.3› ‹master*› | |
╰─$ rake | |
Build ./build/iPhoneSimulator-5.1-Development | |
rake aborted! | |
can't convert Pathname into String | |
Tasks: TOP => default => simulator => build:simulator | |
(See full trace by running task with --trace) |
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
# Sample configuration file for Unicorn (not Rack) | |
# | |
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete | |
# documentation. | |
RAILS_ENV = 'development' | |
RAILS_ROOT = File.expand_path('../..', __FILE__) | |
# Use at least one worker per core if you're on a dedicated server, | |
# more will usually help for _short_ waits on databases/caches. | |
worker_processes RAILS_ENV == 'production' ? 6 : 1 |
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
rvm use ruby-1.9.3-p0-new_hash2 | |
which ruby | |
/Users/yury/.rvm/rubies/ruby-1.9.3-p0-new_hash2/bin/ruby | |
/usr/bin/time -l rspec spec/models/import_spec.rb | |
61.94 real 63.29 user 1.42 sys | |
184184832 maximum resident set size | |
0 average shared memory size | |
0 average unshared data size |