Skip to content

Instantly share code, notes, and snippets.

View maxmckenzie's full-sized avatar

Max McKenzie maxmckenzie

View GitHub Profile
@maxmckenzie
maxmckenzie / project-outline.md
Created July 13, 2019 09:31
project outline guideline

Project Specification Outline

AKA the most important part of the whole thing, whatever that thing maybe!

tree-swing-project-management-large.png

Description:

give a detailed description of what the project is, why the client/user needs it, and what solution this aims to provide.

Client:

@maxmckenzie
maxmckenzie / .zshrc
Created July 13, 2019 09:32
many aliases/alias's...
alias dev="cd ~/Development"
eval "$(direnv hook zsh)"
# repo shortcuts
alias seam="cd ~/Development/seam"
# Editor
export EDITOR='vim'
# ExpressVPN
@maxmckenzie
maxmckenzie / sublime-todo-json
Created July 13, 2019 09:32
sublime todo plugin settings
{
"patterns": {
"TODO": "TODO[\\s]*?[\\s]*(?P<todo>.*)$"
},
"patterns_weight": {
},
"exclude_folders": [
"*.git*",
"node_modules/**"
],
@maxmckenzie
maxmckenzie / vue-server.js
Created July 13, 2019 09:33
vue express server with history fallback
var express = require('express')
var path = require('path')
const history = require('connect-history-api-fallback')
const app = express()
app.use(express.static(path.join(__dirname, 'static')))
app.use(express.static(path.join(__dirname, 'dist')))
app.use(history({
@maxmckenzie
maxmckenzie / editor.conf
Created July 13, 2019 09:34
default editor config
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@maxmckenzie
maxmckenzie / logger.js
Created July 13, 2019 09:35
logger example with sentry
/* eslint-disable no-console */
import raven from 'raven';
/*
To Use
import logger from './logger';
logger.error('test error');
logger.debug('test debug');
logger.warning('test warning');
logger.fatal('test fatal');
> This example uses global environment configurations
@maxmckenzie
maxmckenzie / god-damn-it-apple.sh
Created July 13, 2019 09:36
god-damn-it-apple i'll install what i want use this to install apps from anywhere.
sudo spctl --master-disable
@maxmckenzie
maxmckenzie / .babelrc
Last active July 29, 2019 09:00
generic babel config #config
{
"presets": [
["env", {
"targets": {
"node": "current",
"browsers": ["last 2 versions", "safari >= 11.1","ie 8"]
}
}]
],
"plugins": [
@maxmckenzie
maxmckenzie / eslint.rc
Last active July 29, 2019 09:02
eslint config #config
module.exports = {
"extends": "standard",
"plugins": [
"standard",
"promise"
],
"rules": {
// i know... i'm happy to omit them
// but mi dios, its like walking down the street wearing real fur
"semi": ["error", "always"]
@maxmckenzie
maxmckenzie / sockets-server.js
Last active July 29, 2019 09:02
basic bare minimum express server #express
import express from 'express';
import http from 'http'
/**
* Express Set Up
*/
const app = express()
app.set('view engine', 'pug')
app.use('/assets', express.static('assets'));
const server = http.createServer(app);
const io = require('socket.io').listen(server);