Skip to content

Instantly share code, notes, and snippets.

View jbrown17's full-sized avatar

Jacob Brown jbrown17

  • Iowa City, IA
View GitHub Profile
@jbrown17
jbrown17 / goldenratio.html
Last active September 22, 2015 16:34
Calculate your body's golden ratio. HTML / JS without CSS styling
<!DOCTYPE html>
<html>
<head>
<title>Golden Ratio</title>
</head>
<body>
<script>
function calculateRatio(){
var wrist = document.getElementById("wrist").value;
@jbrown17
jbrown17 / copyFile.java
Created September 22, 2015 00:08
Example of FileInput/OutputStream to copy a file
import java.io.*;
public class copyFile {
public static void main(String[] args) {
copyFile(args[0], args[1]);
}
public static void copyFile(String file, String target) {
try {
@jbrown17
jbrown17 / rsa.java
Last active November 2, 2023 00:16
Quick, simple implementation of RSA encryption algorithm without external libraries
import java.awt.EventQueue;
import java.io.*;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
/**
* Quick and dirty implementation of the RSA algorithm