Skip to content

Instantly share code, notes, and snippets.

@rockchalkwushock
rockchalkwushock / Brewfile
Created March 13, 2018 15:51
Sample Brewfile
tap "caskroom/cask"
tap "caskroom/fonts"
tap "homebrew/bundle"
tap "homebrew/core"
tap "homebrew/services"
brew "cabextract"
brew "elixir"
brew "git"
brew "mas"
brew "mongodb", restart_service: true
@rockchalkwushock
rockchalkwushock / settings.json
Created March 13, 2018 14:04
copy of my settings.json for VSCode
{
"color-highlight.markRuler": false,
"editor.dragAndDrop": false,
"editor.fontFamily": "Consolas",
"editor.fontSize": 18,
"editor.formatOnSave": true,
"editor.lineHeight": 24,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
@rockchalkwushock
rockchalkwushock / instructions.md
Last active March 13, 2018 13:38
Instructions for achieving the same setup in iTerm2.app

Follow the below instructions for getting the same setup and functionality in iTerm2.

brew update
brew install zsh
brew cask install iterm2
brew cask cleanup
# change shell from bash to zsh.
chsh -s /usr/local/bin/zsh
// The below is an example of writing a 'functional' component in React.
// The notes I made for the Component API are very high-level and quick so read the docs
// Since React@16 the docs have improved significantly!!!
// https://reactjs.org/docs/components-and-props.html#functional-and-class-components
// To better understand the component life-cycles use the following egghead.io tut
// https://egghead.io/courses/start-learning-react (I believe it is free!)
import React from 'react';
import { render } from 'react-dom'
@rockchalkwushock
rockchalkwushock / .zshrc
Last active June 11, 2025 23:58
my zshrc configuration
# https://github.com/robbyrussell/oh-my-zsh
# https://github.com/bhilburn/powerlevel9k
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
# https://nerdfonts.com
#################################################
#---------------- Variables --------------------#
#################################################
CLOUDPATH="$HOME/Library/Mobile Documents/com~apple~CloudDocs/dotfiles"
@rockchalkwushock
rockchalkwushock / config.yml
Created December 12, 2017 20:45
Having problems with new NPM 2FA and publishing on CircleCI
version: 2
jobs:
checkout_code:
docker:
- image: circleci/node:latest
working_directory: ~/microauth-vkontakte
steps:
- checkout
- attach_workspace:
at: ~/microauth-vkontakte
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ .Site.Title }}</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/7.0.0/normalize.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/evil-icons/1.9.0/evil-icons.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">
@rockchalkwushock
rockchalkwushock / .zshrc
Created November 10, 2017 17:26
Current configuration
# https://github.com/robbyrussell/oh-my-zsh
# https://github.com/bhilburn/powerlevel9k
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
# https://nerdfonts.com
#################################################
#---------------- ZSH Theme --------------------#
#################################################
POWERLEVEL9K_MODE='nerdfont-complete'
@rockchalkwushock
rockchalkwushock / form.jsx
Created October 26, 2017 19:21
time for a refactor and drying of the code....holy crap!
/* eslint-disable no-return-assign, no-param-reassign */
import { Component } from 'react'
import {
FormWithConstraints,
FieldFeedback,
FieldFeedbacks
} from 'react-form-with-constraints'
import { styles } from '../../lib'
import sendToBackend from './api'
@rockchalkwushock
rockchalkwushock / BookingForm.js
Last active May 30, 2022 09:29
Using redux-form with next.js
import React, { Component } from 'react'
import { Field, reduxForm } from 'redux-form'
import PropType from 'prop-types'
import { messages } from '../../lib' // ignore pertains to `react-intl`
import validate from './validate'
import Input from './Input'
import TextArea from './TextArea'
class BookingForm extends Component {