Skip to content

Instantly share code, notes, and snippets.

View claraj's full-sized avatar

Clara claraj

  • Minneapolis College
  • Minneapolis, MN
View GitHub Profile
import re
drwho = "{{real world}}{{DISPLAYTITLE:List of ''Doctor Who'' television stories}}\\n__NOTOC__\\n<div id=\\\"box\\\" style=\\\"" \
"width:250px;float:right;margin-left:10px\\\">\\n<div id=\\\"sfh\\\">Look by Doctor<\\/div>\\n[[#First Doctor|1]] \\" \
"u2022&nbsp;[[#Second Doctor|2]] \\u2022&nbsp;[[#Third Doctor|3]] \\u2022&nbsp;[[#Fourth Doctor|4]] \\u2022&nbsp;" \
"[[#Fifth Doctor|5]] \\u2022&nbsp;[[#Sixth Doctor|6]] \\u2022&nbsp;[[#Seventh Doctor|7]] \\u2022&nbsp;[[#Eighth Doctor|8]]" \
" \\u2022&nbsp;[[#Ninth Doctor|9]] \\u2022&nbsp;[[#Tenth Doctor|10]] \\u2022&nbsp;[[#Eleventh Doctor|11]] \\u2022&nbsp;" \
"[[#Twelfth Doctor|12]]\\n<\\/div>\\nThe following is a '''list of ''[[Doctor Who]]'' televised stories'''. Names used" \
" are those given by the [[British Broadcasting Corporation|BBC]] {{As of|2015|lc = y}}. For the [[1963 (production)" \
"|1963]] version of the programme, this means that the list employs the DVD release name in most c
import java.sql.*;
public class VetDB {
static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; //Configure the driver needed
static final String DB_CONNECTION_URL = "jdbc:mysql://localhost:3306/vet"; //Connection string – where's the database?
static final String USER = "username"; //TODO replace with your username
static final String PASSWORD = System.getenv("MYSQL_PW"); //TODO remember to set the environment variable
package com.company;
import java.sql.*;
import java.sql.Date;
import java.util.*;
// Demonstrating some example JDBC/MySQL interactions.
public class DogDB {
create database animals;
use animals;
create table dogs (name varchar(30), age int, weight double, vaccinated boolean);
insert into dogs values ('Tilly', 4, 20, true);
insert into dogs values ('Poppy', 1, 24, false);
insert into dogs values ('Zelda', 4, 35, true);
insert into dogs values ('Einstein', 10, 40, false);
insert into dogs values ('Snoopy', 3, 10, true);
select * from dogs;
package com.company;
import com.google.maps.DirectionsApi;
import com.google.maps.GeoApiContext;
import com.google.maps.model.DirectionsLeg;
import com.google.maps.model.DirectionsRoute;
import com.google.maps.model.DirectionsStep;
import java.util.ArrayList;
@claraj
claraj / bookstore-search
Created June 6, 2016 17:52
bookstore basic search
package com.company;
import java.util.Scanner;
public class Main {
//Create two scanners, one for Strings, and one for numbers - int and float values.
static Scanner stringScanner = new Scanner(System.in);
static Scanner numberScanner = new Scanner(System.in);
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>VetProgram</groupId>
<artifactId>VetProgram</artifactId>
<version>1.0-SNAPSHOT</version>
package com.clara.moviereviewsfirebase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RatingBar;
package com.bignerdranch.android.scavengerhunttemp;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class ActiveHuntActivity extends AppCompatActivity {
private static final String TAG = "Active hunt activity";