cool.
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 assets = (this.props.posts && this.props.posts.length > 0) | |
? this.props.posts.map(({_id, path, title}) => | |
<AssetTile | |
id={_id} | |
title={title} | |
path={path} | |
key={`asset-${_id}`} | |
size="small" | |
showControls={false} | |
onClick={this.props.onAssetSelect.bind(this, {_id, path, title})} |
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
var express = require('express'); | |
var passport = require('passport'); | |
var passportSaml = require('passport-saml'); | |
var logger = require('morgan'); | |
var bodyParser = require('body-parser'); | |
var fs = require('fs'); | |
var https = require('https'); | |
var app = express(); | |
app.use(logger('common')); |
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
// XLSX class for creating excel reports. | |
import XLSX from 'xlsx'; | |
export default class Workbook { | |
constructor() { | |
this.SheetNames = []; | |
this.Sheets = {}; | |
this.addSheetName = this.addSheetName.bind(this); |
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 testArray = [ | |
{ | |
email: 'test@test.com', | |
name: '' | |
}, | |
{ | |
email: 'test@test.com', | |
name: '' | |
}, | |
{ |
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
// AKA yoDawgIHeardYouLikeArrays.js. | |
const flattenArrayLoop = (itemToFlatten, callback) => { | |
if (itemToFlatten instanceof Array) { | |
itemToFlatten.map((nestedItem, nestedItemIndex) => { | |
if (nestedItem instanceof Array) { | |
// This is a nested array, attach this loop to it. | |
flattenArrayLoop(nestedItem, callback); | |
} else { | |
callback(nestedItem); |
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
{ | |
"Console Log": { | |
"prefix": "cl", | |
"body": [ | |
"console.log(${1:});" | |
], | |
"description": "Console Log" | |
}, | |
"Console Log ||": { | |
"prefix": "cl||", |
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 React from 'react'; | |
import styled from 'styled-components'; | |
import Box from 'grommet/components/Box'; | |
export const MobileShow = styled( | |
({ maxWidth, children, ...rest }) => // eslint-disable-line | |
<Box {...rest}>{children}</Box> | |
)` | |
display: none; |
- package name: brand-central
- purpose: Brand Central's front facing application.
- github repo: https://github.com/grommet/brand-central
- package name: brand-central-cms
- purpose: Content storage, editing, API, user session management.
Then this is not the guide for you. But if you want to learn how to setup your new fancy mac for development you've found the right place.
Just kidding, still for developers. The following steps are taken directly from Wes Bos' Smashing Magazine article.
- Download and install iTerm2
- Download and install Xcode, you'll need Xcode's developer tools to accomplish the next step. Be sure to grab the latest release version not beta, we all know mac beta really means pre-pre-alpha.
- Install ZSH / Oh My ZSH.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
. - Enable hidden folders - in your terminal window run
defaults write com.apple.finder AppleShowAllFiles YES
then restart your finder by holding option and right clicking the finder icon, cli
OlderNewer