Skip to content

Instantly share code, notes, and snippets.

View ccrama's full-sized avatar

Carlos Crane ccrama

  • Haptic Apps; Engineering @ H-E-B Digital
  • Austin, TX
View GitHub Profile
@ccrama
ccrama / HttpUtil.java
Created November 14, 2017 17:27
This code gets a Gfycat link from a .gif URL and authenticates if neccessary. This is currently failing with a 400 BadRequest before it even reaches the https://api.gfycat.com/v1/gfycats call Raw
package me.ccrama.redditslide.util;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
@ccrama
ccrama / HttpUtil.java
Last active November 14, 2017 17:26
This code gets a Gfycat link from a .gif URL and authenticates if neccessary. This is currently failing with a 400 BadRequest before it even reaches the https://api.gfycat.com/v1/gfycats call
package me.ccrama.redditslide.util;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
@ccrama
ccrama / FaceLibrary.java
Last active August 29, 2015 14:01
FaceLibraryMinecraft
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;
import org.bukkit.entity.Player;