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
#!/bin/bash | |
SUDO_USER=$(whoami) | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
fi | |
echo "Updateing homebrew..." |
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true |
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
#!/bin/bash | |
if [ "$#" -eq 0 ]; then | |
tmux new-session -d -s 'ide' | |
tmux attach -t ide | |
tmux split-window -v -p 30 | |
tmux split-window -h -p 66 | |
tmux split-window -h -p 50 | |
tmux select-pane -t 1 | |
else | |
case $1 in |
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
# $ chmode 755 deploy.sh | |
# $ ./deploy.sh | |
#!/bin/bash | |
set -e | |
CLONE_TO=/path/to/clone | |
REPO_URL=git@github.com:hiro08gh/repos.git | |
BRANCH=master |
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
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:10.13-browsers | |
working_directory: ~/repo | |
steps: | |
- checkout |
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, {useState} from 'react'; | |
import PhotoUpload from './PhotoUpload'; | |
import PhotoList from './PhotoList'; | |
const PhotoUploadContainer = () => { | |
const [image, setImage] = useState(''); | |
const handleUpload = () => { | |
...any | |
} |
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
#!/bin/bash | |
DOT_FILES=( .zshrc .tmux.conf .vimrc ) | |
for file in ${DOT_FILES[@]} | |
do | |
ln -s $HOME/dotfiles/$file $HOME/$file | |
done |
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 { render } from 'react-dom'; | |
import { Router } from 'react-router-dom'; | |
import ReactGA from 'react-ga'; | |
import {hotjar} from 'react-hotjar'; | |
import * as Sentry from '@sentry/browser'; | |
import App from './App'; | |
const { NODE_ENV } = process.env; |
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, {useState} from 'react'; | |
const useInput = (initialValue) => { | |
const [name, setVName] = setState(initialValue); | |
const onChange = (e) => { | |
setValue(e.target.value); | |
} | |
return [value, onChange]; |
NewerOlder