Skip to content

Instantly share code, notes, and snippets.

View Zoha131's full-sized avatar
🎯
Hunting a Job

Md Abir Hasan Zoha Zoha131

🎯
Hunting a Job
View GitHub Profile
@Zoha131
Zoha131 / Jetpack Compose Nested Navigation
Created November 19, 2020 17:22
When I make the nested navigation the startDestination then it works otherwise I can’t go to the nested navigation. How can I navigate to the nested navigation?
View Jetpack Compose Nested Navigation
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.material.Button
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.setContent
import androidx.compose.ui.unit.dp
View KeyboardVisibilityListener.java
private IMainActivity mIMainActivity;
static int mAppHeight;
static int currentOrientation = -1;
public void setKeyboardVisibilityListener() {
final View contentView = getActivity().findViewById(android.R.id.content);
contentView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
View KeyboardVisibilityListener.java
private IMainActivity mIMainActivity;
static int mAppHeight;
static int currentOrientation = -1;
public void setKeyboardVisibilityListener() {
final View contentView = getActivity().findViewById(android.R.id.content);
contentView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Zoha131
Zoha131 / CoinChange.java
Last active April 3, 2018 06:14
Algorithm Lab Mid Exam Solution || Section D || Spring-2018 || Daffodil International University
View CoinChange.java
import java.util.HashMap;
import java.util.Scanner;
/**
*
* @author Abir Hasan Zoha
*/
/**
*
View SnakeLadder.java
package learnings;
import java.util.*;
// Data structure to store graph edges
class Edge {
int src, dest;
public Edge(int src, int dest) {
this.src = src;
this.dest = dest;
@Zoha131
Zoha131 / ImageBehavior.java
Last active May 12, 2019 10:51
Custom CoordinatorLayout Behavior
View ImageBehavior.java
package io.github.zoha131.custombehavioronefinal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
View .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/home/zoha/anaconda3/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/zoha/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bira"
View uri_problem_list
https://www.urionlinejudge.com.br/judge/en/problems/view/1001
https://www.urionlinejudge.com.br/judge/en/problems/view/1002
https://www.urionlinejudge.com.br/judge/en/problems/view/1003
https://www.urionlinejudge.com.br/judge/en/problems/view/1004
https://www.urionlinejudge.com.br/judge/en/problems/view/1005
https://www.urionlinejudge.com.br/judge/en/problems/view/1006
https://www.urionlinejudge.com.br/judge/en/problems/view/1007
https://www.urionlinejudge.com.br/judge/en/problems/view/1008
https://www.urionlinejudge.com.br/judge/en/problems/view/1009
https://www.urionlinejudge.com.br/judge/en/problems/view/1010
View zc_sum.c
#include <stdlib.h>
#include <stdio.h>
int main()
{
int t,i;
scanf("%d", &t);
for(i=1;i<=t;i++)
@Zoha131
Zoha131 / G_Summing_Series.c
Last active March 23, 2017 17:02
Taking preparation for the take off contest.
View G_Summing_Series.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main()
{
int t,i;
scanf("%d", &t);