Skip to content

Instantly share code, notes, and snippets.

Avatar

Phillip Rosen phillro

View GitHub Profile
View gist:08f0976ce4fddc8889c6910f14b6a487
function scalingBidModifier {
maxScaleFactor = .4
rootScaleValue = $25
scalingFloor = $5
If(bid>scalingFloor){
var modifier = if(bid>=rootScaleValue){
1-maxScaleFactor
} else {
View gist:8d7011dacbcf2690a3b86304b09909a1
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQENBFnmbRQBCADDvPXs4PUsDh0/5BajVFnMiLdxzrNOMAaCPYorhJ++Le6m0She
oFCRW6Z/2AoedA9t+zlbgD9LWR3FUNBibcmU1CwbCtPKwJB/9hZNScULjdQicJ6P
YK4JQuAuU4RkTa7uaw6KpeKw8aXGhb/JxOTrUbFdZ/rMPZVkZJ62A4AQph2cDX8i
9WzmCmOYHDmQvJo6dkWHLDDGXFsWuwPWB/uKsHKXh68sK+QjmObKJ10T1K1/xkVE
GfeZ3usB/4WMgqS87yHF5abZAtpo38KK6XAyUX4Q5aqKm5ZvX3hP63ezFW97+fG3
hrGqXwpZmcdnR64Tc+ODQH1hFag2IY8Yiq5TABEBAAG0QkV2ZW4gRmluYW5jaWFs
IFRlY2ggKEV2ZW4gRmluYW5jaWFsIFRlY2gpIDx0ZWNoQGV2ZW5maW5hbmNpYWwu
View gist:7bcd6b48b76d86a8238db415f890b28d
{
"uuid": "b120a2ba-9297-46f3-b190-13b1c6fbcd2c",
"leadUuid": "8bf2da56-8fd9-40c6-ba68-7f1e6cc204cd",
"loanOffers": [
{
"uuid": "9a79f333-ea53-4d88-b432-49c539bef7dc",
"originator": {
"key": "opploans",
"name": "OppLoans",
"description": "<span> <ul> <li>Receive money in your account as soon as the next business day</li> <li>Easy online application process and quick decisions</li> <li>No prepayment fees</li><li>Rated 4.9 out of 5 stars for customer service on Google</li></span>",
View gist:d93ecfc20003195e208eae6eef602e14
var payouts = {
'best-egg':.02,
'prosper' : .015,
'ascend': .02,
'lending-club': .0115,
'avant': .005,
'upstart' : 225,
View gist:077321020e2af1f0aa3863f11d81e70b
function calculatePaymentForPrequalifiedOffer(requestedAmount, loanOffer) {
function calcPmnt(amount, apr, months){
var interest = apr / 100 / 12;
var x = Math.pow(1 + interest, months);
var monthly = (requestedAmount*x*interest)/(x-1);
return Math.round(monthly*100)/100;
}
var out = {};
var months
switch(loanOffer.termUnit){
View gist:6548bb50bea96e55e073
FROM node:4.2.1
# Bundle app source
COPY . /src
# Install app dependencies
RUN cd /src; npm install;
CMD [rm, "/src/credentials.json"]
EXPOSE 9070
View gist:40cd47d0d83fdab14b92
/** @file service.thrift Defines an RPC service schema. */
namespace java com.evenfinancial.thrift
struct TestResponse {
1: string message
}
View gist:327d4af0371828a16703
{
"message": "{\"@timestamp\":\"2015-05-10T15:48:08.250-04:00\",\"@version\":1,\"message\":\"{\\\"firstName\\\":\\\"Bobo2\\\",\\\"lastName\\\":\\\"The Hipster\\\",\\\"email\\\":\\\"email\\\",\\\"productType\\\":\\\"loan\\\",\\\"purpose\\\":\\\"parties\\\",\\\"metaDataProviderTags\\\":[],\\\"leadProviderUUID\\\":\\\"f15b2c40-c750-45e8-baf9-f7bb7509e5f2\\\",\\\"loanAmount\\\":100000,\\\"city\\\":\\\"Brooklyn\\\",\\\"state\\\":\\\"NY\\\",\\\"workPhone\\\":\\\"617-333-2221\\\",\\\"primaryPhone\\\":\\\"\\\",\\\"address1\\\":\\\"21st and 6th Ave\\\",\\\"address2\\\":\\\"Apt 300\\\",\\\"uuid\\\":\\\"f7e276cb-d35f-429e-ab5a-75eadd900756\\\",\\\"createdAt\\\":{\\\"time\\\":1431287287766},\\\"_dataSource\\\":\\\"leads/createLead\\\"}\",\"logger_name\":\"DATALOGGER\",\"thread_name\":\"ForkJoinPool-3-worker-15\",\"level\":\"INFO\",\"level_value\":20000,\"HOSTNAME\":\".local\",\"application.home\":\"/Users/dev1/Documents/dev/even/svc\"}",
"@version": "1",
"@timestamp": "2015-05-10T19:48:08.292Z",
"host": "
View gist:79054a245aa167cc52e3
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" />
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${application.home}/logs/application.log</file>
<encoder>
<pattern>%date - [%level] - from %logger in %thread %n%message%n%xException%n</pattern>
</encoder>
</appender>
View gist:12169bf00e7e7d3f934b
{
"message": "{\"@timestamp\":\"2015-05-07T16:18:14.419-04:00\",\"@version\":1,\"message\":\"{\\\"firstName\\\":\\\"Bobo\\\",\\\"lastName\\\":\\\"The Hipster\\\",\\\"email\\\":\\\"email\\\",\\\"productType\\\":\\\"loan\\\",\\\"purpose\\\":\\\"parties\\\",\\\"metaDataProviderTags\\\":[],\\\"leadProviderUUID\\\":\\\"f15b2c40-c750-45e8-baf9-f7bb7509e5f2\\\",\\\"loanAmount\\\":100000,\\\"city\\\":\\\"Brooklyn\\\",\\\"state\\\":\\\"NY\\\",\\\"workPhone\\\":\\\"617-333-2221\\\",\\\"primaryPhone\\\":\\\"\\\",\\\"address1\\\":\\\"21st and 6th Ave\\\",\\\"address2\\\":\\\"Apt 300\\\",\\\"uuid\\\":\\\"f1dd8308-81a2-4811-ba02-9e55dd646aa6\\\",\\\"createdAt\\\":{\\\"time\\\":1431029894367},\\\"_dataSource\\\":\\\"leads/createLead\\\"}\",\"logger_name\":\"DATALOGGER\",\"thread_name\":\"ForkJoinPool-3-worker-1\",\"level\":\"INFO\",\"level_value\":20000,\"HOSTNAME\":\"dockerhost\",\"application.home\":\"/Users/dev1/Documents/dev/even/svc\"}",
"@version": "1",
"@timestamp": "2015-05-07T20:18:14.423Z",
"host":