Skip to content

Instantly share code, notes, and snippets.

Avatar

Rob Richardson TrailCoder502

View GitHub Profile
@TrailCoder502
TrailCoder502 / gist:f11c675ac9da9123f631
Created Sep 4, 2014
Calculate Compound Interest in Ruby
View gist:f11c675ac9da9123f631
# Author : Robert Richardson
# Date : 07-12-2014
# Project : Compound Interest
# Description : Calculate Compound Interest
# FV = PV * ( 1 + r/p) ^ n * p
def calc_interest(pv, r, n, y)
r = r / 100 # Convert To Decimal
fv = pv * (1 + (r / n))**(y * n)
View gist:6254bdfcfe71c4000600
// This will read the username, password, and mail server information from the web.config file. Very easy way to send E-Mail in .NET.
//
// <mailSettings>
// <smtp from="firstname lastname&lt;youremail@youraddress.com&gt;">
// <network host="smtp.mailserver.com" port="25" userName="myusername@smtp.mailserver.com" password="mypassword" enableSsl="false" defaultCredentials="false" />
// </smtp>
// </mailSettings>
using System.Net.Mail;
View gist:5570c5a215cfdf718cde
' Name : Login Form
' Author : Robert Richardson (robrich22@gmail.com)
' Date : 09-01-2014
' Notes : .....
Option Compare Database
Const MAX_LOGIN_ATTEMPTS = 3
Dim LoginAttempts As Integer
@TrailCoder502
TrailCoder502 / gist:9085440
Last active Aug 29, 2015
Hello Git World!
View gist:9085440
public void HelloWorld()
{
MessageBox.Show("Hello Git World! This is my first snippet. Thanks!")
}