Skip to content

Instantly share code, notes, and snippets.

View ohmyjersh's full-sized avatar
🤠
doing the code.

Josh Jarmain ohmyjersh

🤠
doing the code.
  • Bend, OR
View GitHub Profile
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;
/**
* @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;
groupByKey = (data, key) => {
return data.reduce(function(rv, x) {
(rv[x[key]] = rv[x[key]] || []).push(x);
return rv;
}, {});
};
@ohmyjersh
ohmyjersh / osx_bootstrap.sh
Created September 14, 2018 16:11 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/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)
import React, { Component } from 'react';
import {
AlertIOS,
StyleSheet,
Text,
TouchableHighlight,
View,
NativeModules
}
import TouchID from 'react-native-touch-id'