{"id":2,"jsonrpc":"2.0","method":"calculateDatabaseSteps","params":{"projectInfo":"","assumeToBeApplied":[{"stepType":"CreateEnum","enum":"ItemType","values":["TASK","NOTE","EVENT","CHECKIN"]},{"stepType":"CreateEnum","enum":"LogType","values":["DAILY","MONTHLY","YEARLY"]},{"stepType":"CreateModel","model":"User"},{"stepType":"CreateField","model":"User","field":"id","type":"String","arity":"required"},{"stepType":"CreateDirective","model":"User","field":"id","directive":"default"},{"stepType":"CreateDirectiveArgument","model":"User","field":"id","directive":"default","argument":"","value":"cuid()"},{"stepType":"CreateDirective","model":"User","field":"id","directive":"id"},{"stepType":"CreateDirective","model":"User","field":"id","directive":"unique"},{"stepType":"CreateField","model":"User","field":"createdAt","type":"DateTime","arity":"required"},{"stepType":"CreateDirective","model":"User","field":"createdAt","directive":
This file contains 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
#!/usr/bin/env node | |
console.log(` | |
--- | |
- -- | |
--( / \ )XXXXXXXXXXXXX | |
--XXX( O O )XXXXXXXXXXXXXXX- | |
/XXX( U ) XXXXXXX\ | |
/XXXXX( )-- XXXXXXXXXXX\ | |
/XXXXX/ ( O ) XXXXXX \XXXXX\ |
This file contains 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
// Super janky hack to scroll through my lease and click the signature button, then click the next page | |
var run7 = () => { | |
setTimeout(() => { | |
const signatures = document.getElementsByClassName('signature') | |
const initials = document.getElementsByClassName('initialHL') | |
console.log('SIGNATURES', signatures) | |
console.log('INITIALS', initials) | |
const sign = () => { | |
document.getElementsByClassName('btn btn btn-primary okClickSignature')[0].click() | |
} |
This file contains 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
/* | |
* A calculator for determining how much interest will be gained on an investment in a year | |
* Inputs: Principle, interest rate of the loan, additional amount invested every month, and the number of months to calculate interest for | |
*/ | |
const PRINCIPAL = 30000 | |
const INTEREST_RATE = .0139 | |
const ADDITIONS_PER_MONTH = 0 | |
const NUM_MONTHS = 12 |
This file contains 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
/* | |
* A calculator for determining how much interest will be paid on a loan and an estimate on how long the loan will be for. | |
* Inputs: Principle, interest rate of the loan, and monthly payment | |
*/ | |
const PRINCIPAL = 4000 | |
const INTEREST_RATE = .0525 | |
const MONTHLY_PAYMENT = 300 | |
const calculateInterest = (principal, interestRate, monthlyPayment) => { |
This file contains 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
{ | |
"movies": { | |
"byID": { | |
"movieID1": { | |
"id": "movieID1", | |
"Title": "Rogue One", | |
"Actors": "Felicity Jones, Diego Luna, Alan Tudyk, Donnie Yen" | |
}, | |
"movieID2": { | |
"id": "movieID2", |