Skip to content

Instantly share code, notes, and snippets.

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
}
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) {
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);
}
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);
}
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);
}
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);
}
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) {
# lol, this is the worst - yes I plan on changing it
$http.get('/loans')
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) {
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;