Skip to content

Instantly share code, notes, and snippets.

View CheezItMan's full-sized avatar

Chris M CheezItMan

View GitHub Profile
@CheezItMan
CheezItMan / maximum_continguous_integers.rb
Last active May 5, 2019 23:29
Find the max consecutive integers in an array
# @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;
}
@CheezItMan
CheezItMan / isogram.js
Last active November 17, 2018 04:23
Isogram Exercism Starter Code
const isIsogram = function isIsogram(text) {
return true;
};
export default isIsogram;
@CheezItMan
CheezItMan / index.html
Created November 16, 2018 22:31
My Solution
<!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"]
@CheezItMan
CheezItMan / example-api.rb
Created October 30, 2018 17:52
My Example Ruby Code
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
@CheezItMan
CheezItMan / .rails-template.rb
Created September 26, 2018 17:15
A Rails Application Template using Bootstrap
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'

Federal Consumer Protection Data Analysis

For this project you will build a research/reporting tool for data from the Federal Consumer Financial Protection Bureau.

Data Source

Your data source is the Federal Consumer Financial Protection Bureau.

Project Requirements