Skip to content

Instantly share code, notes, and snippets.

View colbycheeze's full-sized avatar

Colby Williams colbycheeze

View GitHub Profile
0eNrVvd1uZMmSnfkq0Xl1DkDWbP/3XZgZoKchCZLQgqAR0BdThUIkMzIzVCSDCpJZp7qRD6AH0YvpSbSDZDIiSV9uaznr9ODc9OlKRnzhv+bmZuZm//Lu/eX95ma/vb775f1u9+u7H//l+C+37378/07+8/C3D5vbi/325m67u37347tY69Vvq5vdb5v9an23ulr/5YfVf9msL+52+9vV8j/bL+u7zWp3ffn76rfPm+vVfnO72X/ZLH/bb1aXu9/OVne71c3Tv64+3m8uf/jp+qfrkKZfV+/XF7/e36xu7zbrqwP8bnez+rjbr3YfP95uF+rdfn19e7Pb3/2w+qft5eXq5v7qZrW0crc0Y3u9uv19+ebVavtxacfF/dX95fqhUR/Xy0eXX374nf+y+bjZb64vNj/+dO1W/3V9/evqTz79+ufVxfr6qVdldXe/f7+9Xtp8+HG3+ry73/+w+lOcrn778/Kt9K1Pq7vl67er/2uVp+l5TL77ipvSM+zPh5//r5+Xbt2utx9+XP3j7nYZvu319vrT0vHb5dcOTfhtt/91Gb3VenW7/OFy8+3rP/zww93n+9sFffjR5TfLw2/cLmPz+MN/9+7s3fZid/04gbfbT9fry8Ps3f1+s1mmbRm+q+UT1+urw39d319cbtb78/3jxL37unz3+sPmL+9+dF/PzG/fbs6vNneb3f78ZreM/vmHZUyXET2heIay/PD60+b80J+Tr4bxr8avP5+921zfbe+2m8dhePiP33+5vr96v9kvnWsTzt7d7Jb19bC+/+XdAkou/5DO3v3+7sdzv/x/yy982O43F4+f8GfvlmG+fvzP28M33OH/7DcfTn9y++EwCj9//XrozotmeLoZ84tmkD/swA8H9oe9/yP6H0+a8NCsCtoV6XalsQEJ4IcT/cP1jxiQDJqR2WYEN9b/BH640D8c/4j+o/mvdDPKWP8L+OGZ/eE4/RH9dxNoh5vohoSxEZjRL9MyMf4hMtEhoehoqRhHpSISi46Wi+kPkYv
@colbycheeze
colbycheeze / .babelrc
Last active April 15, 2017 13:55
A robust jest setup used in a large project
{
"presets": [ "react", ["es2015", {"modules": false}], "stage-1" ],
"plugins": ["react-hot-loader/babel", "transform-runtime", "lodash"],
"env": {
"test": {
"plugins": ["babel-plugin-dynamic-import-node"],
"presets": ["react", "es2015", "stage-1"],
}
}
}
@colbycheeze
colbycheeze / package.json
Last active April 15, 2017 13:59
A configurable webpack 2 config used in a large production app
{
"name": "medspoke-redux",
"description": "A React frontend for the MedSpoke application",
"version": "0.1.0",
"author": "MedSpoke, Inc.",
"license": "GPL-3.0",
"main": "index.js",
"engines": {
"node": ">=6.9.2",
"yarn": "^0.19.1"
@colbycheeze
colbycheeze / webpack.config.js
Last active July 22, 2020 03:36
Storybook config
const webpack = require('webpack')
const path = require('path')
const cssnano = require('cssnano')
const BASE_PATH = '..'
const resolvePath = subPath => path.resolve(__dirname, `${BASE_PATH}/${subPath}`)
const env = process.env.NODE_ENV || 'development'
/* eslint-disable */
@colbycheeze
colbycheeze / snippets.cson
Last active January 11, 2017 18:09
Some Snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
$base-font-size: 1rem !default;
$base-line-height: 1.5 !default;
$heading-line-height: 1.2 !default;
$base-spacing: 1rem !default;
$primary-font: 'Helvetica Neue', sans-serif !default;
//Heading scale
$giga-scale: 4.00 !default;
$mega-scale: 3.00 !default;
$h1-scale: 2.50 !default;
desc "Add and commit any changes made"
task :commit, [:msg] do |t, args|
puts "## Adding all files (git add .)"
system("git add .")
commit_msg = args.to_a.join(', ')
puts "## Committing chgnges (git commit -m '#{commit_msg}')"
system("git commit -m '#{commit_msg}'")
end
title date tags
Managing Brainfog when Programming
2015-06-03 09:32 CDT
soft skills, health

A while back I saw some questions on a Facebook group referring to dealing with the problem of your mind becoming cloudy and almost like your brain just stops working when trying to solve a problem. Brain fog is where you feel that you just cannot work through some logic, and maybe you even begin to get exhausted. What do you do when that happens? READMORE

Brain fog is something that I deal with on a daily basis, but can be managed and the effects can be reduced significantly. Here are some of the most important tips I can muster to get you through it.

Start

  * File structure
  * [14:00] Iron Router
  * [26:00] User accounts
    - [36:00] extra fields
  * [47:00] Collections | Story #4
    - [51:00] adding useful packages
    - [52:45] Allow/Deny
    - [59:00] Mongol
    - [1:00:00] Pub/Sub

app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$compileProvider', '$filterProvider', '$provide', '$httpProvider',
function($stateProvider, $urlRouterProvider, $controllerProvider, $compileProvider, $filterProvider, $provide, $httpProvider){
$urlRouterProvider.otherwise('/');
$stateProvider
.state('app', {
url: '',
abstract: true,
templateUrl: 'views/layouts/application.html'