Skip to content

Instantly share code, notes, and snippets.

View carloscasalar's full-sized avatar
💜
Helping make cities a better place to live at @cabify

Carlos Castillo carloscasalar

💜
Helping make cities a better place to live at @cabify
View GitHub Profile
@carloscasalar
carloscasalar / tipsLinux.md
Created February 3, 2016 07:39
Linux / Unix Tips
@carloscasalar
carloscasalar / tipsJavaJsonXmlAnnotations.md
Created March 9, 2016 11:57
Links and tips about Java XML and JSON Binding
@carloscasalar
carloscasalar / tipsGist.md
Last active April 1, 2016 07:47
Gist tips

Markdown and GitHub Gist tips

[![IMAGE ALT TEXT](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE "Video Title")
@carloscasalar
carloscasalar / exposePriv.js
Created November 25, 2016 11:55 — forked from ssaunders/exposePriv.js
Expose private variables for unit testing in JavaScript
/* The code below takes a constructor and exposes its private functions
Useful for unit testing (not general use). An example usage is below it.
Access to the private functions available through the _privMems property. */
/* Original credit goes to Rob Gravelle
http://www.htmlgoodies.com/beyond/javascript/accessing-private-functions-in-javascript.html */
var Reflection = {};
Reflection.createExposedInstance = function(objectConstructor, args)
{
@carloscasalar
carloscasalar / ultimate-ut-cheat-sheet.md
Created January 9, 2017 10:59 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies