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
| response := &types.PhoneFraudDataResponse{ | |
| Id: docId, | |
| } | |
| m, err := desmond.NewMessage(desmond.PHONE_FRAUD_DATA_CREATE_COMPLETE, requestId, response, false) | |
| if err != nil { | |
| desmond.HandleError(h.queue, desmond.PHONE_FRAUD_DATA_CREATE_COMPLETE, requestId, err) | |
| return | |
| } |
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
| for (var i = 24; i > 0; i--) { | |
| var largeArcFlag = i < 13 ? 0 : 1; | |
| var angle = i * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 %s,0 %s,%s z" fill="blue" stroke="black" stroke-width="0.3" stroke-linejoin="round" />' | |
| console.log(svgPath, i, largeArcFlag, x, y); | |
| } | |
| function toRadians (angle) { |
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
| for (var i = 24; i > 0; i--) { | |
| var fillColor = i % 2 == 0 ? 'blue' : 'orange'; | |
| var largeArcFlag = i < 13 ? 0 : 1; | |
| var angle = i * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 %s,0 %s,%s z" fill="%s" stroke="black" stroke-width="0.3" stroke-linejoin="round" />' | |
| console.log(svgPath, i, largeArcFlag, x, y, fillColor); | |
| } |
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
| for (var i = 24; i > -1; i--) { | |
| var fillColor = i % 2 == 0 ? 'blue' : 'orange'; | |
| var largeArcFlag = i < 13 ? 0 : 1; | |
| var angle = i * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 %s,0 %s,%s z" fill="%s" stroke="black" stroke-width="0.3" stroke-linejoin="round" />' | |
| console.log(svgPath, i, largeArcFlag, x, y, fillColor); | |
| } |
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
| for (var i = 24; i > 0; i--) { | |
| var fillColor = i % 2 == 0 ? 'blue' : 'orange'; | |
| var largeArcFlag = i < 13 ? 0 : 1; | |
| var angle = i + 1 * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 %s,0 %s,%s z" fill="%s" stroke="black" stroke-width="2" stroke-linejoin="round" />' | |
| console.log(svgPath, i, largeArcFlag, x, y, fillColor); | |
| } |
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
| for (var i = 24; i > 0; i--) { | |
| var fillColor = i % 2 == 0 ? 'blue' : 'orange'; | |
| var largeArcFlag = i < 13 ? 0 : 1; | |
| var angle = i * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 %s,0 %s,%s z" fill="%s" stroke="black" stroke-width="2" stroke-linejoin="round" />' | |
| console.log(svgPath, i, largeArcFlag, x, y, fillColor); | |
| } |
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
| for (var i = 24; i > 0; i--) { | |
| var fillColor = i % 2 == 0 ? 'blue' : 'orange'; | |
| var angle = i * 15; | |
| var x = Math.cos(toRadians(angle)) * 150 - 150; | |
| var y = 0 - (Math.sin(toRadians(angle)) * 150); | |
| var svgPath = '<path data-index="%s" d="M 200,200 l 150,0 a150,150 0 0,0 %s,%s z" fill="%s" stroke="black" stroke-width="2" stroke-linejoin="round" />' | |
| console.log(svgPath, i, x, y, fillColor); | |
| } | |
| function toRadians (angle) { |
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
| # lol, this is the worst - yes I plan on changing it | |
| $http.get('/loans') |
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 fs = require('fs'); | |
| function resolve (path, visited) { | |
| visited.push(path); | |
| var fileString = fs.readStringFromFile(path); | |
| if (fileString.contains("<include")) { | |
| var includeIdxs = fileString.indexesOf("<include"); | |
| includeIdxs.forEach(function (includeIdx, i) { | |
| var secondPath = fileString.readTilNext(includeIdx, '>'); | |
| if (visited.indexOf(secondPath) >= -1) { |
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
| function Node (id) { | |
| this.id = id; | |
| this.friends = []; | |
| this.equals = function equals (otherNode) { | |
| return this.id === otherNode.id; | |
| }; | |
| } | |
| function shortestPath (root, dest) { | |
| var current = root; |
NewerOlder