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
double kf = 0.5; | |
int [] nObr = new int[samples.length]; | |
while(kf >= 0.1) { | |
for (int i = 0; i < samples.length; i++) { | |
//1. Извлечение образца из матрицы образцов | |
double[] sample = samples[i]; |
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 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
@RequestMapping( | |
path = "/api/groups", | |
method = RequestMethod.GET) | |
public @ResponseBody List<StudentsGroup> getGroups() { | |
List<StudentsGroup> result = new ArrayList<>(); | |
try { | |
mGroupsRepository.findAll().forEach(result::add); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} |
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
1) создать проект с пустой активити | |
2) в активити координатор лєйут с апбарлєйаут и тул баром, и ресафкл вью, в котором будут отображаться репозитории | |
в тулбаре должно быть серч вью | |
тул бар должен колаписровать при скроле | |
3) подрубаем в гредле реалм, либо Jack compiler or retorlambda, Rxbinding, RxJava, RxAndroid, design instead appcompat | |
4) Сконфигрурировать Realm |
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
1) создать проект с пустой активити | |
2) в активити координатор лєйут с апбарлєйаут и тул баром, и ресафкл вью, в котором будут отображаться репозитории | |
в тулбаре должно быть серч вью | |
тул бар должен колаписровать при скроле | |
3) подрубаем в гредле реалм, либо Jack compiler or retorlambda, Rxbinding, RxJava, RxAndroid, design instead appcompat | |
4) Сконфигрурировать Realm |
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
view.getViewTreeObserver().addOnGlobalLayoutListener( | |
new OnGlobalLayoutListener() { | |
@SuppressLint("NewApi") | |
@SuppressWarnings("deprecation") | |
@Override | |
public void onGlobalLayout() { | |
if (!Build.JELLY_BEAN_COMPATIBILITY) { | |
view.getViewTreeObserver() | |
.removeGlobalOnLayoutListener(this); |
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
04-12 09:16:22.014 16296-16618/com.innomos.mic_hospital.taskapp D/OkHttp: <-- 200 OK https://mic-dev.innomos.com/api/v1/taskmanager/tasks/perform/browse?include=true (637ms) | |
04-12 09:16:22.014 16296-16618/com.innomos.mic_hospital.taskapp D/OkHttp: Content-Type: application/json | |
04-12 09:16:22.014 16296-16618/com.innomos.mic_hospital.taskapp D/OkHttp: Date: Wed, 12 Apr 2017 06:16:18 GMT | |
04-12 09:16:22.016 16296-16618/com.innomos.mic_hospital.taskapp D/OkHttp: {"meta":{"etag":1491977728278},"data":[{"id":1,"name":"Premedikation","description":"pkQPfKOnx8GwW82JIGe57RVDcmE1Fq","workflow_instance_id":1,"graph_id":1,"task_template_id":4,"shared_resource_id":null,"task_owner_id":null,"is_core":null,"initial_start_time":27000000,"initial_finish_time":27900000,"initial_duration":900000,"planned_start_time":27000000,"actual_start_time":null,"actual_finish_time":null,"planned_finish_time":27900000,"planned_duration":900000,"actual_duration":0,"status":"UNPUBLISHED","escalation":null,"modified_at":1491977728278,"created_ |
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 abstract class BaseActivity<P extends BasePresenter> extends AppCompatActivity | |
implements BaseView { | |
private Unbinder mUnBinder; | |
private ProgressDialog mProgressDialog = null; | |
protected @NonNull abstract P getPresenterInstance(); | |
protected P mPresenter; |
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 interface BasePresenter<V extends BaseView> { | |
void attachView(V view); | |
void detachView(); | |
} |
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 BasePresenterImpl<V extends BaseView> implements BasePresenter<V> { | |
protected V mView; | |
@Override | |
public void attachView(V view) { | |
mView = view; | |
} | |
@Override |
OlderNewer