Skip to content

Instantly share code, notes, and snippets.

Steven Natera nodox

Block or report user

Report or block nodox

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
@nodox
nodox / dockfile.md
Last active Aug 28, 2017
My Dev setup (Vim + Zsh)
View dockfile.md
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View SideNav.test.js
import React from 'react';
import SideNav from '../SideNav';
describe('<SideNav />', () => {
const testData = {
headline: 'Test Headline',
content: 'Yay, we have content!',
location: '/home',
displayMenu: false,
};
@nodox
nodox / AppCombined.js
Last active Jul 1, 2018
Building a stepper with compound components
View AppCombined.js
import React from "react";
import { render } from "react-dom";
import { StepList } from "./StepList";
import { Step } from "./Step";
const PageTwo = () => (
<h2>We have a second page.</h2>
)
const PageThree = () => (
@nodox
nodox / App.js
Created Jul 1, 2018
Building a stepper - app.js
View App.js
import React from "react";
import { render } from "react-dom";
import { StepList } from "./StepList";
import { Step } from "./Step";
const PageTwo = () => (
<h2>We have a second page.</h2>
)
const PageThree = () => (
@nodox
nodox / Buttons.js
Last active Jul 1, 2018
Building a stepper - buttons.js
View Buttons.js
import React from "react";
class Next extends React.Component {
render() {
const { isActive } = this.props;
if (isActive === false) return null;
return (
<button onClick={() => this.props.goToNextStep()}>
@nodox
nodox / Step.js
Last active Jul 1, 2018
Buidling a stepper - step.js
View Step.js
import React from "react";
class Step extends React.Component {
render() {
const {
isActive,
displayPrevious,
displayNext,
displaySubmit,
@nodox
nodox / StepList.js
Created Jul 1, 2018
Building a stepp - steplist.js
View StepList.js
import React from "react";
class StepList extends React.Component {
constructor(props) {
super(props);
this.state = {
currentStep: 0,
totalSteps: this.props.children.length - 1,
};
View learning.md

Michael

if I wanted to make something lowercase I would do this

const x = (name) => 
  name = name.toLowerCase()

But since its one parameter is there a way i could make it lowercase without specifying the parameter? Since arrow functions dont require it for one parameter.

const x = () =>

You can’t perform that action at this time.