Skip to content

Instantly share code, notes, and snippets.

@rotexhawk
rotexhawk / .gitignore
Last active August 29, 2015 14:22 — forked from salcode/.gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20150227
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@rotexhawk
rotexhawk / class_to_oloo.js
Created September 1, 2016 15:27
Confused about OLOO implementation.
function Shape(x,y){
this.x = x;
this.y = y;
}
Shape.prototype.move = function(x,y){
this.x += x;
this.y += y;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://unpkg.com/expect@%3C21/umd/expect.min.js"></script>
<script src="https://unpkg.com/redux@3.7.2/dist/redux.js"></script>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
import React from 'react';
import PropTypes from 'prop-types';
import { black90, gray15, gray50, gray30 } from 'components/styles/colors';
import styled from 'styled-components';
import media from 'components/styles/media';
import { margin, fontWeight } from 'components/styles/scales';
import RankingsTable from 'containers/molecules/RankingsTable';
import cheerio from 'cheerio';
const TableContainer = styled.div`