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
<UserControl x:Class="TV_MeshCreator.UserControls.UCClipProcessing" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:converters="clr-namespace:TV_MeshCreator.Converters" | |
xmlns:local="clr-namespace:TV_MeshCreator.UserControls.CircleProgressBar" | |
xmlns:res="clr-namespace:TV_MeshCreator.Properties" | |
xmlns:vm="clr-namespace:TV_MeshCreatorEngine.Model.Binding;assembly=TV_MeshCreatorEngine" | |
Background="WhiteSmoke" |
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
class MyMain | |
{ | |
private MyFirstEnum myType = MyFirstEnum.DOCUMENT; //Type that I know according to my object | |
public void Boo() | |
{ | |
//Here I need to create new Foo obeject that get | |
//MySecondEnum as a param, but this MySecondEnum is not compatible with MyFirstEnum | |
//what I need to do here? |
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 <thread> | |
#include <chrono> | |
#include <vector> | |
std::mutex m_mtx; | |
std::vector<std::string> m_fileStreamer; | |
int getStreamInd(const std::string & fileId) | |
{ |
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
fp = fopen("/tmp/test.txt", "r"); | |
if (fp == NULL) | |
{ | |
printf("\nERROR : file open failed\n"); | |
return 0; | |
} | |
while (fgets(buffer, MAX_NAME_LENGTH, (FILE *)fp)) | |
{ |
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
/** | |
* This class presents collection of {@link Box3D} objects | |
* in sorter consequences from the most little to the most biggest | |
* | |
* @author Aleksey Timoshchenko | |
* @version 15.04.19 | |
*/ | |
public class Collection | |
{ | |
private Box3D[] _boxes; |
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
/** | |
* Method should find in closed range the smallest volume of box | |
* | |
* @param i start index | |
* @param j end index | |
* | |
* @return volume of the smallest box | |
*/ | |
/*# Joni: bug caused an exception. see soluion below. */ |
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 ui.fragments.base; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.widget.ImageView; | |
import android.widget.TextView; | |
import butterknife.BindView; | |
import il.co.ewave.elal.R; |
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
BookingReservationAPI api = new BookingReservationAPI("<username>", | |
"<password>", | |
new BookingReservationHandler() { | |
@Override | |
public BookingReservationAcknowledgement handle(BookingReservation reservation) { | |
// Handle reservation. | |
} | |
}); | |
api.pullPeriodically(); // Create a separate thread internally. | |
api.cancelPeriodicPull(); // Only use if you really need to cancel periodic pull! |
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
/* Externalizable Person | |
Класс Person должен сериализоваться с помощью интерфейса Externalizable. | |
Подумайте, какие поля не нужно сериализовать. | |
Исправьте ошибку сериализации. | |
Сигнатуры методов менять нельзя. | |
*/ | |
public class Solution { | |
public static void main(String[] args) throws IOException, ClassNotFoundException { | |
Person person = new Person("Ivan", "Ivanov", 23); |
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.io.*; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/* Читаем и пишем в файл: Human | |
Реализуйте логику записи в файл и чтения из файла для класса Human | |
Поле name в классе Human не может быть пустым | |
В файле your_file_name.tmp может быть несколько объектов Human | |
Метод main реализован только для вас и не участвует в тестировании |
NewerOlder