Skip to content

Instantly share code, notes, and snippets.

View kexline4710's full-sized avatar

Kathryn Exline kexline4710

  • Exline Consulting
  • Columbus, OH
View GitHub Profile
@kexline4710
kexline4710 / gist:6445884
Last active December 22, 2015 08:38
This is my method to check if a given number is in the Fibonacci sequence by using the equation in the 'recognizing fibonacci numbers' section of this wikipedia page: http://en.wikipedia.org/wiki/Fibonacci_number#Recognizing_Fibonacci_numbers. I get that this can't handle large numbers as Float isn't precise enough at a certain point. Through my…
def is_fibonacci?(i)
fib1 = Math.sqrt((5*(i**2)+4))
fib2 = Math.sqrt((5*(i**2)-4))
puts fib1 == fib1.floor || fib2 == fib2.floor ? true : false
end

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
@kexline4710
kexline4710 / index.html
Last active December 27, 2015 16:39 — forked from dbc-challenges/zoo.js
<script src="zoo.js"></script>
@kexline4710
kexline4710 / index.html
Last active December 27, 2015 16:49 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@kexline4710
kexline4710 / Mander Pitches
Created November 20, 2013 12:46
Rather than keeping our pitch ideas cooped up and only sharing them on pitch day, several of us pitched our (mostly loose) ideas last night and got feedback from our peers. Add more thoughts, ideas, and resources to the comments! We can get a discussion going, and help each other develop some awesome pitches!
- Crime Prediction App (Nathan)
- Crowdsourced Birthday Drink App (Ty)
- Clinical Trial Patient Web App (Katy)
- Annotate & Collect Links, maybe by categories (Meara)
- Real Talk Conversations (Chirag)
- Gunshot triangulation - mimicking data (Nathan)
- If you have a bad day, see Nathan's face app (Ty)
- Recreate AIM with the sound effects and look (Katy)
- Secure chat (Nathan)
- Visualize the tools/gems/languages in your github project (Katy)
class Die
attr_accessor :selected
def initialize
@selected = false
end
end
asdfvas
<!DOCTYPE html>
<html>
<head>
<title>exercism.io</title>
<style></style>
</head>
<body>
<h1>The Process</h1>
@kexline4710
kexline4710 / RPNCalculator.rb
Created February 16, 2014 19:29
My solution to the Reverse Polish Notation Problem
class RPNCalculator
def evaluate(rpn_string)
rpn_arr = rpn_string.split(' ')
operating_arr = []
rpn_arr.each do |element|
operating_arr << case element
when /\d+/ then element.to_i
when '+' then operating_arr.pop + operating_arr.pop
when '*' then operating_arr.pop * operating_arr.pop
<!DOCTYPE html>
<html>
<head>
<title>Title of the page </title>
</head>
<body>
The page content here.
</body>
</html>