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
/** | |
* ------------------------------------------- | |
* File name: ${NAME}.java | |
* Project Name: ${NAME} | |
* Created By: John Doe | |
* Email: username@stumail.northeaststate.edu | |
* Course & Section: CISP 1020 MW | |
* ------------------------------------------- | |
*/ |
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
function moneyRounder(money) { | |
return (money - (money % 1)) + (1 - ((Math.floor((1 - (money % 1)) * 100)) / 100)); | |
} | |
// Option 1: Call the above function | |
console.log(moneyRounder(33.3333333)) | |
// Option 2: Multiply your money by 100, use the Math.ceil(), then divide by 100 | |
console.log(Math.ceil(100*33.3333333)/100) |
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
<!-- Auto Adds Current Year to Copyright Text | |
Useage: Add div where ever you need copyright information and it will be filled with | |
the message created on line 11 with the current year. | |
--> | |
<div id="copyright"> | |
<script> | |
var theCurrentDate = new Date() |
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
/* | |
Serverless Function to connect Ghost to ConvertKit | |
Required Enviroment Vairables: | |
API_KEY - Your ConvertKit API Key | |
FORM_ID - The ConvertKit form's ID you wish to subscribe users to | |
TAG_ID - Tag to mark users with in ConvertKit | |
Ghost Settings: | |
In Ghost create a new custom integration and add webhooks for new member and |
NewerOlder