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
@FXML | |
private StackPane parentPane; | |
double xOffset; | |
double yOffset; | |
@FXML | |
void handleOnMouseDraggedBtnCtrlMainView(MouseEvent event) { | |
Stage stage = ( Stage ) parentPane.getScene().getWindow(); | |
stage.setX(event.getScreenX() + xOffset); |
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 AnimalDeserializer extends StdDeserializer<Animal> | |
{ | |
@Autowired | |
ObjectMapper mapper; | |
public AnimalDeserializer( Class<?> vc, ObjectMapper mapper ) | |
{ | |
super( vc ); | |
this.mapper = mapper; | |
} |
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
private static ObjectMapper configureObjectMapper( | |
ObjectMapper objectMapper, boolean shouldIncludeRawResponses) { | |
if (shouldIncludeRawResponses) { | |
SimpleModule module = new SimpleModule(); | |
module.setDeserializerModifier(new BeanDeserializerModifier() { | |
@Override | |
public JsonDeserializer<?> modifyDeserializer(DeserializationConfig config, | |
BeanDescription beanDesc, | |
JsonDeserializer<?> deserializer) { | |
if (Response.class.isAssignableFrom(beanDesc.getBeanClass())) { |
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
## General info: | |
# Function starts with @ | |
# Variable starts with $ | |
# Return of the most recently run function made by $@ | |
# Key comments marked with ## | |
## Version of IV must be set first | |
~version: "2.1" | |
# Telegram doesn't support JW Player which is used in videoheaders |
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
<h1>Hi there</h1> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/** | |
* Delete White Spaces | |
* @param str The input string which contains white spaces | |
* @return The output string which does not contain white spaces | |
*/ | |
string delSpaces(string &str) | |
{ | |
str.erase(std::remove(str.begin(), str.end(), ' '), str.end()); | |
return str; | |
} |
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 <iostream> | |
//Node class | |
class Node { | |
private: | |
//private members | |
int data; | |
Node *next; | |
public: |
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 <iostream> | |
//Node class | |
class Node { | |
private: | |
//private members | |
int data; | |
Node *next; | |
public: |
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 <iostream> | |
#include <fstream> | |
using namespace std; | |
//Assume picture dimension is 10 letters X 25 letters | |
void printArray(char c[10][25]){ | |
for(int a=0;a<10;a++){ | |
for(int b=0;b<25;b++){ | |
cout<< c[a][b]; |
NewerOlder