Skip to content

Instantly share code, notes, and snippets.

@latviancoder
latviancoder / 1.html
Last active October 31, 2018 19:12
test
<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 = () => {
import * as _ from 'lodash';
class Course {
students = [];
quizzes = [];
constructor(name, teacher) {
this.name = name;
this.teacher = teacher;
}
import * as React from 'react';
import {
axisBottom, axisLeft, curveCatmullRom,
interpolateRdYlBu,
line,
max,
min,
ScaleLinear,
scaleLinear, scaleSequential,
scaleTime,
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>;
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 = {
@latviancoder
latviancoder / 0_reuse_code.js
Created February 7, 2014 11:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console