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 table Allergy | |
( | |
AllergyID char(10) not null, | |
AllergyName char(40) not null, | |
constraint uq_aid | |
unique (AllergyID) | |
); | |
alter table Allergy | |
add primary key (AllergyID); |
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 table Allergy | |
( | |
AllergyID int auto_increment, | |
AllergyName varchar(100) not null, | |
constraint AllergyPrimaryKey | |
primary key (AllergyID) | |
); | |
create table Speciality | |
( | |
SpecialityNumber varchar(100), |
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 javax.swing.*; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.*; | |
public class Main { | |
private static HashSet<String> badWordsCorrected = new HashSet<>(); |
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.Arrays; | |
/** | |
* This class looks like it's meant to provide a few public static methods | |
* for searching and sorting arrays. It also has a main method that tests | |
* the searching and sorting methods. | |
* <p> | |
* TODO: The search and sort methods in this class contain bugs that can |
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 homework; | |
public class SentenceGenerator { | |
static final String[] conjunctions = {"and", "or", "but", "because", "unless"}; | |
static final String[] proper_nouns = {"Fred", "Jane", "Richard Nixon", "Miss America"}; | |
static final String[] common_nouns = {"man", "woman", "fish", "elephant", "unicorn"}; | |
static final String[] determiners = {"a", "the", "every", "some", "all"}; | |
static final String[] adjectives = {"big", "tiny", "pretty", "bald", "long", "short", "small", "fat"}; | |
static final String[] intransitive_verbs = {"runs", "jumps", "talks", "sleeps", "eats", "walks", "breaths"}; |
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.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
runTestForLength(1000); | |
runTestForLength(10000); | |
runTestForLength(100000); | |
} |
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
<service | |
android:name=".MyFirebaseMessagingService" | |
android:enabled="true" | |
android:exported="true"> | |
<intent-filter> | |
<action android:name="com.google.firebase.MESSAGING_EVENT" /> | |
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" /> | |
</intent-filter> | |
</service> |
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
<Window x:Class="some_class" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:wpf="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf" | |
Title="some Title" | |
Width="525" | |
Height="350" | |
FlowDirection="RightToLeft" | |
Icon="1.png"> | |
<wpf:ChromiumWebBrowser x:Name="ChromiumWebBrowser"/> |