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> | |
<body> | |
<ul id="todo-app"> | |
<li class="todo">Walk the dog</li> | |
<li class="todo">Pay bills</li> | |
<li class="todo">Make dinner</li> | |
<li class="todo">Code for one hour</li> | |
</ul> | |
<script> | |
window.onload = () => { |
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 * as _ from 'lodash'; | |
class Course { | |
students = []; | |
quizzes = []; | |
constructor(name, teacher) { | |
this.name = name; | |
this.teacher = teacher; | |
} |
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 * as React from 'react'; | |
import { | |
axisBottom, axisLeft, curveCatmullRom, | |
interpolateRdYlBu, | |
line, | |
max, | |
min, | |
ScaleLinear, | |
scaleLinear, scaleSequential, | |
scaleTime, |
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 ReactDOM from 'react-dom'; | |
interface InfiniteScrollerProps { | |
scrollingPosition?: number; | |
onPositionChanged: (position: number) => void; | |
} | |
class InfiniteScroller extends React.Component<InfiniteScrollerProps> { | |
domChildren: Array<Element>; |
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, { Component } from 'react'; | |
import scrollIntoView from 'scroll-into-view-if-needed'; | |
import classNames from 'classnames'; | |
import { Icon } from 'office-ui-fabric-react'; | |
import ContentBlock from '../contentBlock/ContentBlock.component'; | |
import s from './accordion.scss'; | |
type AccordionRenderParams = { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |