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
// TYPESCRIPT | |
import * as React from 'react'; | |
export default class Editor extends React.Component { | |
private _root: HTMLDivElement; // Ref to the editable div | |
private _mutationObserver: MutationObserver; // Modifications observer | |
private _innerTextBuffer: string; // Stores the last printed value | |
public componentDidMount() { | |
this._root.contentEditable = "true"; |
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
class LinkedList { | |
constructor() { | |
this.head = null; | |
this.tail = null; | |
this.count = 0; | |
} | |
get length() { | |
return this.count; | |
} |
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
// Add our dependencies | |
var gulp = require('gulp'), // Main Gulp module | |
concat = require('gulp-concat'), // Gulp File concatenation plugin | |
open = require('gulp-open'), // Gulp browser opening plugin | |
connect = require('gulp-connect'); // Gulp Web server runner plugin | |
// Configuration | |
var configuration = { | |
paths: { |
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
// Add our dependencies | |
var gulp = require('gulp'), // Main Gulp module | |
concat = require('gulp-concat'); // Gulp File concatenation plugin | |
// Configuration | |
var configuration = { | |
paths: { | |
src: { | |
html: './src/*.html', |