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
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 [[#Second Doctor|2]] \\u2022 [[#Third Doctor|3]] \\u2022 [[#Fourth Doctor|4]] \\u2022 " \ | |
"[[#Fifth Doctor|5]] \\u2022 [[#Sixth Doctor|6]] \\u2022 [[#Seventh Doctor|7]] \\u2022 [[#Eighth Doctor|8]]" \ | |
" \\u2022 [[#Ninth Doctor|9]] \\u2022 [[#Tenth Doctor|10]] \\u2022 [[#Eleventh Doctor|11]] \\u2022 " \ | |
"[[#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 |
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
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 | |
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
package com.company; | |
import java.sql.*; | |
import java.sql.Date; | |
import java.util.*; | |
// Demonstrating some example JDBC/MySQL interactions. | |
public class DogDB { |
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
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; |
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
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; |
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
Public Class frmBookStore | |
Dim OnHand As New Inventory | |
Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click | |
'Close the window and end the program | |
Me.Close() | |
End Sub |
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
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); |
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
<?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> | |
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
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; |
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
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"; |
OlderNewer