Skip to content

Instantly share code, notes, and snippets.

View jcockhren's full-sized avatar
👨‍🍳
Cooking up something 🔥

Jurnell Cockhren jcockhren

👨‍🍳
Cooking up something 🔥
View GitHub Profile
@jcockhren
jcockhren / .gitignore
Created July 7, 2017 19:05
C# Git ignore
# Download this file using PowerShell v3 under Windows with the following comand
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
homeassistant:
pip.installed:
- bin_env: '/usr/bin/pip3'
python3-pip:
pkg.installed
cython3:
pkg.installed

Debug your codebase (Make it Compile cleanly)

@jcockhren
jcockhren / votr-intro.md
Last active April 19, 2016 01:35
Features foe Votr App

Assignment (Due Monday)

Use draw.io to build simple ERD (no attributes yet) encompassing the following features.

  • As a user I want to be able to create a poll with voting options
  • As a user I want to be able to vote on a poll
  • As a user I want to be able to start/stop the voting round
  • As a user I want to be able to search polls by tag & title.
  • As a user I want to be able to be able to tag polls
  • As a user I want to see completed poll results
@jcockhren
jcockhren / simplecalc-1.md
Last active February 20, 2016 13:49
Simple Calculator chunk 1 - Parsing Text

Simple Calculator chunk 1 - Parsing Text

Goal

Using Test Driven Development, create a Parse class that will break down a simple 2-term calculator expression.

  1. Prove you can extract the terms of the expression.
  2. Prove you can extract the operation embedded in the expression.
  3. Ensure you have examples of GOOD and BAD input and have the class throw an exception where there are error.
@jcockhren
jcockhren / core.sls
Last active February 16, 2016 22:32
Simple salt example. core.sls is in the same directory as top.sls (that's one way to designate a state file). monitoring state ID is defined in a FILE called "init.sls" in the "monitoring" subdirectory.
core:
pkg.installed:
- pkgs:
- htop
- vim-nox
- git-core
- zsh
- tmux
- git
@jcockhren
jcockhren / dnsimple.py
Last active February 3, 2016 19:54
Example execution module for DNSimple
from __future__ import absolute_import
from salt import utils
import salt
import salt.utils
import salt.version
import salt.loader
import salt.ext.six as six
@jcockhren
jcockhren / cloud-profile.yaml
Created February 3, 2016 18:08
Example of how to define multiple security groups for an EC2 instance in salt-cloud
micro_aws:
provider: aws
image: ami-88888888
script: bootstrap-salt
script_args: git v2015.5.5
size: t2.micro
securitygroupid:
- sg-12345678
- sg-23456789
minion:
@jcockhren
jcockhren / instructions.md
Last active February 2, 2016 00:58
Installing Needed tools on Windows