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, { Component } from 'react'; | |
import { | |
AlertIOS, | |
StyleSheet, | |
Text, | |
TouchableHighlight, | |
View, | |
NativeModules | |
} | |
import TouchID from 'react-native-touch-id' |
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
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
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
groupByKey = (data, key) => { | |
return data.reduce(function(rv, x) { | |
(rv[x[key]] = rv[x[key]] || []).push(x); | |
return rv; | |
}, {}); | |
}; |
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
/** | |
* @param context {WebtaskContext} | |
*/ | |
const errors = { | |
whenNoPhrase: 'Need to have phrase query string parameter', | |
whenNotEnoughWordsToMakeAnAcronym:'Need to have more than one word to make an acronym.' | |
} | |
const WORD_LIMIT_LENGTH = 2; |
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, { Component } from 'react'; | |
import styled from 'styled-components'; | |
const Wrap = styled.div`padding: 8px; ` | |
const BarPercentage = styled.div` | |
float: left; | |
background: rgba(0,0,0,0.13); | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; |