Skip to content

Instantly share code, notes, and snippets.

View KronicDeth's full-sized avatar

Elle Imhoff KronicDeth

View GitHub Profile
function insertHREFs() {
// get all anchor tags
// THIS WORSK IN IE OR CHROME
var navControlLinks = document.querySelectorAll('a[data-nav-control-id]');
for(var i=0; i < navControlLinks.length; i++) {
var element = navControlLinks[i];
var dataNavControlId = element.getAttribute('data-nav-control-id');
var value = obj.get(dataNavControlId);
concatenateURL(element, value);
function insertHREFs() {
// get all anchor tags
// THIS DOESN'T WORK IN IE OR CHROME - INACTIVE a tags
var queryAllAWithSelector = document.querySelectorAll('a[data-nav-control-id]');
for(var dataLoop=0; dataLoop < queryAllAWithSelector.length; dataLoop++) {
var dataNav = element.getAttribute('data-nav-control-id');
var value = obj.get(dataNav);
concatenateURL(element, value);
}
<script>
function colorCodeTags(){
var cells = document.getElementsByTagName("td");// finding all the TD tags
for (var cell of cells) {
if (!cell.classList.contains("ms-vb-title")) {
const innerText = cell.innerText
switch (cell.innerText) {
case "Blue":
@KronicDeth
KronicDeth / Vagrantfile
Last active October 27, 2016 02:18
Vagrantfile for Erlang Meetup 27OCT2016
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
#include <iostream>
#include <fstream>
#include <string>
//***********************************
// A program to search through 4 different files looking for a number, 5
//***********************************
void insertSort(int arrayToSort[], int arraySize){
// Regina Imhoff
// Ecampus CS 161
// Assignment #6
// makes histogram of students' grades as entered by an instructor
#include <iostream> // includes and statements section
#include <string> // strings
#include <cstdlib> //c standard library
#include <stdio.h>
#include <string.h>
#include <iostream> // includes and statements section
#include <string> // strings
#include <cstdlib> // c standard library
#include <ctime> // time
using std::cin; // user input
using std::cout; // machine output
using std::endl; // for line breaks
using std::strtol; // convert string to int
using std::string; //string
do {
cout << "What is your guess?" << endl;
cin >> guess;
if (guess < magicNumber);
{
cout << "You guessed too low!" << endl;
}
else if (guess > magicNumber);
#include <iostream> // includes and statements section
using std::cin; // user input
using std::cout; // machine output
using std::endl; // for line breaks
int main () {
int coupons;
cout << "How many coupons did you win?" << endl;
@KronicDeth
KronicDeth / postgresql.rb
Created June 15, 2011 18:54
Postgres 8.4.8 Homebrew forumula
require 'formula'
require 'hardware'
class Postgresql <Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v8.4.8/postgresql-8.4.8.tar.bz2'
md5 '4603e8ea30cee97189b62b39022f2043'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old