Skip to content

Instantly share code, notes, and snippets.

# タンテ右翼
https://soundcloud.com/turntablerw/tracks
# アライズバトル
DJ Shun
https://www.youtube.com/watch?v=aLvL9XooksA
DJ Kouji
https://www.youtube.com/watch?v=GR1ugHn8LAk
<%= link_to '無料で登録',
signup_path,
class: 'inline-block border-b-4 active:mt-1 active:border-b-0 bg-green-400 border-green-500 font-bold py-2 px-5 rounded-lg text-base text-white hover:text-white' %>
<%= link_to '無料で登録', library_index_path, class: 'primary-button' %>
.primary-button {
@apply bg-green-400;
@apply border-b-4 border-green-500;
@apply inline-block;
@apply py-2 px-5;
@apply rounded-lg;
@apply text-base text-white font-bold;
&:active {
@apply border-b-0;
<div class="flex content-end justify-center md:justify-start mb-12 md:mb-0">
<%= link_to '無料で登録', signup_path, class: 'primary-button' %>
<%= tag.a 'どんな仕組み?', class: 'stroked-button',
data: { controller: 'smooth-scroll',
smooth_scroll_anchor: 'learning-methods',
action: 'click->smooth-scroll#scroll' } %>
</div>
<%= link_to 'ライブラリを見る',
library_index_path,
class: 'inline-block border-b-4 active:mt-1 active:border-b-0 bg-green-400 border-green-500 font-bold py-2 px-5 rounded-lg text-base text-white hover:text-white' %>
@yasuhito
yasuhito / title_helper.rb
Created March 23, 2019 04:12
タイトルのヘルパ
module TitleHelper
def title(text: nil, size: nil, url: nil, spaced: false, &block)
body = text || capture(&block) || raise('Text is a mandatory.')
klass = CssClassString::Helper.new('title', "is-#{size}" => size, 'is-spaced' => spaced).to_s
if url
link_to body, url, class: klass
else
tag.__send__ "h#{size || 3}", body, class: klass
end
end
/home/yasuhito/.rvm/rubies/ruby-2.1.8/bin/ruby -I/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.4.3/lib:/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-support-3.4.1/lib /home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.4.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
You are using HTTP Gem 0.5.1. WebMock supports version >= 0.6.0.
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
VNetAPIClient
has implemented and tested all routes in the OpenVNet WebAPI
@yasuhito
yasuhito / -
Created February 29, 2016 05:09
/home/yasuhito/.rvm/rubies/ruby-2.1.8/bin/ruby -I/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.2.3/lib:/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-support-3.2.2/lib /home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
You are using HTTP Gem 0.5.1. WebMock supports version >= 0.6.0.
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.
/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/sinatra-contrib-1.4.4/lib/sinatra/respond_with.rb:4: warning: variable $KCODE is no longer effective; ignored
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
VNetAPIClient
class RoutingSwitch < Trema::Controller
delegate :switch_ready, to: :@topology
delegate :features_reply, to: :@topology
delegate :switch_disconnected, to: :@topology
delegate :port_modify, to: :@topology
def packet_in(dpid, packet_in)
@topology.packet_in(dpid, packet_in)
@path_manager.packet_in(dpid, packet_in) unless packet_in.lldp?