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 / tipsVue.md
Last active January 17, 2019 07:11
Vue.js Tips
@carloscasalar
carloscasalar / tipsIntelliJ.md
Last active December 1, 2019 09:22
Intellij Tips
@carloscasalar
carloscasalar / tipsChrome.md
Created October 2, 2017 10:12
Chrome tips

Chrome tips.

  • Enable socket.io debug: localStorage.debug='*socket.io'
@carloscasalar
carloscasalar / tipsEs6.md
Last active December 18, 2017 10:43
ES6 links and tips
@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


@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)
{