Skip to content

Instantly share code, notes, and snippets.


James Trefry jtrefry

  • Northern California
View GitHub Profile
jtrefry / RadioButtonGroup.js
Created Oct 13, 2016
RadioButtonGroup for Grommet RadioButtons
View RadioButtonGroup.js
import React, { Component, PropTypes as t } from 'react';
import RadioButton from 'grommet/components/RadioButton';
import FormField from 'grommet/components/FormField';
class RadioButtonGroup extends Component {
constructor(props) {
this._onChange = this._onChange.bind(this);
jtrefry /
Last active Sep 22, 2020
Configuring Windows 10 (64-bit) for npm and node-gyp
  • Install Git for Windows
  • Install Node
  • Install Python 2.7.3
  • Install Microsoft Visual Studio 2015 Community
  • Open the command prompt as Administrator, run the following commands, then close the command prompt (a new prompt is required before the new environment variables will be available)
    • npm install -g npm
      • (Upgrades to npm v3, which no longer nests dependencies indefinitely. No more "maximum path length exceeded" errors due to the 260 character path limit in Windows, or needing to delete node_modules with rimraf.)
    • setx PYTHON C:\Python27\python.exe /m
      • (May need to change path to your custom install directory.)
  • Open a new command prompt and run the following commands. If these install without errors, you have bypasse
jtrefry / StatelessComponent.js
Created Oct 29, 2015
File template for a React Stateless Component.
View StatelessComponent.js
import React from 'react';
const ComponentName = (props) => (
export default ComponentName;
You can’t perform that action at this time.