Skip to content

Instantly share code, notes, and snippets.

@MelanieS
MelanieS / Holford.txt
Created January 8, 2024 08:07
Why Kenneth (Chris) Holford Should Not Be Chancellor of Purdue University Northwest
In 2015, a student, S, had bullied me for what she believed to be anorexia and I distanced myself from this student. In 2016, student Jasmine Moore, had told a professor that I did not work with her on a project. I discussed with the professor that this was a lie. The professor confronted Jasmine Moore who confessed to her that she had lied and that S had talked her into it. Holford refused to interview the lab instructor Miss Moore had lied to, interviewing only the professor who was the head of the course. Holford refused to interview me. Later, the Dean of Students divulged that Holford chose to do nothing, stating, “I don’t know why Holford chose not to do anything.” Holford refused to meet with another student bullied by S. (Speculation is that Holford knew that Moore had recently been accepted to graduate school at Purdue. Knowing this mark on her record would likely prevent her entrance and her acceptance “looked good” to the College of Science.
S had invited a faculty member to speak at an event only
// Check if page contains the text "Maternal side"
function checkPage(url, element, callback) {
let newTab = window.open(url, "_blank");
newTab.addEventListener("load", function onTabLoad() {
newTab.removeEventListener("load", onTabLoad);
let isMaternal = newTab.document.body.textContent.includes("Maternal side");
callback(isMaternal, element, newTab);
string = 'This is a Ruby tutorial.'
string.count('i')
# This returns the integer 3
# case sensitive example
string.count('r')
# This returns the integer 1
string.count('r', + 'R')
# This returns the integer 2
string = "This is a Ruby tutorial."
# This returns the index where the 1st instance of i occurs
string.index('i')
# This code returns 2
string = "This is a Ruby tutorial."
# Here we will return an array containing each instance of i
string.scan('i')
# This code returns ["i", "i", "i"]
@MelanieS
MelanieS / RollingDie.java
Last active April 2, 2019 18:03
RollingDie
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rollingdie;
import java.util.Random;
import java.util.Scanner;
import java.util.*;
import java.util.Arrays;
if rocks > pebbles
puts "You have more rocks than pebbles."
elsif rocks < pebbles
puts "You have more pebbles than rocks."
end
if rocks > pebbles
puts "You have more rocks than pebbles."
elsif pebbles > rocks
puts "You have more pebbles than rocks."
puts "Enter a starting number for your range"
range_begin = gets.chomp.to_i
puts "Enter the ending number for your range"
range_end = gets.chomp.to_i
range = (range_begin..range_end)
dirty_prime_list = []
range.each do |x|
euler = x**2 + x + 41
@MelanieS
MelanieS / melsort.rb
Created October 21, 2012 01:16
A bad sorting algorithm
unsorted_array = [5, 2, 8, 0, 9, 3, 1]
sorted_array = []
count = 0
while sorted_array.count != unsorted_array.count
unsorted_array.each do |i|
if i == count
sorted_array << i
end
end
@MelanieS
MelanieS / gist:3630535
Created September 5, 2012 04:35
Counter
puts "Pick a number 1-50"
number = gets
if number.include? "."
puts "I'm getting rid of that decimal. That was a dumb move."
end
number = number.chomp.to_i
while number < 1 || number > 50