Skip to content

Instantly share code, notes, and snippets.

View mohamedebrahim96's full-sized avatar
Official

Mohamed Ebrahim mohamedebrahim96

Official
View GitHub Profile
@mohamedebrahim96
mohamedebrahim96 / unfollow.js
Created July 8, 2020 06:42
Unfollow all Twitter Followers (People who follow you + People who don’t follow you)
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: 09 April 2020
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
const retry = {
<LinearLayout
android:layout_width="match_parent"
android:layout_height="54dp"
android:orientation="horizontal"
android:background="@color/colorPrimaryDark"
android:id="@+id/layout2_payment"
android:gravity="right"
android:padding="10dp"
android:clickable="true">
@mohamedebrahim96
mohamedebrahim96 / linkedin.md
Last active September 16, 2018 03:43
Script to automatically add connections from "People You May Know" page

LinkedIn auto inviter

in this Gist you can invite all connictions just by one click

@mohamedebrahim96
mohamedebrahim96 / Permissions.md
Last active March 26, 2021 01:23
Requesting Runtime Permissions In Android M And N, Starting from Android Marshmallow (API 23), users will be asked for permissions while the app is running. This way, a user is able to choose which permissions they should grant without affecting the application flow. In this tutorial I will cover requesting runtime permissions in Android M and N…

Starting from Android Marshmallow (API 23), users will be asked for permissions while the app is running. This way, a user is able to choose which permissions they should grant without affecting the application flow. In this tutorial I will cover requesting runtime permissions in Android M and N, how to perform a request, get its result and then handle it.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@color/black"
android:layout_gravity="center"
>
@mohamedebrahim96
mohamedebrahim96 / activity_main2.xml
Last active December 12, 2018 23:10
The function of the button at the center is to call an activity and the TabLayout will be place at the bottom of the screen.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.vacuum.app.cinema.MainActivity">
<!--SOME CODE FOR MY AppBarLayout-->
<!--SOME CODE FOR MY ToolBar-->

Sharek Dostor

The Arab republic of Egypt Constitution for Android. This includes the new Android Material theme, and can be customized to either Light or Dark. Have all of your guaranteed rights, in the palm of your hand! Features:

  • Full Egypt Constitution
  • Egyptian Constitution of 2014
  • Egyptian Constitution of 2012
  • Egyptian Constitution of 2007
@mohamedebrahim96
mohamedebrahim96 / Custom Toolbar
Created October 29, 2017 09:26
Android Custom Centered ActionBar with Material Design
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.AppBarLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/appBar"
android:background="#fff"
android:layout_width="match_parent"
android:layout_height="match_parent">
@mohamedebrahim96
mohamedebrahim96 / README-Template.md
Created April 16, 2017 01:28 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites