-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Shawn-lesson10
- Loading branch information
Showing
82 changed files
with
15,562 additions
and
352 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Check Lesson 11 Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "lesson_11/arrays_java/**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build Lesson 11 with Java | ||
working-directory: ./lesson_11/arrays_java | ||
run: ./gradlew check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Check Lesson 11 Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "lesson_11/arrays_ts/**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Build Lesson 11 with Node.js | ||
working-directory: ./lesson_11/arrays_ts | ||
run: | | ||
npm ci | ||
npm run check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Check Lesson 12 Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "lesson_12/structs_java/**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build Lesson 12 with Java | ||
working-directory: ./lesson_12/structs_java | ||
run: ./gradlew check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Check Lesson 12 Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- "lesson_12/structs_ts/**" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
|
||
- name: Build Lesson 12 with Node.js | ||
working-directory: ./lesson_12/structs_ts | ||
run: | | ||
npm ci | ||
npm run check |
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
22 changes: 22 additions & 0 deletions
22
.../types_app/src/main/java/com/codedifferently/lesson9/dataprovider/DavidSmithProvider.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.codedifferently.lesson9.dataprovider; | ||
|
||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class DavidSmithProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "davidsmith"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1", Float.class, | ||
"column2", Long.class, | ||
"column3", Short.class, | ||
"column4", Double.class, | ||
"column5", Boolean.class, | ||
"column6", String.class, | ||
"column7", Integer.class); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...types_app/src/main/java/com/codedifferently/lesson9/dataprovider/NileJacksonProvider.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.codedifferently.lesson9.dataprovider; | ||
|
||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class NileJacksonProvider extends DataProvider { | ||
|
||
@Override | ||
public String getProviderName() { | ||
|
||
return "nilejack"; | ||
} | ||
|
||
@SuppressWarnings("rawtypes") | ||
@Override | ||
public Map<String, Class> getColumnTypeByName() { | ||
|
||
return Map.of( | ||
"column1", Boolean.class, | ||
"column2", Double.class, | ||
"column3", Integer.class, | ||
"column4", Long.class, | ||
"column5", Short.class, | ||
"column6", Float.class, | ||
"column7", String.class); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...pes_app/src/main/java/com/codedifferently/lesson9/dataprovider/ShawnDunsmoreProvider.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main.java.com.codedifferently.lesson9.dataprovider; | ||
|
||
import com.codedifferently.lesson9.dataprovider.DataProvider; | ||
import java.util.Map; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class ShawnDunsmoreProvider extends DataProvider { | ||
public String getProviderName() { | ||
return "shawmdunsmore"; | ||
} | ||
|
||
public Map<String, Class> getColumnTypeByName() { | ||
return Map.of( | ||
"column1", Float.class, | ||
"column2", Integer.class, | ||
"column3", Float.class, | ||
"column4", Integer.class, | ||
"column5", String.class, | ||
"column6", Integer.class, | ||
"column7", Boolean.class); | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
lesson_09/types/types_app/src/main/resources/data/davidsmith.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
[ | ||
{ | ||
"column1": "2.4856768E38", | ||
"column2": "6348194688465711104", | ||
"column3": "7857", | ||
"column4": "9.45255774450901E307", | ||
"column5": "false", | ||
"column6": "d7mgwz1ter3v", | ||
"column7": "1441278966" | ||
}, | ||
{ | ||
"column1": "4.0458309E37", | ||
"column2": "475565836519605120", | ||
"column3": "32745", | ||
"column4": "1.2832704698365005E308", | ||
"column5": "false", | ||
"column6": "znmecj6v", | ||
"column7": "113077411" | ||
}, | ||
{ | ||
"column1": "6.88325E36", | ||
"column2": "1605489098004667392", | ||
"column3": "3736", | ||
"column4": "5.805517690396217E307", | ||
"column5": "false", | ||
"column6": "lm6cweq0h", | ||
"column7": "262984225" | ||
}, | ||
{ | ||
"column1": "5.6297574E36", | ||
"column2": "1042305323669988608", | ||
"column3": "9421", | ||
"column4": "4.4593927475096523E307", | ||
"column5": "true", | ||
"column6": "2rxwqco47", | ||
"column7": "1283217146" | ||
}, | ||
{ | ||
"column1": "1.3651107E38", | ||
"column2": "2693239424534015488", | ||
"column3": "22023", | ||
"column4": "1.4079937081264981E308", | ||
"column5": "false", | ||
"column6": "pwu96a7n", | ||
"column7": "771709699" | ||
}, | ||
{ | ||
"column1": "1.8253724E38", | ||
"column2": "4001908518756238848", | ||
"column3": "25719", | ||
"column4": "3.8526406262057017E307", | ||
"column5": "false", | ||
"column6": "gc6yufq1a9o", | ||
"column7": "1098995223" | ||
}, | ||
{ | ||
"column1": "4.3599036E35", | ||
"column2": "2464793638457769984", | ||
"column3": "27246", | ||
"column4": "1.1952813310702996E308", | ||
"column5": "true", | ||
"column6": "gej6pimrvo58", | ||
"column7": "1083541075" | ||
}, | ||
{ | ||
"column1": "2.0973243E38", | ||
"column2": "6316064103344864256", | ||
"column3": "13153", | ||
"column4": "3.232035544098492E307", | ||
"column5": "false", | ||
"column6": "xr5pydw9vie", | ||
"column7": "535584121" | ||
}, | ||
{ | ||
"column1": "5.106034E37", | ||
"column2": "7391061472444326912", | ||
"column3": "17670", | ||
"column4": "2.6990741028748347E307", | ||
"column5": "true", | ||
"column6": "wz6hrv0jeos7", | ||
"column7": "840264099" | ||
}, | ||
{ | ||
"column1": "2.7015147E38", | ||
"column2": "9150685000976729088", | ||
"column3": "31742", | ||
"column4": "3.6277639883903186E307", | ||
"column5": "true", | ||
"column6": "zta2ny9c6k", | ||
"column7": "1545745617" | ||
} | ||
] |
Oops, something went wrong.