Skip to content

Instantly share code, notes, and snippets.

@jkappers
jkappers / ark_instance.sh
Created December 28, 2015 02:03 — forked from kpheasey/ark_instance.sh
DO Ubuntu 14.04 Droplet to ARK Server
#!/bin/bash
# Updating Ubunut
echo "updating ubunutu... please be patient"
apt-get update && apt-get upgrade -y
echo "installing required packages... please be patient"
apt-get install htop lib32gcc1 -y
# Create steam user if needed
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import FormControl from '@material-ui/core/FormControl';
import Paper from '@material-ui/core/Paper';
import MenuItem from '@material-ui/core/MenuItem';
let autocompleteService = null;
import { Text } from 'react-native';
export default () => <Text>OK</Text>;
@jkappers
jkappers / DialogContext.js
Created February 28, 2019 19:34
Using a hook for reusable Dialog state
import { useState } from 'react';
function DialogContext({ initialState = false, children }) {
const [isOpen, setIsOpen] = useState(initialState);
return children(
isOpen,
() => setIsOpen(true),
() => setIsOpen(false)
)