Skip to content

Instantly share code, notes, and snippets.


Lukas Zorich lezorich

View GitHub Profile
lezorich /
Last active Sep 20, 2022
Android basic persistent cookie manager for Volley. This cookie store wraps the default CookieManager store to store the session cookie. It use's Gson to json serialize the cookie and store it as a json string in SharedPreferences.
* The MIT License (MIT)
* Copyright (c) 2015 Lukas Zorich
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
lezorich /
Last active Dec 16, 2020
Fintoc API BCI 360 example responses

Transferencia recibida

    "id": "BO381oEATXonG6bj",
    "amount": 59400,
    "post_date": "2020-04-17T00:00:00.000Z",
    "description": "Abono Cuenta BCI",
    "transaction_date": "2020-04-16T00:00:00.000Z",
    "currency": "CLP",
lezorich /
Created Aug 2, 2018
Check if pandas df columns are nan or finite
for feat in features:
print("{:<30}{:>2}{:>2}".format(feat, np.any(np.isnan(df[feat])), np.all(np.isfinite(df[feat]))))
View tsne_vec.csv
label x y
0 bicolor -67.78697967529297 -22.092941284179688
1 velados -21.196996688842773 -26.35091209411621
2 esmalte -58.538021087646484 -25.276020050048828
3 sensation 63.18117141723633 -14.042832374572754
4 brit 78.35515594482422 -9.263432502746582
5 windows 37.412906646728516 23.115482330322266
6 beso 2.068155527114868 -8.081608772277832
7 liquido -38.30398941040039 8.335278511047363
8 amarilla -85.90059661865234 -24.10359001159668
lezorich / map_style_bg.9.png
Last active May 13, 2017
Google maps button like background 9 patch
lezorich /
Last active Aug 29, 2015 — forked from chrisbanes/
Floating label design pattern for android. Backwards compatible to 2.3.x
* Copyright (C) 2014 Chris Banes
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
lezorich / FontsOverride
Created Sep 11, 2014
To change the font everywhere in the application we can use reflection to override the default fonts, with no custom views or changes in layouts xml
View FontsOverride
import java.lang.reflect.Field;
import android.content.Context;
* reference:
public final class FontsOverride {
public static void setDefaultFont(Context context,