This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { shallow } from 'enzyme'; | |
import MyComponent from '../src/my-component'; | |
const wrapper = shallow(<MyComponent/>); | |
describe('(Component) MyComponent', () => { | |
it('renders without exploding', () => { | |
expect(wrapper).to.have.length(1); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$static: './assets'; | |
.television { | |
background: url(#{$img}/gray-noise.png); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.message { | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: #333; | |
} | |
.success { | |
@extend .message; | |
border-color: green; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const convertToKebabCase = (string) => { | |
return string.replace(/\s+/g, '-').toLowerCase(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Convenience script for versioning | |
# Pass a semver-formatted version number to this script such as `npm version 2.1.0`. | |
# | |
# You'll get: | |
# 1) git tag such as v2.1.0 | |
# 2) new version to `package.json` | |
npm version $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sips -Z 200 img.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { display: none; } /* Sorry! */ | |
p { text-align: justify; } | |
a { | |
color: #0066B3; | |
text-decoration: none; | |
} | |
a:hover { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flex { | |
display: flex; /* Make products flex in row direction (default) */ | |
flex-wrap: wrap; /* Make products overflow on new row */ | |
justify-content: center; /* Or space-between or space-around */ | |
} | |
.flex > section { | |
flex: 1 1 0; /* Prevent the extra space around content */ | |
text-align: center; /* Align text on center */ | |
display: flex; /* Display as flex */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flex"> | |
<section> | |
<img src="img.jpg" alt="description" /> | |
<h2>Product</h2> | |
<p>Description</p> | |
<aside> | |
<ul> | |
<li>Spec</li> | |
<li>Spec</li> | |
</ul> |
OlderNewer