Skip to content

Instantly share code, notes, and snippets.

View VinSpee's full-sized avatar
🏠
Working from home

Vince Speelman VinSpee

🏠
Working from home
View GitHub Profile
case talkPageActionTypes.SHARE_TALK: {
const service = action.payload.service.toLowerCase();
sendEvent(
'talk.share',
'start',
service
);
share(service, {
url: getURLFromSlug(action.payload.slug),
state => select.getHero(select.getCurrentTalkID(state))(state);
<ThemeProvider theme={defaultTheme}>
<Shed
component="header"
c="magenta"
pl="2"
mb="1"
>
<h1>A header component with the color "magenta" from the theme, 2 units of left-padding, and 1 unit of margin on the bottom.</h1>
</Shed>
</ThemeProvider>
const upvotePost = gql`
mutation addToVotes($question: ID!, $voter: ID!) {
addToVotes(
votesQuestionId: $question,
votersUserId: $voter
) {
votesQuestion {
id
content
voters {
import React from 'react';
import {
FlexItem,
Box,
Text,
} from '../../theme.js';
import Member from '../member/index.js';
const Vertical = ({
vertical = '',
import ms from 'modularscale';
import styled from 'styled-components';
const sizes = [...Array(20)].reduce((acc, curr, i) => ({
...acc,
[`z${i}`]: `${ms((i - 1), 'major second')}rem`,
z0: 0,
[`z${0 - i}`]: `${(ms((0 - (i)), 'major second'))}rem`,
}), {});
import ms from 'modularscale';
import styled from 'styled-components';
const sizes = [...Array(20)].reduce((acc, curr, i) => ({
...acc,
[`z${i}`]: `${ms((i - 1), 'major second')}rem`,
[`z${0 - i}`]: `${(ms((0 - (i)), 'major second'))}rem`,
}), {});
const defaultTheme = {
@VinSpee
VinSpee / marker.svg
Last active December 16, 2016 23:33
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
output: {
path: `${__dirname}/dist`,
publicPath: '/',
filename: '[name].min.js',
library: 'MyComponentName',
libraryTarget: 'umd',
},
externals: {
'react': {
root: 'React',
.b {
border: 1px solid currentColor;
}
.b-b\:scanline {
&::after {
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURf///7+/v6NDdjkAAAAQSURBVAjXY2hgEGBQYHAAAAR4APGA2fwfAAAAAElFTkSuQmCC");
content: " ";
display: block;
height: .5rem;