Skip to content

Instantly share code, notes, and snippets.

View CraigMorton's full-sized avatar

Craig Morton CraigMorton

View GitHub Profile

JS Constructor Lab

The task is to test drive the beginnings of an adventure game.

Tasks:

A.

  • Create a constructor to create a Hero character.
    • A Hero has a name
  • A Hero has health

##Enumerable Lab

Create Bank using enumerable lodash methods.

Bank should be able to:

  • Add an account
  • Find account by name owner name.
  • Find the largest account.
  • Find the total account value.

JS Record Store

Learning Objectives

  • Implement an OO JS program using the 'new' keyword
  • Practice adding methods to objects
  • Using JS data structures and loops
  • Practice building a TDD program from scratch

Requirements

#!/bin/sh
# Uninstall Android Studio
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
VERB PATH ACTION
GET /pizzas index
GET /pizzas/:id show
GET /pizzas/new new
POST /pizzas create
GET /pizzas/:id/edit edit
POST /pizzas/:id update
POST /pizzas/:id/delete destroy
a_string = String.new('a_string')
another_string = String.new('another_string')
puts a_string
puts a_string.hash
puts another_string
puts another_string.hash
puts a_string.hash == another_string.hash
a_hash = {}
VERB PATH ACTION
GET /pizzas index
GET /pizzas/:id show
GET /pizzas/new new
POST /pizzas create
GET /pizzas/:id/edit edit
POST /pizzas/:id update
POST /pizzas/:id/delete destroy
echo "Installing and configuring Awesome Print for IRB"
gem install 'awesome_print'
cat >> "$HOME/.irbrc" << EOM
require "awesome_print"
AwesomePrint.irb!
require 'irb/completion'
IRB.conf[:AUTO_INDENT] = true
IRB.conf[:SAVE_HISTORY] = 1000
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
@CraigMorton
CraigMorton / cloudSettings
Created January 28, 2019 15:34
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-28T15:34:09.186Z","extensionVersion":"v3.1.2"}