wifi password: Ir0nY@rd$*
You will want to run which command
for the commands:
- brew
- git
- rbenv
- pry
And check for the following versions with command -v
or
command --version
(function () { | |
var exports = {}; | |
exports.makeArray = function (a, b) { | |
return function(chooser) { | |
return chooser(a, b); | |
}; | |
}; | |
exports.first = function (array) { |
wifi password: Ir0nY@rd$*
You will want to run which command
for the commands:
And check for the following versions with command -v
or
command --version
If you have questions, I will be happy to expand these notes.
Note that you need to add the httparty
gem to your Gemfile for this code to work!
You may also want to get RSpotify
to handle this for you! Instructions for trying that
are in their README here.
I haven't used it before but am more than happy to help debug issues!
Supporting OAuth requires storing Access Tokens, Refresh Tokens, and Expiration Times on the User model.
I have not included migrations for that in this code. You can see I assume column names of access_token
,
(ql:quickload 'famiclom) | |
(in-package :famiclom) | |
(defparameter *candidates* nil) | |
(defun init () | |
(load-rom "/Users/brit/quicklisp/local-projects/famiclom/roms/smb.nes")) | |
(defun get-prg () |
Tonight, you'll write a simple API with Sinatra that can play Daft Punk samples. One of you should write the API, the other person should write a client for the server with HTTParty.
For more info, see the questions.md!
Work with your teammate (see "Teams") on a shared git repository as follows:
In this assignment, we'll implement a version of tic-tac-toe that we can play from the command line. You should push what you have by Monday at 8am. Incomplete work that is on time and later refined is preferred to late work that is complete and bug-free.
I would prefer you submit the script as one file and prompt the user for different options (e.g. computer or human 2nd player, hard mode, etc.)
Please do not use Classes for this assignment. It is possible we will revisit it
require 'pry' | |
words = [ | |
"buffalo", "sportscar", "coffee", "snazzy", | |
"childish", "futile", "authoritarian", "fantastic", | |
"beautiful", "building", "macintosh", "airport" | |
] | |
answer = words.sample | |
turn_count = answer.length |
# Pieces of data in Hangman | |
# - Answer | |
# - Guesses | |
# - Turn Count | |
require 'pry' | |
words = ["raining", "downpour", "parking", "tuesday", | |
"bourbon", "sour", "mash", "capitalism", | |
"puppies", "unicorns", "disestablishmentarianism" |
# Gets for input, puts for output | |
# data to track: | |
# letters guessed, strings | |
# turn count, number | |
# answer, string | |
# actions in hangman: | |
# inform user of word length | |
# take turns until the game ends |