I think this is the way to go. Offer folks one or two shorter examples of your work for free, and they will be more comfortable with purchasing your longer works.
If the free examples are solid, then they will be linked to and shared. This will help establish your name and expertise in the subject matter, and will bring many more eyeballs to your site, which will hopefully convert into sales.
I've got a few 5 or 10 minute videos on getting started with Test-Driven JavaScript using the Jasmine framework. I can give those away and then have a much longer episode on really diving deep into Jasmine. Hopefully I'll be able to get this done soon.