Skip to content

Instantly share code, notes, and snippets.

View sjgjohnston's full-sized avatar

Stephen Johnston sjgjohnston

  • Self
  • San Francisco Bay Area
  • 00:55 (UTC -07:00)
View GitHub Profile
@sjgjohnston
sjgjohnston / Project1_refactoring_feedback.md
Last active December 26, 2015 19:59
Code Refactoring Feedback on Miriam's Project 1

Refactoring Feedback:

I didn't get time to examine the detailed action flow of your code to offer detailed logic improvements, if any exist. Just following the guidelines I created the following...

GIT Project issues:

  • Need to delete README.rdoc and create a new README.md
  • You made commit comments in German - should be English for other devs to understand summary of scope of change
  • You should add .DS_Store to your .gitignore file so that is is not committed by default.
@sjgjohnston
sjgjohnston / debug_1_sjohnston.md
Last active December 24, 2015 17:09
debug_1_sjohnston.md

Debugging (Use The Duck… )

Find the errors in the following

1.)

My script is loading fine, but separate style sheets aren't working

#Debugging (Use The Duck… )

Find the errors in the following

1.)

@sjgjohnston
sjgjohnston / gist:6832398
Created October 4, 2013 20:42
Mini lab on Javascript prototyping...
MINI LAB:
Do a Person class and create two subclasses "Manager" and "Employee"
First define constructors, then define prototypes
1. Define the person function:
Person = function (name) {
if(name) {
this.name = name;
}
@sjgjohnston
sjgjohnston / gist:6828189
Last active December 24, 2015 16:29
GA WDI - Week 2 - Day 4 (Thursday) Homework
@sjgjohnston
sjgjohnston / tic-tac-toe.rb
Created September 30, 2013 18:21
tic-tac-toe.rb
require "Rumoji" # See; https://github.com/mwunsch/rumoji
# Customize grid space and player icons as emoji charcters from: http://www.emoji-cheat-sheet.com/
require "Rainbow"
class Grid
attr_accessor :production_run, :player_x_moves, :player_o_moves
def initialize(production_run, player_x_moves, player_o_moves)
@is_debug_mode = false # set to true to invoke debugging statements if needed...
# create an Array of 4 shoes
puts "01 ------" # to make the output easier to see...
shoes = ["loafers", "heels", "doc martins", "winklepickers"]
p shoes
# iterate through your Array using each and {}'s
# and show a list of your shoes
puts "02 ------" # to make the output easier to see...
shoes.each { |shoe| puts shoe}
@sjgjohnston
sjgjohnston / gist:6736068
Created September 27, 2013 22:23
09/27 Quiz gistfile1.rb
# ,o888888o. 8 8888 88 8 8888 8888888888',8888'
# . 8888 `88. 8 8888 88 8 8888 ,8',8888'
# ,8 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888'
# `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888'
# ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888'
# ,o888888o. 8 8888 88 8 8888 8888888888',8888'
# . 8888 `88. 8 8888 88 8 8888 ,8',8888'
# ,8 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888'
# `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888'
# ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888'