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
#include "stdafx.h" | |
#include <cstdlib> | |
#include <iostream> | |
#define HAVE_STRUCT_TIMESPEC | |
// posix thread kütüphanesi | |
#include <pthread.h> | |
void *print_message_function(void *ptr); | |
int 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
f=imread('coins.png'); | |
subplot(2,4,1);imshow(f); | |
bw1 = edge(f,'prewitt'); | |
subplot(2,4,2);imshow(bw1); | |
bw2 = edge(f,'sobel'); | |
subplot(2,4,3);imshow(bw2); |
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
f=imread('coins.png'); | |
kirli = imnoise(f,'salt & pepper',0.2); | |
%avarage | |
haverageFiltresi = fspecial('average',3); | |
averageFiltresi = imfilter(f,haverageFiltresi,'replicate'); | |
%unsharped | |
unsharpFilter = fspecial('unsharp'); |
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
I = imread('coins.png'); | |
bw = im2bw(I, graythresh(I)); | |
bw2 = imfill(bw,'holes'); | |
s = regionprops(bw2, 'BoundingBox'); | |
for k=1:length(s), | |
boundary = s(k).BoundingBox; | |
I2 = imcrop(I,boundary); | |
subplot(1,length(s),k),imshow(I2); | |
end |
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 SelectLambdaBuilder<T> | |
{ | |
private static Dictionary<Type, PropertyInfo[]> _typePropertyInfoMappings = new Dictionary<Type, PropertyInfo[]>(); | |
private readonly Type _typeOfBaseClass = typeof(T); | |
private Dictionary<string, List<string>> GetFieldMapping(string fields) | |
{ | |
if (string.IsNullOrEmpty(fields)) | |
{ | |
return null; |
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 static void main(String[] args) throws IOException, ParseException { | |
String str = "Sun Jun 10 05:23:03 2018"; | |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEE MMM d HH:mm:ss yyyy"); | |
System.out.println(LocalDate.parse(str, formatter)); | |
DateFormat fmt = new SimpleDateFormat("EEE MMM dd HH:mm:ss yyyy", Locale.ENGLISH); | |
DateFormat targetFormat = new SimpleDateFormat("dd-MM-yyyy"); |
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
@RestController | |
@RequestMapping("/users") | |
public class UserController { | |
UserService userService; | |
@Autowired | |
public UserController(UserService userService) { | |
this.userService = userService; | |
} |
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) | |
@WebMvcTest(UserController.class) | |
public class UserControllerTest { | |
@Autowired | |
MockMvc mockMvc; | |
@MockBean | |
UserService userService; | |
@Test |
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
apiVersion: getambassador.io/v1 | |
kind: Mapping | |
metadata: | |
name: hello-node | |
spec: | |
prefix: /hello | |
service: http://hello-node:8080 |
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
type First struct { | |
a int16 | |
b int32 | |
c int16 | |
} | |
type Second struct { | |
b int32 | |
a int16 | |
c int16 |
OlderNewer