Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
pbrisbin / example.md
Last active April 23, 2020 10:54 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 <summary>Summary Goes Here</summary>
@pbrisbin
pbrisbin / example.rb
Last active December 21, 2015 16:09 — forked from domgetter/gist:6331282
def introduction(age, sex, *names)
temp = *(names.join) # * is applied to (names.join)
temp = ["SidSamuelSmith"] # an Array
puts *names.join.class # #join is sent to (*names)
puts "SidsamuelSmith".class # a String
puts temp.class
end
require "spec_helper"
describe "Proprietors sign in", focus: true do
it "allows proprietors to sign in after they have registered" do
user = create_user
visit proprietor_login_path
fill_in "Email", :with => user.email
fill_in "Password", :with => "secret"
click_button "Sign In"