Skip to content

Commit 51053cd

Browse files
Solar-Car-race-map (#433)
change changes
1 parent 2db9a7f commit 51053cd

File tree

79 files changed

+1516
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1516
-0
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Title of the Lab
2+
3+
## Introduction
4+
5+
*Describe the lab in one or two sentences, for example:* This lab walks you through the steps to ...
6+
7+
Estimated Time: -- minutes
8+
9+
### About <Product/Technology> (Optional)
10+
Enter background information here about the technology/feature or product used in this lab - no need to repeat what you covered in the introduction. Keep this section fairly concise. If you find yourself needing more than two sections/paragraphs, please utilize the "Learn More" section.
11+
12+
### Objectives
13+
14+
*List objectives for this lab using the format below*
15+
16+
In this lab, you will:
17+
* Objective 1
18+
* Objective 2
19+
* Objective 3
20+
21+
### Prerequisites (Optional)
22+
23+
*List the prerequisites for this lab using the format below. Fill in whatever knowledge, accounts, etc. is needed to complete the lab. Do NOT list each previous lab as a prerequisite.*
24+
25+
This lab assumes you have:
26+
* An Oracle Cloud account
27+
* All previous labs successfully completed
28+
29+
30+
*Below, is the "fold"--where items are collapsed by default.*
31+
32+
## Task 1: Concise Task Description
33+
34+
(optional) Task 1 opening paragraph.
35+
36+
1. Step 1
37+
38+
![Image alt text](images/sample1.png)
39+
40+
To create a link to local file you want the reader to download, use the following formats. _The filename must be in lowercase letters and CANNOT include any spaces._
41+
42+
Download the [starter file](files/starter-file.sql) SQL code.
43+
44+
When the file type is recognized by the browser, it will attempt to render it. So you can use the following format to force the download dialog box.
45+
46+
Download the [sample JSON code](files/sample.json?download=1).
47+
48+
> Note: do not include zip files, CSV, PDF, PSD, JAR, WAR, EAR, bin, or exe files - you must have those objects stored somewhere else. We highly recommend using Oracle Cloud Object Store and creating a PAR URL instead. See [Using Pre-Authenticated Requests](https://docs.cloud.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm)
49+
50+
2. Step 2
51+
52+
![Image alt text](images/sample1.png)
53+
54+
4. Example with inline navigation icon ![Image alt text](images/sample2.png) click **Navigation**.
55+
56+
5. Example with bold **text**.
57+
58+
If you add another paragraph, add 3 spaces before the line.
59+
60+
## Task 2: Concise Task Description
61+
62+
1. Step 1 - tables sample
63+
64+
Use tables sparingly:
65+
66+
| Column 1 | Column 2 | Column 3 |
67+
| --- | --- | --- |
68+
| 1 | Some text or a link | More text |
69+
| 2 |Some text or a link | More text |
70+
| 3 | Some text or a link | More text |
71+
72+
2. You can also include bulleted lists - make sure to indent 4 spaces:
73+
74+
- List item 1
75+
- List item 2
76+
77+
3. Code examples
78+
79+
```
80+
Adding code examples
81+
Indentation is important for the code example to appear inside the step
82+
Multiple lines of code
83+
<copy>Enclose the text you want to copy in <copy></copy>.</copy>
84+
```
85+
86+
4. Code examples that include variables
87+
88+
```
89+
<copy>ssh -i <ssh-key-file></copy>
90+
```
91+
92+
## Learn More
93+
94+
*(optional - include links to docs, white papers, blogs, etc)*
95+
96+
* [URL text 1](http://docs.oracle.com)
97+
* [URL text 2](http://docs.oracle.com)
98+
99+
## Acknowledgements
100+
* **Author** - <Name, Title, Group>
101+
* **Contributors** - <Name, Group> -- optional
102+
* **Last Updated By/Date** - <Name, Month Year>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"quiz": {
3+
"sport": {
4+
"q1": {
5+
"question": "Which one is correct team name in NBA?",
6+
"options": [
7+
"New York Bulls",
8+
"Los Angeles Kings",
9+
"Golden State Warriros",
10+
"Huston Rocket"
11+
],
12+
"answer": "Huston Rocket"
13+
}
14+
},
15+
"maths": {
16+
"q1": {
17+
"question": "5 + 7 = ?",
18+
"options": [
19+
"10",
20+
"11",
21+
"12",
22+
"13"
23+
],
24+
"answer": "12"
25+
},
26+
"q2": {
27+
"question": "12 - 8 = ?",
28+
"options": [
29+
"1",
30+
"2",
31+
"3",
32+
"4"
33+
],
34+
"answer": "4"
35+
}
36+
}
37+
}
38+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/* NOTE: Files cannot contain empty lines (line breaks) */
2+
/* Specify the base URL that you copied from your files in OCI Object Storage in the define base_URL line below*/
3+
/* change idthydc0kinr to your real namespace. The name is case-sensitive. */
4+
/* change ADWCLab to your real bucket name. The name is case-sensitive. */
5+
/* change us-phoenix-1 to your real region name. The name is case-sensitive. */
6+
/* you can find these values on the OCI Console .. Storage .. Object Storage screen */
7+
set define on
8+
define base_URL='https://objectstorage.us-phoenix-1.oraclecloud.com/n/idthydc0kinr/b/ADWCLab/o'
9+
/* copy Channels table */
10+
begin
11+
dbms_cloud.copy_data(
12+
table_name =>'CHANNELS',
13+
credential_name =>'OBJ_STORE_CRED',
14+
file_uri_list =>'&base_URL/chan_v3.dat',
15+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')
16+
);
17+
end;
18+
/
19+
/* copy Countries table */
20+
begin
21+
dbms_cloud.copy_data(
22+
table_name =>'COUNTRIES',
23+
credential_name =>'OBJ_STORE_CRED',
24+
file_uri_list =>'&base_URL/coun_v3.dat',
25+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')
26+
);
27+
end;
28+
/
29+
/* Copy customers */
30+
begin
31+
dbms_cloud.copy_data(
32+
table_name =>'CUSTOMERS',
33+
credential_name =>'OBJ_STORE_CRED',
34+
file_uri_list =>'&base_URL/cust1v3.dat',
35+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD-HH24-MI-SS')
36+
);
37+
end;
38+
/
39+
begin
40+
dbms_cloud.copy_data(
41+
table_name =>'SUPPLEMENTARY_DEMOGRAPHICS',
42+
credential_name =>'OBJ_STORE_CRED',
43+
file_uri_list =>'&base_URL/dem1v3.dat',
44+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')
45+
);
46+
end;
47+
/
48+
begin
49+
dbms_cloud.copy_data(
50+
table_name =>'SALES',
51+
credential_name =>'OBJ_STORE_CRED',
52+
file_uri_list =>'&base_URL/dmsal_v3.dat',
53+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD')
54+
);
55+
end;
56+
/
57+
begin
58+
dbms_cloud.copy_data(
59+
table_name =>'PRODUCTS',
60+
credential_name =>'OBJ_STORE_CRED',
61+
file_uri_list =>'&base_URL/prod1v3.dat',
62+
format => json_object('delimiter' value '|', 'quote' value '^', 'ignoremissingcolumns' value 'true', 'dateformat' value 'YYYY-MM-DD-HH24-MI-SS', 'blankasnull' value 'true')
63+
);
64+
end;
65+
/
66+
begin
67+
dbms_cloud.copy_data(
68+
table_name =>'PROMOTIONS',
69+
credential_name =>'OBJ_STORE_CRED',
70+
file_uri_list =>'&base_URL/prom1v3.dat',
71+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD-HH24-MI-SS', 'blankasnull' value 'true')
72+
);
73+
end;
74+
/
75+
begin
76+
dbms_cloud.copy_data(
77+
table_name =>'SALES',
78+
credential_name =>'OBJ_STORE_CRED',
79+
file_uri_list =>'&base_URL/sale1v3.dat',
80+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD', 'blankasnull' value 'true')
81+
);
82+
end;
83+
/
84+
begin
85+
dbms_cloud.copy_data(
86+
table_name =>'TIMES',
87+
credential_name =>'OBJ_STORE_CRED',
88+
file_uri_list =>'&base_URL/time_v3.dat',
89+
format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true', 'dateformat' value 'YYYY-MM-DD-HH24-MI-SS', 'blankasnull' value 'true')
90+
);
91+
end;
92+
/
93+
begin
94+
dbms_cloud.copy_data(
95+
table_name =>'COSTS',
96+
credential_name =>'OBJ_STORE_CRED',
97+
file_uri_list =>'&base_URL/costs.dat',
98+
format => json_object('ignoremissingcolumns' value 'true', 'dateformat' value 'YYYY-MM-DD', 'blankasnull' value 'true')
99+
);
100+
end;
101+
/
31 KB
Loading
3.02 KB
Loading
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Workshop with a single set of labs
2+
3+
## Instructions - Delete this file when finished
4+
5+
1. Open the sample-workshop template in Atom or Visual Studio Code
6+
2. We pre-created 5 folders. A workshop is created out of multiple labs.
7+
3. Remove the comments like this one: *List objectives for this lab*
8+
4. Make sure you use lower case folder and file name and dashes for spaces (setup-adb NOT Setup_ADB)
9+
5. Your image names should have descriptive names. Not just adb1, adb2, adb3. For handicap accessibility, we need the image descriptions to explain what the image looks like. Remember all lowercase and dashes.
10+
6. Download our QA doc from WMS. We find workshops get in production quicker when you know what's needed to move to production up front and you use the skeleton.
11+
12+
PS: You do not need a Readme.md. Readme's exist only at the top library levels. We direct all traffic to LiveLabs since we can't track usage on GitHub. Do not create any direct links to GitHub, your workshop may be super popular but we can't track it so no one will know.
13+
14+
## Absolute Path for Oracle Cloud menu Navigation
15+
16+
**Lab 1: Provision an Instance -> Step 0: Use these Standardized Pictures for Oracle Cloud Navigation (Commonly for Provisioning)** - We've included a list of common screenshots for navigating the Oracle Cloud Menu. Please read this section and use the relevant absolute path images where appropriate. This will future proof your workshop in case of Oracle Cloud user interface updates.
17+
18+
## Folder Structure
19+
20+
In this example, the goal is to create several "children" workshops from one longer "parent" workshop. The children are made up of parts from the parent.
21+
22+
sample-workshop/
23+
-- individual labs
24+
25+
provision/
26+
setup/
27+
dataload/
28+
query/
29+
introduction/
30+
introduction.md -- description of the everything workshop, note that it is a "lab" since there is only one
31+
32+
workshops/
33+
freetier/ -- freetier version of the workshop
34+
index.html
35+
manifest.json
36+
livelabs/ -- livelabs version of the workshop
37+
index.html
38+
manifest.json
39+
40+
41+
### FreeTier vs LiveLabs
42+
43+
* "FreeTier" - includes Free Trials, Paid Accounts, and for some workshops, Always Free accounts (brown button)
44+
* "LiveLabs" - these are workshops that use Oracle-provided tenancies (green button)
45+
* "Desktop" - this is a new deployment where the workshop is encapsulated in a NoVNC environment running in a compute instance
46+
47+
### About the Workshop
48+
49+
The workshop includes all 6 of the individual labs in a single sequence.
50+
51+
The folder structure includes an Introduction "lab" that describes the workshop as a complete set of 6 labs. Note: you may not need to have a different introduction for each of the parent and child versions of the workshops, this is illustrative only.
52+
53+
Look at the product-name-workshop/freetier folder and look at the manifest.json file to see the structure.
54+
55+
> **Note:** The use of "Lab n:" in the titles is optional
56+
57+
The Prerequisite "lab" is the first lab in a common folder on the oracle-livelabs/common repo. Because this lab already exists, we can use a RAW/absolute URL instead:
58+
59+
```
60+
"filename": "https://oracle-livelabs.github.io/common/labs/cloud-login/cloud-login-livelabs2.md" },
61+
```
62+
63+
The manifest.json file needs to know the location of each lab relative to where it exists in the hierarchy. In this structure, labs are located two levels up, for example:
64+
65+
```
66+
"filename": "../../provision/provision.md"
67+
```
68+
69+
### For example:
70+
71+
This [APEX Workshop](https://oracle-livelabs.github.io/apex/spreadsheet/workshops/freetier/) is a good example of a workshop with a single set of labs: [https://github.com/oracle-livelabs/apex/tree/main/spreadsheet](https://github.com/oracle-livelabs/apex/tree/main/spreadsheet).
72+
73+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
COUNTRY,DRIVER,LATITUDE,LONGITUDE
2+
Australia,Alex,-25.1963823,133.2011792

0 commit comments

Comments
 (0)