Skip to content

Instantly share code, notes, and snippets.

@jspears
jspears / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../topeka-elements/category-icons.html">
@jspears
jspears / keybase.md
Last active November 9, 2016 22:07
keybase.md

Keybase proof

I hereby claim:

  • I am jspears on github.
  • I am speajus (https://keybase.io/speajus) on keybase.
  • I have a public key whose fingerprint is 3C10 CD9D CF6B 675E EF5E 442A 3271 E118 E6DB 133B

To claim this, I am signing this object:

@jspears
jspears / break.md
Last active December 18, 2017 20:03
When does it break
layout title
post
Blogging Like a Boss

Hello

does this break

this breaks.

@jspears
jspears / index.js
Created July 11, 2018 19:33
A simple react component for medium article.
import React, {PureComponent} from 'react';
export default ()=><h1>Hello from mrbuilder</h1>
@jspears
jspears / your-component-test.jsx
Created July 11, 2018 19:36
Simple test for Medium article
import React from 'react'
import {mount} from 'enzyme'
import YourComponent from 'your-component'
describe('YourComponent', function(){
it('should render', function(){
//consider pulling this out into a helper function.
const attachTo = document.createElement('div');
document.body.appendChild(attachTo);
mount(<YourComponent/>, {attachTo});
})
@jspears
jspears / super-duper-plugin.js
Created July 11, 2018 19:37
Simple plugin for mrbuilder Medium
module.exports = (config, webpack)=>{
//do what you need to webpack
return webpack;
}
@jspears
jspears / index.js
Last active July 11, 2018 20:52
Component for Medium Article
import React, {PureComponent} from 'react';
export default class YourComponent extends PureComponent {
render(){
return <h1>Hello from YourComponent</h1>
}
}
import React from 'react';
import YourComponent from 'your-component'
export default ()=>{
return (<div>
<h2>Simple app showing your component</h2>
<YourComponent/>
</div>);
}
@jspears
jspears / your-build-tool.js
Created July 11, 2018 19:55
Build Tool Mrbuilder
#!/usr/bin/env node
process.env.MRBUILDER_INTERNAL_PRESETS =`${process.env.MRBUILDER_INTERNAL_PRESETS},your-build-tool`
require('mrbuilder/bin/mrbuilder')
@jspears
jspears / package.json
Created July 11, 2018 19:58
Custom build tool component using package.json
{
"name":"your-super-component",
"description":"Describe your super component",
"scripts":{
"start":"your-build-tool",
"test":"your-build-tool",
"prepublish":"your-build-tool",
"karma":"your-build-tool"
},
"devDependencies":"{