Skip to content

Instantly share code, notes, and snippets.

Clever Beagle cleverbeagle

Block or report user

Report or block cleverbeagle

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
View addons.js
import React from 'react';
import PropTypes from 'prop-types';
import Composer from './imports/ui/components/Composer/Composer';
class AddOns extends React.Component {
state = {
addOns: [],
};
componentWillReceiveProps(nextProps) {
@cleverbeagle
cleverbeagle / good-data-example.js
Created Nov 22, 2017
Start With the Data - Good Data Example
View good-data-example.js
{
name: 'Poppyseed',
address: {
street: '1234 Marion St.',
suite: '29',
postalCode: '12345',
city: 'Andersonville',
state: 'IL',
country: 'US',
},
@cleverbeagle
cleverbeagle / bad-data-example.js
Created Nov 22, 2017
Start With the Data - Bad Data Example
View bad-data-example.js
{
lol: 'This will not work.',
dangerousData: 129301924109214,
name: 'Fake Restuarant'
}
@cleverbeagle
cleverbeagle / Restaurants.js
Last active Sep 6, 2018
Start with the Data - Restaurant Schema
View Restaurants.js
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
const Restaurants = new Mongo.Collection('Restaurants');
Restaurants.allow({
insert: () => false,
update: () => false,
remove: () => false,
});
@cleverbeagle
cleverbeagle / styles.less
Created Aug 30, 2017
Fix Atom Linter Underline
View styles.less
// Styling Error Types
atom-text-editor.editor .linter-highlight, .linter-highlight{
&.badge {
border-radius: @component-border-radius;
overflow: hidden;
text-overflow: ellipsis;
}
&.error {
&:not(.line-number){
background-color: transparent;
You can’t perform that action at this time.