Skip to content

Instantly share code, notes, and snippets.

View Abdallah-Abdelazim's full-sized avatar
👍
Indeed, with hardship [will be] ease : Quran 94:6

Abdallah Abdelazim Abdallah-Abdelazim

👍
Indeed, with hardship [will be] ease : Quran 94:6
View GitHub Profile
@Abdallah-Abdelazim
Abdallah-Abdelazim / multiple_ssh_setting.md
Created February 18, 2023 23:56 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@Abdallah-Abdelazim
Abdallah-Abdelazim / #android_filterable_example.md
Last active May 5, 2023 21:45 — forked from DeepakRattan/Bean.java
Filtering ListView using Filterable interface

Android Filterable Example:

This is an example of using Filterable with a SearchView to filter the data of a ListView adapter.

@Abdallah-Abdelazim
Abdallah-Abdelazim / drawablegen.sh
Last active November 30, 2023 22:16 — forked from Kishanjvaghela/converter.sh
drawablegen - A shell script to resize icon images and generate the alternative drawables with the proper screen pixel densities (dip) for Android.
#!/bin/sh
# A shell script to resize icon images and generate the alternative drawables with the proper screen pixel densities (dip) for Android.
# The passed icon image would be the xxxhdpi drawable & the other drawables (xxhdpi, xhdpi, hdpi & mdpi) would be scaled down from that.
# How to use:
# ./drawablegen.sh <icon image file relative path>
# Example:
# ./drawablegen.sh my_image.png
# This will create all the drawable folders, if not has already, in a res folder inside the current directory (as returned by pwd).
# Use only with PNG images.
# Requires ImageMagick to be installed & added to the path environment variable. Install with: sudo apt install imagemagick
@Abdallah-Abdelazim
Abdallah-Abdelazim / BcdConverter.java
Last active October 27, 2019 10:39 — forked from neuro-sys/BCD.java
BCD Conversion in Java
/*
* Copyright 2010 Firat Salgur
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software