Skip to content

Instantly share code, notes, and snippets.

View Ahmed-Abdelmeged's full-sized avatar
🏠
Working from home

Ahmed Abdelmeged Ahmed-Abdelmeged

🏠
Working from home
View GitHub Profile
# Hangman game
#Ahmed Abd-Elmeged
import random
import string
WORDLIST_FILENAME = "words.txt"
def loadWords():
"""
@Ahmed-Abdelmeged
Ahmed-Abdelmeged / MainActivity.java
Created November 19, 2017 19:53
Rx event bus that lifecycle aware to pass data between application component
public class MainActivity extends AppCompatActivity implements RxBus.RxBusObserver{
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new RxBus.RxLifeCycleObserver(this, this);
//from and place in the code call
RxBus.bus().send(YourObject);
}
@Ahmed-Abdelmeged
Ahmed-Abdelmeged / MainActivity.java
Last active July 13, 2023 05:46
Rounded Layout with specific corners rounded
package com.abdelmeged.ahmed.roundedlayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions;
public class MainActivity extends AppCompatActivity {