Давай представим ситуацию, когда тебе, в зависимости от какой-то логики нужно вернуть данные разного типа, например есть такая функция:
def function(foo, bar)
result = if foo > bar
10
else
"wrong"
end
end
Давай представим ситуацию, когда тебе, в зависимости от какой-то логики нужно вернуть данные разного типа, например есть такая функция:
def function(foo, bar)
result = if foo > bar
10
else
"wrong"
end
end
Have you ever wanted to begin OpenSource development, but just couldn’t get down to it? Or maybe you already have a project, but don’t have enough time and effort to support it?
Here at OSS Board we collect tasks that are waiting for their heroes.
The two following projects inspired me to create OSS Board:
Вы давно хотите заняться OpenSource разработкой, но никак не доходят руки?
У вас есть свой проект, но не хватает сил и времени на его поддержку?
На [OSS Board] (http://www.ossboard.org) мы собираем задачи, которые ждут своих героев.
На создание OSS Board меня вдохновили два проекта.
I hereby claim:
To claim this, I am signing this object:
# This file is used by Rack-based servers to start the application. | |
require ::File.expand_path('../config/environment', __FILE__) | |
#prevents DNS rebinding attacks | |
class DNSBinding | |
VALID_HOSTS = %w{localhost:9292 myshop.dev:3000 myshopprod.com} | |
def initialize(app) | |
@app = app | |
end |
📆 Jun 23-24, 2016
🌏 Web site: http://reddotrubyconf.com/ Twitter: http://twitter.com/reddotrubyconf
💁 Ping me @cheeaun on Twitter or leave a comment below if you found some awesome stuff for #rdrc2016. This gist will be updated whenever there's new stuff.
🕙 Previously, on RedDotRubyConf...
require 'benchmark/ips' | |
GITHUB_COM = %r{https?://(?:www\.)?github\.com}i | |
Benchmark.ips do |x| | |
x.report('with o') { %r{\A#{GITHUB_COM}/([^/]+)/?\z}o } | |
x.report('without o') { %r{\A#{GITHUB_COM}/([^/]+)/?\z} } | |
x.compare! | |
end |