This file contains hidden or 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 onMouseMove() { | |
const mousePosition = d3.mouse(this) | |
const hoveredDate = xScale.invert(mousePosition[0]) | |
const getDistanceFromHoveredDate = d => Math.abs(xAccessor(d) - hoveredDate) | |
const closestIndex = d3.scan(dataset, (a, b) => ( | |
getDistanceFromHoveredDate(a) - getDistanceFromHoveredDate(b) | |
)) | |
const closestDataPoint = dataset[closestIndex] |
This file contains hidden or 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
'use strict'; | |
// | |
// # Option | |
// | |
// Option a = Some a + None | |
// | |
// The option type encodes the presence and absence of a value. The | |
// `Some` constructor represents a value and `None` represents the | |
// absence. |
This file contains hidden or 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
var a = [{ | |
name:'fluffy', | |
age: 23, | |
run: function() { | |
// does something | |
} | |
}, { | |
name:'gunny', | |
age: 31, |
This file contains hidden or 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 'compass'; | |
.message { | |
border: 1px solid #ccc; | |
padding: 10px; | |
color: #333; | |
} | |
.success { | |
@extend .message; |
This file contains hidden or 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
#header | |
position: relative | |
#logo | |
position: absolute | |
left: 50% | |
top: 50% | |
margin-top: -(image-height('logo.png') / 2) | |
margin-left: -(images-width('logo.png') / 2) |
This file contains hidden or 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
css_dir = "/css" | |
images_dir = "/images" |
This file contains hidden or 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
# You can select your preferred output style here (can be overridden via the command line): | |
# output_style = :expanded or :nested or :compact or :compressed | |
output_style = :compressed |
This file contains hidden or 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 "compass" | |
@import "compass/reset" | |
@import "globals" | |
@import "colors" | |
@import "typeography" | |
@import "sprites" | |
@import "mixins" | |
@import "featurette/featurette" | |
@import "quiz/main" |
This file contains hidden or 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 "../js/vendor/bower-components/fancybox/source/jquery.fancybox.css"; | |
@import "../js/vendor/video-js/video-js.min.css"; | |
@import "../js/vendor/bower-components/baron/baron.css"; | |
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video { | |
margin:0; | |
padding:0; | |
border:0; |
This file contains hidden or 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
$meet-the-families: #82cdc8 | |
$learn-about-farming: #d4a00f | |
$recognition-programs: #e27669 | |
$farm-blog: #8b8d08 | |
$generic: #bb6c03 |
NewerOlder