Skip to content

Instantly share code, notes, and snippets.

View ideosyncretic's full-sized avatar
😷

ideosyncretic ideosyncretic

😷
View GitHub Profile
<StyledReactTable
manual
data={customers}
loading={loading}
loadingText=""
showPagination={false}
defaultPageSize={10}
minRows={0}
getTdProps={(state, row) => ({
onClick: () => {
<AuthField
staffMemberPermittedFields={permittedFields}
permissionType="read"
resource="customer"
field="phoneNumber"
>
<StyledSection flexWrap="wrap" mb={2} pb={2}>
<Box w={[1, 1 / 2, 1 / 4]}>
<Heading>Phone Number</Heading>
</Box>
<Route
path="/customer/"
component={userIsAuthenticated(Authorization(PERMISSION_READ_CUSTOMERS)(Customers))}
/>
export default function Authorization(method) {
return WrappedComponent => {
const WithAuthorization = props =>
hasMethodPermission({
staffMemberPermittedMethods: props.permittedMethods,
permittedMethod: method,
}) ? <WrappedComponent {...props} />
: <PageNotFound />;
return connect(state => ({
permittedFields: state.auth.staffMember.permittedFields,

Keybase proof

I hereby claim:

  • I am sprazzeus on github.
  • I am angelcocochen (https://keybase.io/angelcocochen) on keybase.
  • I have a public key ASAcGsMJ3yq2sxhi-G_Dc1RdEIsxbZyYZrDsjlJlzQZxcgo

To claim this, I am signing this object:

function predicateBy(prop){
return function(a,b){
if( a[prop] > b[prop]){
return 1;
}else if( a[prop] < b[prop] ){
return -1;
}
return 0;
}
}
import React, {Component, PropTypes} from 'react';
export default class Player extends Component {
static propTypes = {
black: PropTypes.bool,
data: PropTypes.object,
styles: PropTypes.object
};
static defaultProps = {
<!-- <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angel Coco Chen</title>
<link rel="stylesheet" href="css/base.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.2.0/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.2.0/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.16/browser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>