Skip to content

Instantly share code, notes, and snippets.

Avatar
💾
JUST DO GIT.

Mahbub Zaman lifeparticle

💾
JUST DO GIT.
View GitHub Profile
View Android Stuff.txt
https://codelabs.developers.google.com/codelabs/android-room-with-a-view/#0
https://github.com/googlecodelabs/android-room-with-a-view
https://stackoverflow.com/questions/8784249/android-autocompletetextview-with-custom-adapter-filtering-not-working/8784931
Icons:
https://material.io/resources/icons/?style=baseline
View sun.12h.sh
#!/bin/bash
# <bitbar.title>Sunrise and sunset time</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>S Mahbub-Uz Zaman</bitbar.author>
# <bitbar.author.github>lifeparticle</bitbar.author.github>
# <bitbar.desc>Sunrise and sunset time</bitbar.desc>
# <bitbar.image></bitbar.image>
# <bitbar.dependencies></bitbar.dependencies>
# <bitbar.abouturl></bitbar.abouturl>
@lifeparticle
lifeparticle / cus_view.xml
Created Nov 7, 2015
apply layout_weight in a xml object so that it will have 20% of height and 80% of width
View cus_view.xml
/**
* Author S Mahbub-Uz Zaman on November 8, 2015
* Lisence Under GPL2
*/
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
View dateConverter.java
/**
* Author S Mahbub-Uz Zaman on October 23, 2015
* Lisence Under GPL2
*/
public static String monthNames[] = {"January", "February", "March", "April",
"May", "June", "July", "August", "September", "October",
"November", "December"};
// input 17/06/1991
@lifeparticle
lifeparticle / MyEditText.java
Last active Jun 8, 2020
Custom Edittext with Line Number
View MyEditText.java
package rupantor.cusedittext;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.EditText;
@lifeparticle
lifeparticle / replace.java
Created Apr 13, 2015
Replace last occurrence of Character in a String using Java
View replace.java
// beta
// Lisence Under GPL2
// Author: S.Mahbub-Uz-Zaman
public static String a = "test,test,test";
public static String replaceWith = " and ";
// using StringBuffer's replace method
public static void replaceLastCommaSB () {
StringBuffer sb = new StringBuffer(a);
View tech_history.md
View oblivion.py
#!/usr/bin/env python
# beta
# Lisence Under GPL2
# Author: S.Mahbub-Uz-Zaman
import fnmatch
import os
def count_lines(filePath):
@lifeparticle
lifeparticle / টার্মিনাল কমান্ড বাংলায় (Termianl Commands in Bangla)
Last active Aug 29, 2015
টার্মিনাল কমান্ড বাংলায় (Termianl Commands in Bangla)
View টার্মিনাল কমান্ড বাংলায় (Termianl Commands in Bangla)
// Author Shouro and Mahbub
// 24 February, 2014
alias লিস্ট='ls'
alias ঢুকি='cd'
alias দেখ='vim'
alias কপি='cp'
alias মুছ='rm'
alias পুস্তিকাবানাও='mkdir'
You can’t perform that action at this time.