Skip to content

Instantly share code, notes, and snippets.

View brownsmith's full-sized avatar

Paul Brownsmith brownsmith

  • Camberley, Surrey
View GitHub Profile
@brownsmith
brownsmith / .zshrc
Created March 28, 2019 11:34
zsh config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/paulbrownsmith/.oh-my-zsh"
SPACESHIP_PROMPT_ORDER=(
battery # Battery level and status
dir # Current directory section
git # Git section (git_branch + git_status)
@brownsmith
brownsmith / reduxNotes.js
Last active March 18, 2020 11:00
Redux action types, actions and action creators
// action type
const orderCardType = 'ORDER_CARD';
// action
const orderCardAction = () => ({
type: orderCardType,
});
// action creator
const orderCardActionCreator = () => dispatch => {
@brownsmith
brownsmith / MUIDataGrid.js
Last active March 14, 2023 09:53
Remove Export button on MUI DataGrid
componentsProps={{
toolbar: {
csvOptions: { disableToolbarButton: true },
printOptions: { disableToolbarButton: true },
},
}}