Skip to content

Instantly share code, notes, and snippets.

View zacharyabresch's full-sized avatar
💭
loving Clojure & Datomic.

Zachary Abresch zacharyabresch

💭
loving Clojure & Datomic.
View GitHub Profile
@zacharyabresch
zacharyabresch / cloudSettings
Last active May 22, 2020 18:40
VS Code Settings Sync
{"lastUpload":"2020-05-22T18:39:07.899Z","extensionVersion":"v3.4.3"}
@zacharyabresch
zacharyabresch / deleting-branches.md
Last active April 12, 2018 16:36
Proposal for branch deletion process & workflow

Deleting Branches After Merging

Recently, I completed a pull request and merged my branch into staging once approved. In the past, I've seen some developers delete their branch after merging and others don't do this. I've historically been pretty bad at this myself and was wondering what the team thinks about this.

Personal Opinion

I think that deleting branches after a successful merge should be a practice followed by everyone on the team. There are a lot of good reasons to do [this][1] and there's really no reason not to, IMHO. Currently, on staging, there are 229 branches! (git branch --all | wc -l) Of those 229, 69 of them show as "merged" (git branch --all --merged | wc -l). Running git branch --all is far less useful in this state.

@zacharyabresch
zacharyabresch / eslint-code-quality.sh
Last active April 10, 2018 14:17
`eslint` rules for code quality, CLI style
#!/bin/bash
ln -s ./.gitignore ./.eslintignore && eslint --rule 'array-callback-return: 2' --rule 'complexity: [2, 5]' --rule 'max-statements: [2, 10]' --rule 'max-statements-per-line: [2, {max: 1}]' --rule 'max-nested-callbacks: [2, 2]' --rule 'max-depth: [2, {max: 2}]' --rule 'max-lines: [2, 100]' --rule 'no-return-assign: 2' --rule 'no-param-reassign: 2' --rule 'no-var: 2' --rule 'no-else-return: 2' ./
@zacharyabresch
zacharyabresch / newj.sh
Last active April 4, 2018 14:17
A one-line terminal command for JS projects. Includes `webpack`, `babel`, `jest`, `eslint`. Great for scratch coding, katas, proof of concepts, etc.
#!/bin/bash
yarn init -y && yarn add --dev babel-core webpack webpack-cli jest-cli babel-jest babel-loader prettier pretty-quick husky babel-preset-env babel-preset-react eslint eslint-config-prettier eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react && echo '{ "presets": ["env", "react"] }' >> .babelrc && echo 'module.exports = { env: { jest: true }, extends: ["airbnb", "prettier"] };' >> .eslintrc.js && mkdir src && touch src/index.test.js src/index.js && touch README.md && sed -ie -E 's/("license": ".*",)/\1"scripts": { "start": "webpack --mode development", "test": "jest --watchAll" },/g' ./package.json && ./node_modules/.bin/prettier --write ./package.json && subl -an .
@zacharyabresch
zacharyabresch / gist:1b6a9ffe9071c697c949
Created August 21, 2014 15:49
Coffeescript for document.ready using Turbolinks
ready = ->
# Do stuff
console.log "READY!!"
$(document).ready ready
$(document).on 'page:load', ready
@zacharyabresch
zacharyabresch / _global.json
Created September 30, 2013 18:36
Example of navigation built from JSON in mixture ... for demonstration to Team Mixture to see if there's a way to abstract this. Right now it's frakkin ugly!!
{
"version": "4.3.0",
"navigation" : [
{
"name": "Services",
"slug": "services",
"sub-nav": [
{
"name": "Data Center Services",