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
// | |
// CastPlayerViewController.swift | |
// BasicCastPlayer | |
// | |
// Copyright © 2020 Brightcove, Inc. All rights reserved. | |
// | |
import UIKit | |
import GoogleCast | |
import SnapKit |
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
files: | |
"/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf": | |
mode: "000755" | |
owner: root | |
group: root | |
content: | | |
server { | |
listen 80; | |
gzip on; |
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 Foundation | |
extension NSData { | |
func encryptAES128(key: NSString, iv: NSString) -> NSData? { | |
return aes128(method: CCOperation(kCCEncrypt), key: key, iv: iv) | |
} | |
func decryptAES128(key: NSString, iv: NSString) -> NSData? { | |
return aes128(method: CCOperation(kCCDecrypt), key: key, iv: iv) |
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
@RunWith(SpringRunner.class) | |
@SpringBootTest | |
public class ExampleMatcherTest { | |
@Autowired | |
private ExampleRepository repository; | |
@Test | |
public void exampleTest() { | |
Child child = new Child(); |
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
@Controller | |
public class ResponseBodyExampleController3 { | |
@ResponseBody | |
@GetMapping("/") | |
public String someMethod() { | |
return "result"; | |
} | |
} |
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
@Controller | |
public class ResponseBodyExampleController2 { | |
@GetMapping("/") | |
public | |
@ResponseBody | |
String someMethod() { | |
return "result"; | |
} | |
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
@Controller | |
public class ResponseBodyExampleController1 { | |
@GetMapping("/") | |
public @ResponseBody String someMethod() { | |
return "result"; | |
} | |
} |
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
/** | |
* @author by dotkebi@gmail.com on 2017-5-1. | |
*/ | |
public interface CSVWritable { | |
void write(OutputStream outputStream, List<String[]> datas); | |
} |
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
public class CSVWriter { | |
private static final String UTF8_BOM = "\uFEFF"; | |
public void convert(HttpServletResponse response, List<?> datas, String name) { | |
write(response, transform(datas), name); | |
} | |
private List<String[]> transform(List<?> objects) { | |
List<String[]> dataToWrite = new ArrayList<>(); |
NewerOlder