Skip to content

Instantly share code, notes, and snippets.

📚
Ridiculously Restricted

Mohammad Hossein Jamali smhjamalii

📚
Ridiculously Restricted
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am smhjamalii on github.
  • I am jamali (https://keybase.io/jamali) on keybase.
  • I have a public key ASCEg8LBpZVAzChsyCDyeb1JnyIdosx3CRsKaQBq4GtnOAo

To claim this, I am signing this object:

View ArrayUtils.java
public class ArrayUtils {
public static Object[] flatten(Object[] array){
Object[] flattenedArray = new Object[0];
for(int i = 0; i < array.length; i++){
if(array[i] instanceof Object[]){
flattenedArray = addAll(flattenedArray, flatten((Object[]) array[i]));
} else {
flattenedArray = add(flattenedArray, array[i]);
}
@smhjamalii
smhjamalii / InstagramPostHelper.java
Created Nov 4, 2017 — forked from putraxor/InstagramPostHelper.java
Instagram Upload Image With Java
View InstagramPostHelper.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpCookie;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Date;
import java.util.List;
You can’t perform that action at this time.