Skip to content

Instantly share code, notes, and snippets.

View Ian-SN's full-sized avatar

Ian Salitrynski Ian-SN

  • Sharp Notions
  • Rochester, New York
View GitHub Profile
@Ian-SN
Ian-SN / binary-search-dumb.js
Last active December 21, 2021 23:28
Dumb Binary Search Estimator
const calculatePMT = (interestRate, terms, loanBalance) => {
// interestRate should be divided by 12 when passed in
if (terms <= 0) {
return 0;
}
// causes payments to be NaN
if (interestRate <= 0) {
return loanBalance / terms;
@Ian-SN
Ian-SN / binary-search-smart.js
Last active December 21, 2021 23:27
Smart Binary Search Estimator
const calculatePMT = (interestRate, terms, loanBalance) => {
// interestRate should be divided by 12 when passed in
if (terms <= 0) {
return 0;
}
// causes payments to be NaN
if (interestRate <= 0) {
return loanBalance / terms;
===== REPAYE - Non-PSLF =====
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 67811
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 41480
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 5390
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 64549
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 49083
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 5950
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 70504
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 51396
Loan forgiven after payment 300. Estimated year: 2046 Original Loan amount: 5632
[
{
id: 2362,
value: 'AS - Cardiovascular Technology',
is_medical: false,
requires_residency: false,
hide_occupation: false,
requires_license_to_practice: false,
requires_specialty: false,
uw_appendix_version: 4,
DO $$
DECLARE
_request record;
_requestJson JSONB;
_needsUpdate BOOLEAN;
BEGIN
FOR _request IN
SELECT * FROM lender_request lr
LOOP
_needsUpdate := FALSE;
@Ian-SN
Ian-SN / queries.sql
Created July 21, 2021 20:22
Update Profile NaN
SELECT * FROM profile WHERE
personal_income = 'NaN' OR
household_income = 'NaN' OR
gov_loan_balance = 'NaN' OR
gov_loan_payment = 'NaN' OR
gov_loan_interest = 'NaN' OR
spouse_gov_loan_balance = 'NaN' OR
spouse_gov_loan_payment = 'NaN' OR
spouse_gov_loan_interest = 'NaN' OR
housing_payment_total = 'NaN' OR

Keybase proof

I hereby claim:

  • I am ian-sn on github.
  • I am iansn (https://keybase.io/iansn) on keybase.
  • I have a public key ASB64bnDTCwDrseg6LO_-bkQVQsOL8MSkCa5TYZiIIwBMwo

To claim this, I am signing this object: