I hereby claim:
- I am mjyoung on github.
- I am mjyoung (https://keybase.io/mjyoung) on keybase.
- I have a public key ASDC34vk9YjcE9f6DRIEax30bQQHN_HW225iqffsznMYWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
:{$PORT} | |
root * /usr/share/caddy | |
# Do not rewrite up to this point! | |
file_server | |
templates |
// utils/ApolloClient.js | |
import ApolloBoost from 'apollo-boost'; | |
import { AsyncStorage } from 'react-native'; | |
import Config from '../config'; | |
const client = () => { | |
return new ApolloBoost({ | |
uri: Config.API_URL, | |
request: async operation => { | |
const authToken = await AsyncStorage.getItem('AUTH_TOKEN'); |
#!/bin/bash | |
#BitBar Metadata | |
# <bitbar.title>BitBar Mic Toggle</bitbar.title> | |
# <bitbar.version>v0.1</bitbar.version> | |
# <bitbar.author>Michael Young</bitbar.author> | |
# <bitbar.author.github>Michael Young</bitbar.author.github> | |
# <bitbar.desc></bitbar.desc> | |
max_chars="30" | |
mic_on_icon="iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAY1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmaHTeAAAAIHRSTlMAAQMGBwoMDxATNDg9RlVgbXJ2iIqYsLXIytXY2+D1+HJ58qkAAAB7SURBVHjadc3LGkAgEIbhQk7lNESRdP9XSeOpbHyr+d/NECwftB5ykhrd0/iB3cOeduWwKkL9Qv0HPQSAHmFeA6wzwqSo8dtQNSF0loEHYLZDKA5ZgjFQyqMgmLgko5TJS4S37WmVsmdLYpnQWmRpN5xvG+dNhMVhi79vdasMEyEIOi4AAAAASUVORK5CYII=" |
#!/bin/bash | |
# | |
# Open new Terminal tabs from the command line | |
# | |
# Author: Justin Hileman (http://justinhileman.com) | |
# | |
# Installation: | |
# Add the following function to your `.bashrc` or `.bash_profile`, | |
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc` | |
# |
// getComponent is a function that returns a promise for a component | |
// It will not be called until the first mount | |
function asyncComponent(getComponent) { | |
return class AsyncComponent extends React.Component { | |
static Component = null; | |
state = { Component: AsyncComponent.Component }; | |
componentWillMount() { | |
if (!this.state.Component) { | |
getComponent().then(Component => { |
const modalCustomStyles = { | |
overlay : { | |
position : 'fixed', | |
top : 0, | |
left : 0, | |
right : 0, | |
bottom : 0, | |
display : 'flex', | |
alignItems : 'center', | |
justifyContent : 'center', |
Please complete the following challenge and submit your response in a gist.
Write your code with the following priorities in mind, in order from most to least important:
Without further ado:
require 'pry' | |
class RaceTrack | |
attr_accessor :time, :cars | |
def initialize | |
@time = 0 | |
@cars = [] | |
end |