Learning ReactJS and keeping track of it all
A module encapsulates related/shared code into a single unit of code. Understanding module exports
// exports and module.exports are the same object
var exports = module.exports = {};
// create methods for module export
module.exports = {
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
*, *:after, *:before { | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
My defaults for starting a rails app
gem 'formtastic'
save_and_open_page
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
// from http://codepen.io/ArtemGordinsky/pen/GnLBq | |
// using http://bourbon.io/docs/#animation | |
@include keyframes(blink) { | |
from, to { | |
color: transparent; | |
} | |
50% { | |
color: black; | |
} |
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
%vertical-align { | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
/* or with bourbon | |
@include transform(translateY(-50%)); | |
*/ | |
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
$('#select-all').on 'change', @onChangeSelectAll | |
$('input[name="check-me"]').on 'change', @onChangeCheckbox | |
onChangeSelectAll: (e) -> | |
$('input[name="check-me"]').prop 'checked', $(e.target).prop('checked') | |
onChangeCheckbox: (e) -> | |
selected = false | |
number_selected = 0 | |
$('input[name="check-me"]').each -> |
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
html { | |
font-size: 62.5%; //sets fontsize to 10px | |
} | |
@mixin fontsize($size:1.6, $line: $size * 1.5){ | |
font-size: ($size * 10) + px; | |
line-height: ($line * 10) + px; | |
font-size: $size + rem; | |
line-height: $line + rem; | |
} |
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
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } |
NewerOlder