Skip to content

Instantly share code, notes, and snippets.

View Servus7's full-sized avatar

Kai Eckardt Servus7

  • CHECK24
  • Germany
View GitHub Profile
@Servus7
Servus7 / google-img-resize.mdown
Created August 26, 2016 13:28
Google’s authentication-less on-the-fly image resizing service

Google's authentication-less on-the-fly image resizing service

I found it while poking around the Google+ HTML. Jotting down some notes felt like a good idea, so here goes. If you know more about this API, let me know, please!

(Word of warning: I spent ~30 minutes on both my experimentation and this here write-up, so it might not be the most thought-provoking, brilliant thing you read today.)

swagger: '2.0'
info:
title: Stampay API
description: Loyalty as a service
version: 2.1.7
license:
name: Stampay GmbH
url: https://stampay.com/
host: api.staging.stampay.com
schemes:
@Servus7
Servus7 / AspectRatioImageView.java
Last active October 1, 2015 08:44 — forked from JakeWharton/AspectRatioImageView.java
ImageView that respects an aspect ratio applied to a specific measurement.
// Copyright 2012 Square, Inc.
package com.squareup.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.ImageView;
/** Maintains an aspect ratio based on either width or height. Disabled by default. */
public class AspectRatioImageView extends ImageView {