Skip to content

Instantly share code, notes, and snippets.

James Trefry jtrefry

  • Northern California
Block or report user

Report or block jtrefry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jtrefry
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) {
super(props);
this._onChange = this._onChange.bind(this);
@jtrefry
jtrefry / Win10-64bit-npm.md
Last active Jan 22, 2020
Configuring Windows 10 (64-bit) for npm and node-gyp
View Win10-64bit-npm.md
  • 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
jtrefry / StatelessComponent.js
Created Oct 29, 2015
File template for a React Stateless Component.
View StatelessComponent.js
import React from 'react';
const ComponentName = (props) => (
<div></div>
);
export default ComponentName;
You can’t perform that action at this time.