Making a turret run off Gas or Electric

So i have followed the tutorial to make a fab run off gas and electric but these instructions cause tons of errors when trying to apply them to a turret. So I was wondering if someone can point me into the right direction on how to get this done or someone can upload an example blueprint of a turret that runs this way that i can follow. Thanks in advance.