Skip to content

Instantly share code, notes, and snippets.

View mrabelwahed's full-sized avatar
🎯
Working Remotely

Mahmoud Ramadan mrabelwahed

🎯
Working Remotely
View GitHub Profile
@mrabelwahed
mrabelwahed / States
Created August 15, 2023 15:03 — forked from AhmedMenaim/States
Most popular states you may find a remote job in
Montana
Idaho
Nevada
Oregon
Arizona
Utah
Colorado
Wyoming
Oklahoma
Kansas
@mrabelwahed
mrabelwahed / restaurants.json
Created March 16, 2022 10:53
#MobChallenges - Filter restaurants with multiple options challenge
{
"restaurants": [{
"name": "Tanoshii Sushi",
"status": "open",
"sortingValues": {
"bestMatch": 0.0,
"newest": 96.0,
"ratingAverage": 4.5,
"distance": 1190,
"popularity": 17.0,
@mrabelwahed
mrabelwahed / node_nginx_ssl.md
Created February 22, 2020 21:52 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@mrabelwahed
mrabelwahed / smashing-template.md
Created September 12, 2019 08:18 — forked from rachelandrew/smashing-template.md
Template for Smashing Magazine authors

Authors Guide: Article Template

Please submit your article including all of the information below. You can include this as a seperate file if you like - but please complete each section. Please use an online service to write your article, for example Dropbox Paper, Draft.in, Google Docs. For more help, see the editorial guide

Article Title

Ideally under 67 characters, what problem does this article solve?

Quick Summary

package com.ramadan_apps.test;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.ramadan_apps.mylibrary.CircleView;
public class MainActivity extends AppCompatActivity {
CircleView circleView ;
@Override
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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.ramadan_apps.test.MainActivity">
<com.ramadan_apps.mylibrary.CircleView
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="CircleView">
<attr name="shape" format="string"/>
<attr name="dim" format="dimension"/>
</declare-styleable>
</resources>
package com.ramadan_apps.mylibrary;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
@mrabelwahed
mrabelwahed / MainActivity.java
Created December 23, 2017 15:07
this is rxjava2 with realm cache using retrofit
package com.ramadan_apps.rxjavawithrealmcache;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
@mrabelwahed
mrabelwahed / ApiClient.java
Created December 23, 2017 15:05
this is a singleton class for retrofit api client
package com.ramadan_apps.rxjavawithrealmcache;
import com.jakewharton.retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**