Skip to content

Instantly share code, notes, and snippets.

View RyanMacG's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿

Ryan MacGillivray RyanMacG

🏴󠁧󠁢󠁳󠁣󠁴󠁿
View GitHub Profile
scriptencoding utf-8
" Colourscheme setting
colorscheme OceanicNext
" Airline config
" {{{
let g:airline_theme='oceanicnext'
let g:airline_left_sep = '▓▒░'
let g:airline_right_sep = '░▒▓'
let g:airline_section_z = '%2p%% %2l/%L:%2v'
make CTPC=yes kingly_keys/romac:default
QMK Firmware 0.7.97
Making kingly_keys/romac with keymap default
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: tmk_core/common/chibios/bootloader.c In file included from ./lib/chibios/os/common/ext/CMSIS/ST/STM32F3xx/stm32f303xc.h:168,
make kingly_keys/romac:default:flash
QMK Firmware 0.7.97
Making kingly_keys/romac with keymap default and target flash
avr-gcc (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:

TDD Why?

Pros

  • Small tests should force code to be more modular
    • Helps you learn and understand the key components of modular design
  • Better architecture by-proxy; by making sure all our code is unit testable we
    1. Have to have proper modularization as above
    2. Are more likely to surface architectural issues earlier
  • Code is easier to maintain, refactor and even rewrite because we have a baseline of
@RyanMacG
RyanMacG / nvimrc
Last active January 23, 2017 22:28
My neovim config
" ============================================================================= Setup =============================================================================
"
" Allow the neovim Python plugin to work inside a virtualenv, by manually
" specifying the path to python2. This variable must be set before any calls to
" `has('python')`.
if has('nvim')
let g:python_host_prog='/usr/bin/python2.7'
let g:python3_host_prog='/usr/bin/python3'
set termguicolors
@RyanMacG
RyanMacG / baby.rb
Created July 23, 2015 09:32
Baby class for ruby
class Baby
attr_reader :baby_thing
BABY_THINGS = [
'poop',
'sleep',
'cry',
'eat',
'burp',
'throw up',
@RyanMacG
RyanMacG / Bundler env pre 1.6.4
Created August 22, 2014 09:53
Bundler env 1.6.3
Bundler 1.6.3
Ruby 2.1.1 (2014-02-24 patchlevel 76) [x86_64-darwin13.0]
Rubygems 2.2.2
GEM_HOME
Bundler settings
jobs
Set for the current user (/Users/ryan/.bundle/config): "3"
@RyanMacG
RyanMacG / bundle_env 1.6.4 onwards
Created August 22, 2014 09:52
Bundler 1.6.4 and above
Bundler 1.7.0
Ruby 2.1.1 (2014-02-24 patchlevel 76) [x86_64-darwin13.0]
Rubygems 2.2.2
GEM_HOME
Bundler settings
jobs
Set for the current user (/Users/ryan/.bundle/config): "3"
@RyanMacG
RyanMacG / Guardfile
Created May 20, 2014 07:37
Guardfile generated on failed guard init
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
source 'http://rubygems.org'
# Backend
gem "pg"
gem "protected_attributes"
gem "therubyracer", :group => :production
# Development and test tools
# TODO: Something is depending on this in production