Skip to content

Instantly share code, notes, and snippets.

View young-steveo's full-sized avatar
🦑
Workin'

Stephen Young young-steveo

🦑
Workin'
View GitHub Profile
// Factory
function createPdfsController(container) {
// the dependencies required by the service. This is still lazily evaluated,
// and mockable as long as you register the mock before accessing the service
// in your tests.
const PdfService = container.service.PdfGenerator;
return {
create: (req, res, next) => {
const content_id = req.params.content_id;
const pdf_id = PdfService.generate(content_id);

Keybase proof

I hereby claim:

  • I am young-steveo on github.
  • I am youngsteveo (https://keybase.io/youngsteveo) on keybase.
  • I have a public key whose fingerprint is A446 0008 5127 8FC9 4B0F EDE4 727C 3EA1 4247 B30B

To claim this, I am signing this object:

@young-steveo
young-steveo / a.html
Last active August 29, 2015 14:04
Developing With AngularJS? Forget jQuery Exists.
<div cool-stuff>
<ul>
<li class="active"><a class="link" href="#one">Click Me For One</a></li>
<li><a class="link" href="#two">Click Me For Two</a></li>
</ul>
<p id="one" class="content">Some Cool stuff</p>
<p id="two" class="content hidden">Some Other Stuff</p>
</div>
@young-steveo
young-steveo / popper.js
Created January 16, 2014 20:47
Utility library that wraps bootbox.js and adapts it to use deferred objects
define(['jquery', 'bootbox'], function($, bootbox){
/**
* @author stephen.young@zumba.com
* @constructor
*/
var Popper = function(){};
/**
* Flat map of semantic interface methods to Deferred object methods.
@young-steveo
young-steveo / zumba.javascript.md
Last active December 21, 2015 07:29
Zumba Javascript Code Standard for internal and third-party use

Zumba Javascript Code Standard

Contents

  1. Preface
  2. Quick Reference
  3. General Naming
  4. Specific Naming
  5. Layout
  6. Variables