A design language for premium, dark-themed knowledge interfaces.
"Numbers are heroes, labels are whispers."
To expose UDP service via NGINX, you need four things:
TCP/80 and TCP/443)udp-services in the ingress-nginx namespace.See https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/exposing-tcp-udp-services.md
| RSpec::Matchers.define :be_monotonically_increasing do | |
| match do |actual| | |
| derivative = actual.each_cons(2).map{|x, y| y <=> x} | |
| derivative.all?{|v| v >= 0} | |
| end | |
| failure_message_for_should do |actual| | |
| "expected array #{actual.inspect} to be monotonically increasing" | |
| end |
| require 'resque/tasks' | |
| namespace :ns do | |
| desc "test task accepts param" | |
| task :task, [:param] => [:environment] do |t,args| | |
| abort "Please specify a param!" unless args[:param] | |
| puts args[:param] | |
| end | |
| end |
| # In console: | |
| # Ignores the setting up of Test::Unit by default | |
| $ rails new app_name -T | |
| # In Gemfile add the following gems: | |
| group :test, :development do | |
| gem 'turn' | |
| gem 'rspec-rails' | |
| gem 'capybara' | |
| gem 'guard-rspec' |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |