This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const GitHubApi = require("github"); | |
const Rx = require("rx"); | |
const github = new GitHubApi(); | |
const getCommitsAsync = (param) => github.repos.getCommits({ | |
owner: 'amowu', | |
repo: 'test-semantic-release', | |
...param | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function localitySelect(action$, store, { ajax }) { | |
return action$ | |
.ofType('LOCALITY_AUTOCOMPLETE') | |
.debounceTime(150) | |
.distinctUntilChanged() | |
.switchMap(({ payload: { text, cursor } }) => { | |
return ajax | |
.getJSON( | |
`${api.searchSuggest}&cursor=${cursor}&string=${text}` | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const plugins = [ | |
// extract vendor and webpack's module manifest | |
new webpack.optimize.CommonsChunkPlugin({ | |
names: [ 'vendor', 'manifest' ], | |
minChunks: Infinity | |
}), | |
// extract common modules from all the chunks (requires no 'name' property) | |
new webpack.optimize.CommonsChunkPlugin({ | |
async: true, | |
children: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$min-font-size: 16px; | |
$max-font-size: 24px; | |
$min-screen-size: 400px; | |
$max-screen-size: 800px; | |
font-size: calc($min-font-size + ($max-font-size - $min-font-size) * (100vw - $min-screen-size) / ($max-screen-size - $min-screen-size)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const theme = { | |
color: { | |
primary: "#47C51D", | |
secondary: '#53C1DE', | |
white: "#FFF", | |
black: "#222", | |
border: "rgba(0,0,0,0.1)", | |
base: "rgba(0,0,0,0.4)", | |
alert: '#FF4258', | |
success: 'mediumseagreen', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from "styled-components"; | |
import { | |
theme, | |
borderProps, | |
sizeProps, | |
backgroundColorProps, | |
marginProps | |
} from "ui"; | |
const { color, font, topbar, gutter } = theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixin like functionality | |
const textInput = props => ` | |
color: ${props.error ? color.white : color.base}; | |
background-color: ${props.error ? color.alert : color.white}; | |
`; | |
export const Input = styled.input` | |
${textInput} | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prop passing Shorthands for Styled-components | |
export const borderProps = props => css` | |
${props.borderBottom && `border-bottom: ${props.borderWidth || "1px"} solid ${color.border}`}; | |
${props.borderTop && `border-top: ${props.borderWidth || "1px"} solid ${color.border}`}; | |
${props.borderLeft && `border-left: ${props.borderWidth || "1px"} solid ${color.border}`}; | |
${props.borderRight && `border-right: ${props.borderWidth || "1px"} solid ${color.border}`}; | |
`; | |
export const marginProps = props => css` | |
${props.marginBottom && `margin-bottom: ${typeof (props.marginBottom) === "string" ? props.marginBottom : "1em"}`}; |
NewerOlder