Skip to content

Instantly share code, notes, and snippets.

@indreklasn
indreklasn / _grid.scss
Created April 24, 2016 14:54 — forked from ozziexsh/_grid.scss
SCSS Grid Component
$columns: 12;
$grid-breakpoints: (
xs: 0,
sm: 544px,
md: 768px,
lg: 992px,
xl: 1200px
);
<label>
<input type="checkbox" name="terms">
<span class="fake-checkbox"></span>
<span>Do you accept the terms?</span>
</label>
<style>
input[type="checkbox"] {
@indreklasn
indreklasn / emptyLink.scss
Created November 29, 2016 07:55
Use attribute selectors with empty links
@indreklasn
indreklasn / shrinkwrap-generator.zsh
Last active April 24, 2017 11:06
Automatic shrinkwrap.json generator
function npm-inshrink () {
command npm install --save ${1} && npm shrinkwrap;
}
@indreklasn
indreklasn / _styles.scss
Created July 12, 2017 15:22
Styles for our little NASA API app
@import url('https://fonts.googleapis.com/css?family=Merriweather');
$brand-purple: rgb(135,140,223);
$brand-green: rgb(153,251,198);
$font-size: 5rem;
$merriweather: "Merriweather", sans-serif;
body {
height: 100vh;
const initialState = {
isFetching: null,
data: [],
hasError: false,
errorMessage: null,
}
@indreklasn
indreklasn / bash.sh
Last active October 29, 2017 19:10
Cloning the webpack repository
git clone git@github.com:wesharehoodies/webpack-2.0-from-scratch.git && cd webpack-2.0-from-scratch && git checkout chapter-5 && npm i && npm run start
@indreklasn
indreklasn / npm-install.sh
Created October 29, 2017 19:16
Installing webpack dashboard
npm install webpack-dashboard --save-dev
yarn add webpack-dashboard
yarn add webpack-dashboard