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
before calling the api "api/requestride" you have to call this new api to get all the availble categories : | |
you can check this screenshot : https://trello-attachments.s3.amazonaws.com/5fd72c7f63214e10a993c085/5fd76009f0c11f2fe8dc0d59/59b804115822931142d40052774cf2e4/Screenshot_20210104-154130_Wesselni.jpg | |
POST : api/grabrides | |
params : | |
{ | |
user_id:'', | |
pickup_location:'', | |
pickup_lat:'', | |
pickup_lng:'', | |
drop_location:'', |
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
//Demo.java | |
public static List<String> newStringMethods (){ | |
String multilineString = "All Algeria \n \n Java \n Community."; | |
return multilineString.lines() | |
.filter(line -> !line.isBlank()) | |
.map(String::strip) | |
.collect(Collectors.toList()); | |
} | |
//DemoTest.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
//Demo.java | |
public static String newFileMethods() { | |
String home = System.getProperty("user.home"); | |
Path filePath = Paths.get(home, "test.txt"); | |
try { | |
Files.writeString(filePath, "Hello World !!"); | |
return Files.readString(filePath); | |
} catch (IOException e) { | |
return ""; | |
} |
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
//Demo.java | |
public static String[] collectiontoArray() { | |
var sampleList = Arrays.asList("Algiers", "Setif"); | |
return sampleList.toArray(String[]::new); | |
} | |
//DemoTest.java | |
@Test | |
public void collectiontoArrayTest() { | |
assertTrue(Arrays.equals(Demo.collectiontoArray(), new String[]{"Algiers", "Setif"})); |
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
//Demo.java | |
public static String httpClient() { | |
HttpClient httpClient = HttpClient.newBuilder() | |
.version(HttpClient.Version.HTTP_2) | |
.connectTimeout(Duration.ofSeconds(20)) | |
.build(); | |
HttpRequest httpRequest = HttpRequest.newBuilder() | |
.GET() | |
.uri(URI.create("https://jsonplaceholder.typicode.com/todos/1")) | |
.build(); |
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
"schematics": { | |
"@schematics/angular:application": { | |
"strict": true | |
}, | |
"@schematics/angular:component": { | |
"styleext": "scss" | |
} | |
}, |
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
"schematics": { | |
"@schematics/angular:application": { | |
"strict": true | |
} | |
}, |
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
https://drive.google.com/file/d/1qRI9XAlia47eY2LZrJTMa0WmWZJE54UN/view?usp=sharing |
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
<dependency> | |
<groupId>com.google.firebase</groupId> | |
<artifactId>firebase-admin</artifactId> | |
<version>8.0.0</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.cloud</groupId> | |
<artifactId>google-cloud-storage</artifactId> | |
<version>1.96.0</version> | |
</dependency> |
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
firebase.bucket-name=test-project-ee5c9.appspot.com | |
firebase.image-url=https://storage.googleapis.com/${firebase.bucket-name}/%s |