Skip to content

Instantly share code, notes, and snippets.

View smhjamalii's full-sized avatar

Seyed Mohammad Hossein Jamali smhjamalii

View GitHub Profile
@smhjamalii
smhjamalii / InstagramPostHelper.java
Created November 4, 2017 20:50 — forked from putraxor/InstagramPostHelper.java
Instagram Upload Image With 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;
@smhjamalii
smhjamalii / ArrayUtils.java
Last active January 3, 2019 20:22
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]);
}

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: