Skip to content

Instantly share code, notes, and snippets.

View a-klimashevsky's full-sized avatar

Alex Klimashevsky a-klimashevsky

View GitHub Profile
@a-klimashevsky
a-klimashevsky / gist:0b506efe6e6922177f26b14f22c09388
Created June 23, 2019 14:54
Albion Price google sheets script
function albionPrice(itemId, location, type) {
var url = "https://www.albion-online-data.com/api/v2/stats/prices/"+itemId+"?locations="+location
var response = UrlFetchApp.fetch(url);
var json = JSON.parse(response.getContentText());
if(type === 'sell'){
return json[0].sell_price_min;
} else {
return json[0].buy_price_max;
}
@a-klimashevsky
a-klimashevsky / AnimatorFragment.java
Created May 7, 2015 09:27
Simple wrapper for playing Animator with android.support.v4.app.Fragment. Useful if you need to deal with libraries, which required of using support fragments.
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.support.v4.app.Fragment;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
* Created by Alex Klimashevsky on 5/7/15.