@@ -0,0 +1,1590 @@
+/*%0A * This file is part of Tangerine, licensed All Rights Reserved.%0A *%0A * Copyright (c) 2016, Lexteam %3Chttp://www.lexteam.xyz/%3E%0A * All Rights Reserved.%0A */%0Apackage xyz.lexteam.tangerine.extra;%0A%0Aimport xyz.lexteam.tangerine.util.JsonUtils;%0A%0Aimport java.io.DataOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.MalformedURLException;%0Aimport java.net.ProtocolException;%0Aimport java.net.URL;%0Aimport java.util.Optional;%0A%0Apublic final class Hastebin %7B%0A%0A    public static Optional%3CString%3E makeHaste(String content) %7B%0A        try %7B%0A            URL pathUrl = new URL(%22http://hastebin.com/documents%22);%0A            HttpURLConnection con = (HttpURLConnection) pathUrl.openConnection();%0A%0A            con.setRequestMethod(%22POST%22);%0A%0A            con.setDoOutput(true);%0A            DataOutputStream wr = new DataOutputStream(con.getOutputStream());%0A            wr.writeBytes(content);%0A            wr.flush();%0A            wr.close();%0A%0A            return Optional.of(%22http://hastebin.com/%22 + JsonUtils.GSON.fromJson(%0A                    new InputStreamReader(con.getInputStream()), ResponseModel.class).getKey());%0A        %7D catch (MalformedURLException e) %7B%0A            e.printStackTrace();%0A        %7D catch (ProtocolException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return Optional.empty();%0A    %7D%0A%0A    private static class ResponseModel %7B%0A%0A        private String key;%0A%0A        public String getKey() %7B%0A            return this.key;%0A        %7D%0A    %7D%0A%7D%0A

Add Hastebin utility