This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nelsonbrandao on github. | |
* I am nelsonbrandao (https://keybase.io/nelsonbrandao) on keybase. | |
* I have a public key ASAQsY1USsDxW9WMYFj9J93Ulp1CMPqpE5dohl6l8Vuarwo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var q = require('q'); | |
// Parallel | |
q.all(array.map(function (elem) { | |
return processElem(elem); | |
})); | |
// Or simply |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var canvas = document.getElementById("myCanvas"); | |
tool.minDistance = 10; | |
var path; | |
function onMouseDown(event) { | |
// Create a new path and select it: | |
path = new Path(); | |
path.strokeColor = '#00000'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app') | |
.factory('CurrentUserService', [ | |
'$q', '$rootScope', 'UserService', | |
($q, $rootScope, UserService)-> | |
myService = {} | |
myService._initialized = false | |
myService.refresh = -> | |
# Create the defer to promise data | |
deferred = $q.defer() | |
# Get the data from the API |