Skip to content

Instantly share code, notes, and snippets.

View mdrmuhaimin's full-sized avatar
🇧🇩

Muhammad Raihan Muhaimin mdrmuhaimin

🇧🇩
  • ZiyarahAI
  • Dhaka, Bangladesh
  • 21:48 (UTC +06:00)
View GitHub Profile
@mdrmuhaimin
mdrmuhaimin / createdf.r
Created August 3, 2018 03:27
Create a sample dataframe
age <- c(21,21,19, 30,21,21,19,30)
gender <- c('M','M','N','M','F','F','F','F')
civil_status <- c('MARRIED','SINGLE','SINGLE','SINGLE','MARRIED','SINGLE','WIDOW','DIVORCED')
salary <-c (3000.0,1200.0 ,32000.0,1800.0 ,2900.0 ,1100.0 ,10000.0,1500.0)
has_children <-c (TRUE,FALSE,TRUE,TRUE,TRUE,FALSE,FALSE,TRUE)
available_credit <- c (2200,100,22000,1100,2000,100,6000,2200)
sample.data <- data.frame(age, gender, civil_status, salary, has_children, available_credit)
print(dim(sample.data))
sample.data
@mdrmuhaimin
mdrmuhaimin / git-cheat-list.md
Created February 17, 2017 21:26
Git cheat list

Git cheat list

  • name of the current banch and nothing else (for automation)

    git rev-parse --abbrev-ref HEAD
    
  • all commits that your branch have that are not yet in master

    git log master..<HERE_COMES_YOUR_BRANCH_NAME>