Skip to content

Instantly share code, notes, and snippets.

View grantvanhorn's full-sized avatar
🧹

Grant Van Horn grantvanhorn

🧹
View GitHub Profile
@grantvanhorn
grantvanhorn / extensions.md
Last active January 31, 2022 22:02
extensions

Atom Keymap

Docker

ESLint

file-icons

One Dark Pro

Path Intellisense

Toggle Quotes

vscode-styled-components

@grantvanhorn
grantvanhorn / settings.json
Created January 31, 2022 21:50
VSCode Settings
{
"atomKeymap.promptV3Features": true,
"editor.bracketPairColorization.enabled": true,
"editor.fontFamily": "DroidSansMono Nerd Font, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.formatOnPaste": true,
"editor.guides.bracketPairs": "active",
"editor.letterSpacing": 0.6,
"editor.lineHeight": 26,
"editor.minimap.enabled": false,
@grantvanhorn
grantvanhorn / .zshrc
Created March 27, 2021 21:29
my zsh config
setopt PROMPT_SUBST
autoload -Uz vcs_info
alias updatezsh='source ~/.zshrc'
alias l='colorls --group-directories-first --almost-all'
alias ll='colorls --group-directories-first --almost-all --long'
source $(dirname $(gem which colorls))/tab_complete.sh
## Uses the zsh precmd function hook to set the tab title to the current working directory before each prompt
function precmd() {
window_title="\\033]0;${PWD##*/}\\007"
@grantvanhorn
grantvanhorn / .hyper.js
Last active April 3, 2022 01:26
.hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// When a new tab is opened, use the user root as the CWD.
preserveCWD: false,
// choose either `'stable'` for receiving highly polished,
@grantvanhorn
grantvanhorn / Dockerfile
Created October 18, 2019 01:35
Create React App Dockerfile
## Stage 1 (multi environment base)
# This is our inital setup. The minimum for production while still
# allowing for other stages to build successfully (without production settings)
FROM node:10.16.3-alpine AS base
EXPOSE 3000
ENV NODE_ENV=production
WORKDIR /opt
COPY package*.json ./
RUN npm ci \
{
"data": {
"allBudgets": [
{
"allocation": 1000,
"users": []
},
{
"allocation": 1000,
"users": []
{
allBudgets {
allocation
users {
id
name
}
}
}
mutation CreateBudget1 {
createBudget(
allocation: 1000
usersIds: ["cj5ivb8dh0d8a0182w3lv4z0e", "cj5iv6waql85f0130e5qnpqey"]
) {
id
}
}
mutation CreateBudgetUser1 {
createBudgetUser(
name: "budgetUserTheFirst") {
id
}
}
mutation CreateBudgetUser2 {
createBudgetUser(
name: "budgetUserTheSecond") {
type BudgetUser {
createdAt: DateTime!
id: ID! @inUnique
name: String! @isUnique
updatedAt: DateTime!
budgets: [Budget!]! @relation(name: "UserBudgets")
}
type Budget {
createdAt: DateTime!