Skip to content

Instantly share code, notes, and snippets.

View vaughnwalters's full-sized avatar

Vaughn Walters vaughnwalters

View GitHub Profile
@kwelch
kwelch / mocha-test.spec.js
Created April 27, 2017 14:36
Mocha Chai Component Test Enzyme
import React from 'react';
import chai, { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import EditPageView from './EditPageView';
import FormControl from './FormControl';
import ErrorList from './errorList';
chai.use(sinonChai);
@willurd
willurd / web-servers.md
Last active May 25, 2025 11:13
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000