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
export default function getFirstDateOfMonth() { | |
const now = new Date(); | |
return new Date(now.getFullYear(), now.getMonth()); | |
} |
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
npm install -g rimraf | |
find . -name "node_modules" -exec rimraf {} \; |
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
md-red-50 = #ffebee | |
md-red-100 = #ffcdd2 | |
md-red-200 = #ef9a9a | |
md-red-300 = #e57373 | |
md-red-400 = #ef5350 | |
md-red-500 = #f44336 | |
md-red-600 = #e53935 | |
md-red-700 = #d32f2f | |
md-red-800 = #c62828 | |
md-red-900 = #b71c1c |
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
function animate(element, animation) { | |
var eventNames = [ | |
'animationend', | |
'webkitAnimationEnd', | |
'MSAnimationEnd', | |
'oAnimationEnd' | |
]; | |
var listeners = []; | |
element.classList.add('animated'); |
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
.lightbox { | |
background: rgba(0,0,0,0.85); | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
overflow: auto; | |
} |
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
requirejs.config({ | |
paths: { | |
'socket.io': '/socket.io/socket.io', | |
'knockout': 'http://cdnjs.cloudflare.com/ajax/libs/knockout/2.2.0/knockout-min' | |
}, | |
shim: { | |
'socket.io': { | |
exports: 'io' | |
} | |
} |