Abhijit Khanna

Github | LinkedIn

Full Stack Software Developer


Abhijit began his career as a developer, upon completion of a Computer Science undergraduate degree. After a few years of programming, Abhijit opted to make a foray into business roles in order to become more well-rounded and gain insight into the business world. Having honed his business/soft skills, Abhijit pursued his MBA. Following various analytical roles, Abhijit is currently pivoting back into technical roles in order to pursue his love of building things and applying technology to solve real world problems. Personally, Abhijit is an environmental sustainability enthusiast and trivia afficionado.


Skills

JavaScript HTML/CSS Python Ruby
Intermediate Intermediate Junior Junior

Ruby Code Snippets


Temperature Conversion

This ruby program will prompt the user for a temperature in degrees celsius and let the user know what the corresponding temperature is in fahrenheit


	def celsius_to_fahrenheit(celsius)
	  return celsius * 9 / 5 + 32
	end

	puts "Please enter degrees in Celcius: "
	celsius = gets.chomp.to_f

	puts "You entered #{celsius} degrees Celsius"
	puts "The temperature is #{celsius_to_fahrenheit(celsius)} degress Fahrenheit."
	


	def ordinal_it(input, ones_digit)

	  if input >= 11 && input <= 13
	          puts "That's the #{input}th item!"
	  elsif ones_digit == 1
	          puts "That's the #{input}st item!"
	  elsif ones_digit == 2
	          puts "That's the #{input}nd item!"
	  elsif ones_digit == 3
	          puts "That's the #{input}rd item!"
	  else
	          puts "That's the #{input}th item!"
	  end
	  
	end

	puts "Please enter a number"

	user_input = (gets.chomp).to_i

	right_most = user_input % 10

	ordinal_it(user_input, right_most)
	

Ordinal Challenge

This ruby program will convert a plain number to the ordinal of the number. So, for example, if the user enters 2, it will display 2nd, if the user enters 3, it will display 3rd, etc.


Foobar

This ruby program is an adaption of the classic technical interview problem which displays sequences of the Foobar pattern


	def div_by_3(num)
	  
	  if (num % 3) == 0
	    return true
	  else
	    return false
	  end
	  
	end

	def div_by_5(num)

	  if (num % 5) == 0
	    return true
	  else
	    return false
	  end  
	  
	end

	def foobar_main(num_elements)
	  
	  i = 1
	  
	  num_elements.times do
	    
	    if (div_by_3(i)) && (div_by_5(i))
	      puts "Foobar"
	    elsif (div_by_3(i))
	      puts "Foo"
	    elsif (div_by_5(i))
	      puts "Bar"
	    else
	      puts i
	    end
	  
	     i = i + 1
	  end
	  
	end


	puts "How many elements do you want to see the foobar pattern for? (please enter an integer number)"
	elements = (gets.chomp).to_i

	foobar_main(elements)
	

Web Apps


Rock Dodger

Using JavaScript to build a rock-dodging game. Utilizes windows.RequestAnimationFrame to animate movement. Base code provided, but functionality built out by me.

Project code on GitHub


Skills & Tools


Abhijit has developed proficiency and expertise in the following programming languages and comfort with the following tools.

code anywhere

Contact


Currently entertaining new opportunities. Please get in touch via email:

abhijit.khanna@live.com