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
{ | |
"users":[ | |
{ | |
"id":1, | |
"name":"cem", | |
"surname":"dırman", | |
"email":"cemdrman@gmail.com", | |
"detail":{ | |
"created_at":"2019-03-22 23:33:52", | |
"age":"25", |
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
object BasicsMain { | |
def main(args: Array[String]): Unit = { | |
var number = 100 | |
number += 1 | |
println(number) | |
var number1 : Int = 100 | |
number1 += 1 | |
println(number1) |
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 | |
import scala.:: | |
import scala.collection.mutable | |
import scala.collection.mutable.ListBuffer | |
object Collections { | |
def main(args: Array[String]): Unit ={ | |
val nameList: Array[String] = new Array[String](3) |
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 streams; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class Main { |
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 ProductDB.{AddProduct, AddedProduct, FindAllProducts, FindProduct} | |
import akka.actor.{Actor, ActorLogging, ActorSystem, Props} | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model.{ContentTypes, HttpEntity, HttpMethods, HttpRequest, HttpResponse, StatusCodes, Uri} | |
import akka.pattern.ask | |
import akka.stream.ActorMaterializer | |
import akka.util.Timeout | |
import spray.json._ | |
import scala.concurrent.{Future, duration} |
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
#!/bin/bash | |
#special variables | |
echo $0 | |
echo $n | |
echo $# | |
echo $* | |
echo $@ | |
echo $? |
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
#!/bin/bash | |
team1=("repo1" "repo2") | |
team2=("repo3" "repo4") | |
echo 'Enter your git user name:' | |
read user_name |
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 model.Blog; | |
import model.User; | |
import java.time.LocalDateTime; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Main { |
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 model; | |
import java.time.LocalDateTime; | |
public class Blog { | |
private String title; | |
private String photoUrl; | |
private String content; | |
private LocalDateTime publishDate; |
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 model; | |
import java.util.List; | |
public class User { | |
private String name; | |
private String email; | |
private String password; | |
private String profilePhoto; |
OlderNewer