Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding

Burak MrNtlu

👨‍💻
Coding
View GitHub Profile
@MrNtlu
MrNtlu / main.c
Created Apr 8, 2020
C Assignement 3
View main.c
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
int a[200];
int b[200];
typedef struct thread_data {
int result;
} thread_data;
View Memory Leak.java
public class FragmentMemberJoin extends Fragment implements OnJoinCommunityLoad, OnBackPressed {
private UserModel memberModel;
private CommunityViewModel viewModel;
private EditText joinEmailText,joinNameText,joinAboutText;
//Social Links
private EditText linkedinUsernameText,facebookUsernameText,twitterUsernameText,instagramUsernameText,githubUsernameText,personalWebsiteText,joinTitleText;
private Spinner industryPicker,monthPicker,yearPicker,nationalitySpinner;
private Uri memberImageUri;
View Example.java
//Viewmodel
public void insertNewMatch(Match match){
leagueRepository.insertNewMatch(match);
}
//Insert from Fragment
Completable.fromRunnable(()-> viewModel.insertNewMatch(new Match(league.getId(),player1,player2,player1Score,player2Score,new Date())))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe()
@MrNtlu
MrNtlu / gist:160a49d15a5275e936a6966cd4c6b9d1
Last active Jul 7, 2019
Formations of Turkey 1. Vize Notları
View gist:160a49d15a5275e936a6966cd4c6b9d1
Sultans of the Ottoman Empire
Mustafa IV 1807–08
Mahmud II 1808–39
Abdülmecid I 1839–61
Abdülaziz 1861–76
Murad V 1876
Abdülhamid II 1876–1909
Mehmed V 1909–18
Mehmed VI 1918–22
You can’t perform that action at this time.