Skip to content

Instantly share code, notes, and snippets.

@twss
twss / Four.js
Created December 8, 2017 18:30
https://www.udemy.com/course-dashboard-redirect/?course_id=1134390 -- Lecture 31 (React Router v4) seems to be a little behind react-router-dom 4.2.2. Here's my fix
import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import Fourpointone from './Fourpointone';
class Four extends Component {
render() {
return (
<div>
<h1>I am a Four component</h1>
@twss
twss / SassMeister-input.scss
Created April 27, 2015 18:04
Generated by SassMeister.com.
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
$primary-3: #ddd;
@function round($val, $factor) {
$rounded: $val;
var simplifyPath = function( points, tolerance ) {
// helper classes
var Vector = function( x, y ) {
this.x = x;
this.y = y;
};
var Line = function( p1, p2 ) {
this.p1 = p1;