Skip to content

Instantly share code, notes, and snippets.

20 sp    21  !    22  "	23  #	 24  $	  25  %    26  &    27	'
28  (    29  )    2a  *	2b  +	 2c  ,	  2d  -    2e  .    2f	/
30  0    31  1    32  2	33  3	 34  4	  35  5    36  6    37	7
38  8    39  9    3a  :	3b  ;	 3c  <	  3d  =    3e  >    3f	?
40  @    41  A    42  B	43  C	 44  D	  45  E    46  F    47	G
48  H    49  I    4a  J	4b  K	 4c  L	  4d  M    4e  N    4f	O
50  P    51  Q    52  R	53  S	 54  T	  55  U    56  V    57	W
58  X    59  Y    5a  Z	5b  [	 5c  \	  5d  ]    5e  ^    5f	_
60  `    61  a    62  b	63  c	 64  d	  65  e    66  f    67	g
@pdxwolfy
pdxwolfy / 201-07-on-your-own-project-company-site-01.markdown
Created February 19, 2018 00:20
201.07 On Your Own Project: Company Site #01
class Card
attr_reader :rank, :suit
include Comparable
VALUES = { 'Jack' => 11, 'Queen' => 12, 'King' => 13, 'Ace' => 14 }
def initialize(rank, suit)
@rank = rank
@suit = suit
end
<!doctype html>
<html lang="en-US">
<head>
<title>javascript</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="assert.js"></script>
<style>
#first, #second, .left, .right {
border: 1px solid black;

Working With The 101-109 ("Small Problems") Exercises

The 101-109 Small Problems exercises are a set of exercises that help students who have just completed course 101 prepare for the 109 assessment. These exercises will give you lots of practice in how to solve small programming problems; not just in Ruby, but in any programming language.

Difficulty Levels

The problems are classified as Easy, Medium, and Advanced. These classifications are loosely defined, which means that some exercises may seem easier or harder than the section they're in. In order to pass the 109 assessment, you should be able to solve problems that have a difficulty level similar to those in the Medium group as a whole. For complete mastery, you should be able to handle most of the Advanced level exercises, though you won't find anything of this level on the assessment.

Ideally, you should be able to solve most of the Easy exercises with only minor references to the Ruby documentation. If you have to refer to the documentation

These exercises will challenge your problem solving ability using any language (our solutions use Ruby). Tgey range from simple one-liners to several small methods. We assume that you have mastered basic Ruby syntax, and you nust apply that knowledge in a variety of ways to arrive at a solution. Most exercises can be completed in multiple ways, so take time to think about the tradeoffs of various approaches. Don't be concerned if your solution is considerably different; that's normal and expected.

Before you begin, take some time to run through this [short primer](MISSING LINK) on how to best use and solve these exercises.

@pdxwolfy
pdxwolfy / ta
Last active December 12, 2016 22:07
#!/bin/bash
#
# ta NAME COURSE PROG
#
NAME="$1"
COURSE="$2"
PROG="$3"
if [[ "$NAME" = "" || "$COURSE" = "" || "$PROG" = "" ]] ; then
root: true
parserOptions:
ecmaVersion: 5
sourceType: script
ecmaFeatures:
globalReturn: false
impliedStrict: false
jsx: false
# Common configuration.
AllCops:
# Include common Ruby source files.
Include:
- '**/*.gemspec'
- '**/*.podspec'
- '**/*.jbuilder'
- '**/*.rake'
- '**/*.opal'
- '**/config.ru'