Skip to content

Instantly share code, notes, and snippets.

View tahmidmozaffar's full-sized avatar

Md Tahmid Mozaffar tahmidmozaffar

View GitHub Profile
@tahmidmozaffar
tahmidmozaffar / GridSpacingItemDecoration.cs
Last active May 29, 2016 21:48
RecyclerView ItemDecoration for Xamarin.Android
public class GridSpacingItemDecoration : RecyclerView.ItemDecoration
{
private int spanCount;
private int spacing;
private bool includeEdge;
public GridSpacingItemDecoration (int spanCount, int spacing, bool includeEdge)
{
this.spanCount = spanCount;
this.spacing = spacing;
@tahmidmozaffar
tahmidmozaffar / LICENSE
Last active August 29, 2015 14:27 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@tahmidmozaffar
tahmidmozaffar / Main.java
Last active July 18, 2017 13:33
This is a example for bangla word parsing according to the pronunciation. For example, this code will parse the word...আমার as..... আ, মা and র . In this code, complex words are also considered.
import java.util.ArrayList;
public class Main {
public static void main(String arg[]){
String str[] = new String[]{"দস্যুবৃত্তি","ভেড়া","ঘোড়া","নীড়","নীর","পোকা","গোপালি","পোষা","পায়রা","পঁকা","চাঁদ","পেঁচা","ব্চ্চদগ","তৃষ্ণা","অঞ্চল","অগ্রীম","অগ্রণী","গ্রাম","বালক","কলাম","অমর","কালাম","বিড়াল","মানুষ","আমার","সাহায্য","স্ফুলিঙ্গ","কলম","ব্যাঙ","স্বাস্থ্য"};
@tahmidmozaffar
tahmidmozaffar / test.xml
Last active January 2, 2016 09:29
This is a simple example where a container containing two button is made fixed at the bottom of the screen. And another container is made scrollable above it.The widgets are only for showing the scrolling. I used this way to make widgets fixed at the bottom or top.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/footer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"