I hereby claim:
- I am dancoughlin on github.
- I am dmc186 (https://keybase.io/dmc186) on keybase.
- I have a public key ASCy5mPeiInwr1fP8EzHumvQguHzAo5kUHbU9_jyFOJZ1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
8. Write a Java code snippet to ask a user how many classes they are taking this semester. | |
Create an array of courses to based on that input, and then ask the user | |
to enter each course and and put those in the courses array. When the user has | |
completed entering their courses, print out the list of courses under the | |
heading "----Sprint 2019 Course Schedule------". Final output should be something like: | |
----Sprint 2019 Course Schedule------ | |
IST140 | |
MATH110 | |
ENG015 |
// part a | |
String[][] songs = { | |
{"Come Together", "Something", "Maxwell's Silver Hammer", "Oh! Darling", "Octopus's Garden", "I Want You"}, | |
{"Here Comes the Sun", "Medley", "Her Majesty" } | |
}; | |
for (int i=0; i < songs.length; i++) { | |
System.out.println("Side: " + (i+1)); | |
for (int j=0; j < songs[i].length; j++) { | |
System.out.println(songs[i][j]); | |
} |
String[][] results = | |
{ | |
{"homeLabs", "1500 sq feet", "169.99", "4.6", "HME020030N"}, | |
{"Inofia", "1050 sq feet", "130.04", "4.4", "GA2"}, | |
{"Yaufey", "1500 sq feet", "159.99", "4.5", "163A"}, | |
{"homeLabs", "4500 sq feet", "204.99", "4.6", "HME020031N"} | |
}; | |
String[] labels = {"Manufacturer", "Coverage", "Price", "Avg Rating", "Model #"}; | |
for (int i=0; i < results.length; i++) { | |
System.out.printf("%15s%n", "Product " + (i+1)); |
/* | |
a: | |
Create a two dimensional array that is | |
5 rows (outer loop) referenced with first set of brackets [x][] | |
by | |
10 columns (inner loop) referenced with second set of brackets [][x] | |
put a random number between 1-100 in each position. | |
b: | |
Print out all the numbers in a 5 row by 10 column format |
require 'csv' | |
namespace :break_up_csv do | |
desc "take the OSP file and merge it with the active AI User accounts | |
to get a file (found.xls) that has OSP grant data with all user info | |
and another file (not_found.xls) that includes the OSP grant data that | |
doesn't have matching users" | |
task split_files: :environment do | |
puts "open data file." |
$npm start | |
> [email protected] start /Users/dmc186/mypubs | |
> node --harmony addItems.js | |
Uploading items: | |
Unhandled rejection Error: Forbidden | |
at Message.Object.defineProperties.error.get (/Users/dmc186/mypubs/node_modules/zotero/lib/message.js:196:19) | |
at Message.<anonymous> (/Users/dmc186/mypubs/node_modules/zotero/lib/client.js:150:21) |
#!/bin/bash | |
# give counts for two different variables | |
# for any file passed | |
# and output the values | |
n1=`grep -i $1 $3 | wc -l` | |
n2=`grep -i $2 $3 | wc -l` | |
# output the values | |
echo In file: $3 | |
echo I found $1 $n1 times |
repo_id = 3 | |
login_url = "http://<url to hit>/users/<user name to login as>/login" | |
repo_url = "http://<url to hit>/repositories/#{repo_id}/" | |
all_repos_url = "#{repo_url}/resources?all_ids=1" | |
ind_repo_url = "#{repo_url}/resources/" | |
c = Curl::Easy.http_post(login_url, Curl::PostField.content('password', '<config var>')) | |
json = JSON.parse(c.body_str) | |
token = json['session'] | |
repos = Curl.get(all_repos_url) do |http| | |
http.headers['X-ArchivesSpace-Session'] = token |
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the bottom of the | |
* compiled file so the styles you add here take precedence over styles defined in any styles | |
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new |