Small projects, scripts & ideas

Bill Calculator Sinatra

-- 18/09/2015 --

View the code: https://github.com/Rosa-Fox/bill-calculator-sinatra

Small Sinatra application used to calculate the total bill to pay. This is based on the percentage the user chooses to tip via form submission.

Bill Calculator

-- 18/09/2015 --

View the code: https://gist.github.com/Rosa-Fox/32a5cfbd824e6d46406c

Calculates bill depending on the parameter values when object is initialised.

Bill calculated using terminal input

-- 18/09/2015 --

View the code: https://gist.github.com/Rosa-Fox/9718154437d02ce0f39e

Ruby script to print total cost of a bill with tip included. This is based on user input to the terminal.

Blogo Experiment

-- 28/08/2015 --

View the code: https://github.com/Rosa-Fox/blogo-experiment

I am going to make a portfolio website for my sister as she is currently studying Make Up and Special FX at Uni. She wants the site to include a blog so I searched around for a mountable blog engine to plug into a Rails app. The best one I found by far was Blogo (https://github.com/greyblake/blogo) . To test it out I used it to generate a blog and was impressed by how easy it was to use (both to plug into the app and for the user to create blogs). I want to keep a consistent 'look' to the final site so in this experiment I also figured out how to over-ride the default layout and styling of the '/blog' page. This can be changed from app/assets/stylesheets/styles.sass and app/views/layouts/blogo/blog.html.erb.

Pinterest Scrape

-- 14/08/2015 --

View the code: https://github.com/Rosa-Fox/pinterest-scrape

This is a small Sinatra app used to scrape Pinterest with Nokogiri to display images of hair styles, kittens and eye make up. These are things I view often but you can change @url variables to scrape Pinterest pages for other things.

To-do list app using Sinatra and Datamapper

-- June 2015 --

View the code: https://github.com/Rosa-Fox/todo-sinatra-datamapper

To-Do List App put together as a beginner Sinatra with Data Mapper example before mentoring at Codebar - Mind the Code

Yoga Pose Generator using Sinatra and Datamapper

-- June 2015 --

View the code: https://github.com/Rosa-Fox/yoga-pose-generator

Yoga Pose Generator put together as a beginner Sinatra with Data Mapper example before mentoring at the Codebar - Mind the Code event.

Ruby Numbers Game

-- 05/05/2015 --

View the code: https://github.com/Rosa-Fox/ruby_numbers_game

Ran through the Ruby Basics Codebar tutorial (http://tutorials.codebar.io/ruby/lesson2/tutorial.html) as a refresher before helping a student through the tutorial at a Codebar workshop. Teaching the tutorial to the student went well and I was glad I had run through it beforehand. I think the most difficult part is ensuring variables are not out of score and helping someone understand where to physically write the different parts of the program in order to learn the rules of how everything works together. Even for a small program like this there is still a lot for someone to take in but she did really well. Definitely enjoying and learning loads from teaching Ruby to someone and I feel like it is all cementing into my mind that bit more.

Youtube Rails

-- 24/04/2015 --

View the code: https://github.com/Rosa-Fox/youtube-practice

I am planning to build a guitar practice website. Part of this will involve displaying Youtube videos thus working with the Youtube API. I worked through this tutorial: http://www.sitepoint.com/youtube-rails/ which uses the youtube_it Ruby gem (https://github.com/kylejginavan/youtube_it). I had to make a few changes as I was using Rails 4.2.0 and the tutorial uses Rails 3.2.21 but overall it worked well. Looking forward to playing some more with the Youtube API.