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."
# 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"]
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
@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;
rename "old" "new" *
# * means all files
@MelanieS
MelanieS / permute_tri.rb
Created September 11, 2015 02:38
permute_tri.rb
a = [60, -60]
# 4 refers to number of 60s or -60s in each element of array
a = a.repeated_permutation(6).to_a
puts "The array contains #{a.length} elements."
#creates output file called permute.txt
out_file = File.new("permute_out.txt", "w")
@MelanieS
MelanieS / course_tracker
Created July 9, 2014 20:15
PNC course tracker
#Purdue North Central doesn't have waitlists, but you can get notified of seat availability with this app
require 'rubygems'
require 'open-uri'
require 'hpricot'
require 'twilio-ruby'
availability = 0
puts "Enter the CRN for the PNC course you would like to track:"
crn = gets.chomp.to_s
<?php
wp_reset_postdata();
if(comments_open( ) || have_comments()) : ?>
<div class="comments-area">
<?php if ( post_password_required() ) : ?>
<p><?php _e( 'This post is password protected. Enter the password to view any comments ', 'zeon' ); ?></p>
</div>
<?php
/* Stop the rest of comments.php from being processed,