This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do { | |
cout << "What is your guess?" << endl; | |
cin >> guess; | |
if (guess < magicNumber); | |
{ | |
cout << "You guessed too low!" << endl; | |
} | |
else if (guess > magicNumber); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder