Skip to content

Instantly share code, notes, and snippets.

@wesley6j
wesley6j / sass-hexagon.scss
Created February 14, 2016 15:58 — forked from bjmiller121/sass-hexagon.scss
SASS Mixin to generate a hexagon in CSS
// Makes a CSS hexagon! based off of http://csshexagon.com/
// Demo: http://sassmeister.com/gist/98fcf3ce163a97d2ef7e
@mixin hexagon($size, $color, $border: 0) {
position: relative;
width: $size;
height: ($size * 0.577);
background-color: $color;
margin: ($size * 0.288) 0;
border-left: $border;
border-right: $border;
@wesley6j
wesley6j / capybara cheat sheet
Created November 13, 2015 01:13 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=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')