For this project you will build a research/reporting tool for data from the Federal Consumer Financial Protection Bureau.
Your data source is the Federal Consumer Financial Protection Bureau.
| # @param {Integer} num1, {Integer} num2 | |
| # @return {Integer} | |
| def max(num1, num2) | |
| return num1 > num2 ? num1: num2 | |
| end | |
| # @param {Integer[]} nums | |
| # @return {Integer} | |
| def max_sub_array(nums) | |
| return 0 if nums == nil |
| phone_numbers = [ | |
| "(206) 555-1234", | |
| "425-555-9999", | |
| "406.555.1818", | |
| "+1 206 555 8888", | |
| "4255558872", | |
| ] | |
| pattern = /^.*(\d{3}).*(\d{3}).*(\d{4})$/ |
| class User | |
| attr_reader :email | |
| # attr_writer :name | |
| attr_accessor :name | |
| def initialize(name, email) | |
| @name = name | |
| @email = email | |
| end |
| const SALES_TAX = 0.08; | |
| class Zine { | |
| constructor(name, | |
| publisher = 'Zif Davis', | |
| price = 9.99) { | |
| this.name = name; | |
| this.publisher = publisher; | |
| this.price = price; | |
| } |
| const isIsogram = function isIsogram(text) { | |
| return true; | |
| }; | |
| export default isIsogram; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <link rel = "stylesheet" | |
| type = "text/css" | |
| href = "style.css" | |
| /> | |
| </head> |
| require 'httparty' | |
| require 'awesome_print' | |
| KEY = "AIzaSyBP30mYnbwKpZ0lCHtp6FuvcNSjNG0GsGM" | |
| PLACE_FROM_TEXT_STRING = "https://maps.googleapis.com/maps/api/place/findplacefromtext/json?inputtype=textquery" | |
| DETAIL_STRING = "https://maps.googleapis.com/maps/api/place/details/json" | |
| #Starter Code: | |
| seven_wonders = ["Great Pyramid of Giza", "The Ishtar Gate", "Colossus of Rhodes", "Pharos of Alexandria", "Statue of Zeus at Olympia", "Temple of Artemis", "Mausoleum at Halicarnassus"] |
| require 'httparty' # If using Rails with a Gemfile, this require is not needed | |
| require 'awesome_print' | |
| # response = HTTParty.get('https://dog.ceo/api/breeds/image/random') | |
| # puts response.code | |
| # puts response.message | |
| # puts response.body |
| puts "Executing the Rails template" | |
| API_MODE = ARGV.include? '--api' | |
| puts "API mode: #{API_MODE}" | |
| unless API_MODE | |
| # jQuery is cool | |
| gem 'jquery-rails' | |
| # Make $(document).ready work as expected, despite turbolinks weirdness | |
| gem 'jquery-turbolinks' |
For this project you will build a research/reporting tool for data from the Federal Consumer Financial Protection Bureau.
Your data source is the Federal Consumer Financial Protection Bureau.