Skip to content

Instantly share code, notes, and snippets.

View SirLordPouya's full-sized avatar
👨‍💻
Working on new libraries

Pouya Heydari | پویا حیدری SirLordPouya

👨‍💻
Working on new libraries
View GitHub Profile
@SirLordPouya
SirLordPouya / Git Cheat Sheet
Last active June 1, 2020 05:56
Git terminal commands
Here is a list of commands and their flags that helps you while using Git:
-----------
To clone a project from the repository:
git clone [url]
git clone [url] [folderName]
-----------
To see what is added to the staging area or what is changed but not added:
To add transparency to your colors, just add the following codes before the color code.
Example:
White RGB = #FFFFFF
White RGB with 50% of transparency = #80FFFFFF
<!--100% — FF-->
<!--95% — F2-->
<!--90% — E6-->
<!--85% — D9-->
@SirLordPouya
SirLordPouya / gist:cdd196cbeba2ffc4f687bd9ec48994e6
Created December 20, 2018 10:55
Using android HttpURLConnection to connect to internet
package ir.mftvanak.mftfridays;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;