DanielReadability in Fibonacci Sequence looping methodsA Fibonacci sequence is a progression of numbers whereby each number in the sequence is equal to the sum of the previous two values. Thus…Apr 6, 2017Apr 6, 2017
DanielES6 Syntax Arrow Function ExampleOne of the more popular improvements of ES6 is the arrow function. In its simplest implementation it allows you remove the word ‘function’…Mar 29, 2017Mar 29, 2017
DanielBinary Search in RubyGiven an array of pre-sorted values, how do we return the index for a given value using Ruby? In real life, most of the time you would take…Mar 20, 2017Mar 20, 2017
DanielUsing ActionCable to provide updates on background job in your Rails appOne of my rails apps includes an email search feature that can take anywhere from a second to over a minute to perform. I’ve already stuck…Mar 16, 20171Mar 16, 20171
DanielSearching emails in Ruby with Gmail APIUp until recently I was using a combination of the gmail and omniauth-google-oauth gems to gain access to a users gmail inbox and retrieve…Mar 9, 20171Mar 9, 20171
DanielServer Side Pagination With RailsIf your API responds to a GET request with a lot of records, it’s a good idea to paginate, and even better to perform the pagination on the…Mar 2, 2017Mar 2, 2017
DanielAngular and Turbolinks…Still not convinced if this was worth it, but if you find yourself adding features to a full stack rails app that may involve some heavy…Feb 23, 2017Feb 23, 2017
DanielPassing refreshed JWT’s from Rails API using headersI recently set up a basic Rails API that uses JWT’s to authenticate a user before granting access to a resource (see here). The API…Feb 15, 20171Feb 15, 20171
DanielAdding Charts to Rails with Chartkick, HighCharts and GroupdateMy grocer app creates a rich database of shopping trips, products and their prices over time. My app currently allows a user to easily…Feb 8, 20172Feb 8, 20172
DanielFrom Rails/Angular app to Rails API and Angular App, Part One: setting up API and JSON Web TokensAll of my apps so far have been full stack rails apps with either jQuery or Angular powering the front end from within the asset pipeline…Feb 1, 2017Feb 1, 2017