This file contains hidden or 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 | |
import org.springframework.boot.SpringApplication | |
import org.springframework.boot.autoconfigure.SpringBootApplication | |
@SpringBootApplication | |
class Application | |
fun main(args: Array<String>) { | |
SpringApplication.run(Application::class.java, *args) |
This file contains hidden or 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 io.swagger.api.ImagesApi; | |
import io.swagger.model.GetImagesResponse; | |
import io.swagger.model.Image; | |
import java.io.InputStream; | |
import java.util.Base64; | |
import org.apache.commons.io.IOUtils; | |
import org.springframework.core.io.ClassPathResource; | |
import org.springframework.http.HttpStatus; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.RestController; |
This file contains hidden or 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
public class MyClass { | |
private MyDatabase myDatabase; | |
public String getCustomerName(long customerNo) { | |
System.out.println("getCustomerName() is called!"); | |
return myDatabase.query(customerNo)+"_FROM_DATABASE"; | |
} | |
public MyDatabase getMyDatabase() { |
This file contains hidden or 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; | |
public class Main { | |
public static void main(String[] args) { | |
MyString myString = new MyString("x"); | |
String str = "x"; | |
System.out.println("1: " + myString.getName() + " " + str); | |
foo(myString, str); |
This file contains hidden or 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 { NgModule } from "@angular/core"; | |
import { HttpModule, Http } from "@angular/http"; | |
import { FormsModule, FormBuilder } from "@angular/forms"; | |
import { BrowserModule } from "@angular/platform-browser"; | |
import { App } from "./app"; | |
import { ReCaptchaModule } from 'angular2-recaptcha'; | |
import { TranslateModule, TranslateLoader } from "@ngx-translate/core"; | |
import { TranslateHttpLoader } from "@ngx-translate/http-loader"; | |
export function HttpLoaderFactory(httpClient: Http) { |
This file contains hidden or 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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#searchBoxForOldBrowsers").keyup(function() { | |
searchInListForOldBrowsers(); | |
}); | |
}); | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> | |
<title>Title</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function() { |
This file contains hidden or 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.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.annotation.PostConstruct; | |
import javax.faces.bean.ApplicationScoped; | |
import javax.faces.bean.ManagedBean; |
This file contains hidden or 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.afsinka; | |
public class WelcomeAction { | |
private String name; | |
public String getName() { | |
return name; | |
} |
This file contains hidden or 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.cxf.client; | |
public class Main { | |
public static void main(String[] args) { | |
HelloWorldService service = new HelloWorldService(); | |
String response = service.getHelloWorldPort().sayHi("client"); | |
System.out.println("Service said: " + response); |
NewerOlder