Skip to content

Instantly share code, notes, and snippets.

Md Rana Mahmud ranamahmud

Block or report user

Report or block ranamahmud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ranamahmud
ranamahmud / gist:bf89405deb5cfe266446b1df72a04583
Created Dec 5, 2018 — forked from richfitz/gist:5297666
Multi panel figure with inset plots in base graphics
View gist:bf89405deb5cfe266446b1df72a04583
## OK, this turned out to be more complicated than I would have
## thought. I feel that this approach *should* work, but it confuses
## R's multi-panel plots:
## Smaller margins, plus a top margin
par(mar=c(3.1, 3.1, .5, .5), oma=c(0, 0, 1.5, 0), mfrow=c(2, 2))
## Plot dummy data
plot(1:10)
View 2. sd() R Programming Bangla - Md Rana Mahmud.R
Md Rana Mahmud
July 1, 2018
x <- c(1,2,3,4,5,6,7,8,9,10)
sd(x)
## [1] 3.02765
data(iris)
names(iris)
## [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width"
## [5] "Species"
sd(iris$Sepal.Length)
View 1. mean() function R Programming Bangla.R
# Author: Md Rana Mahmud
## ------------------------------------------------------------------------
x <- c(1,2,3,4,5,6,7,8,9,10)
mean(X)
## ------------------------------------------------------------------------
data(iris)
names(iris)
mean(iris$Sepal.Length)
@ranamahmud
ranamahmud / uri_1722.py
Created May 26, 2016
URI Online Judge | 1722 How many Fibs? Solution
View uri_1722.py
# www.ranamahmud.com
# Solved by: Md. Rana Mahmud
def count_fibonacci(low,high):
f1,f2,f3 = 1,2,3
result = 0
while f1<=high:
if(f1>=low):
result+=1
f1 = f2
f2 = f3
View Guest list layout
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
View sample
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>
View SpaceCount2.py
sentance = raw_input("Entear your sentance: ")
space_count = sentance.count(' ')
if space_count == 3 or space_count == 4 or space_count== 5:
print "Sentance is good"
@ranamahmud
ranamahmud / spacecount.py
Created Jan 5, 2016
Program to count space
View spacecount.py
sentance = "I am counting number of space."
space_count = sentance.count(' ')
print space_count
View UVa 11636: Hello world! Soluiton.cpp
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(){
int n,i=1 ,sum;
View function.c
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
printf("Enter y: \n");
scanf("%lf",&y);
x = pow(pow(y,5.7)-pow(y,2.3),0.5);
You can’t perform that action at this time.