Skip to content

Instantly share code, notes, and snippets.

View hshoff's full-sized avatar
📊

Harrison Shoff hshoff

📊
View GitHub Profile
@hshoff
hshoff / Blackbored.xml
Created February 1, 2011 22:21
Textmate's Blackboard color theme cloned (kind-of) for RubyMine.
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Blackbored" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="1.25" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Monaco" />
<colors>
<option name="ANNOTATIONS_COLOR" value="3e83e7" />
<option name="CARET_COLOR" value="" />
<option name="CARET_ROW_COLOR" value="40436" />
<option name="CONSOLE_BACKGROUND_KEY" value="0" />
@hshoff
hshoff / Brush.js
Created April 18, 2017 23:57
@vx/brush sketch
import React from 'react';
export default function Brush({ brush }) {
const { start, end, dragging } = brush;
return (
<g className="vx-brush">
{start && dragging &&
<circle
cx={start.x}
cy={start.y}
@hshoff
hshoff / .block
Created August 26, 2017 23:18
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 23:18
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 23:11
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 22:46
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 22:43
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 22:21
React V16 + D3 + Force
license: mit
@hshoff
hshoff / .block
Last active August 26, 2017 22:09
React V16 + D3 + Force
license: mit
@hshoff
hshoff / space.js
Created August 8, 2016 22:11
Spacing
import React from 'react';
import cx from 'classnames';
export default function Spacing(Component) {
return (props) => {
const { spaceTop, spaceBottom } = props;
const classes = cx({
[`space-top-${spaceTop}`]: !!spaceTop,
[`space-${spaceBottom}`]: !!spaceBottom,
});