Skip to content

Instantly share code, notes, and snippets.

Avatar

Lukas Zorich lezorich

View GitHub Profile
@lezorich
lezorich / bci360.md
Last active Dec 16, 2020
Fintoc API BCI 360 example responses
View bci360.md

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
lezorich / check_if_nan_or_infinite.py
Created Aug 2, 2018
Check if pandas df columns are nan or finite
View check_if_nan_or_infinite.py
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
lezorich / FloatLabelLayout.java
Last active Aug 29, 2015 — forked from chrisbanes/FloatLabelLayout.java
Floating label design pattern for android. Backwards compatible to 2.3.x
View FloatLabelLayout.java
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@lezorich
lezorich / map_style_bg.9.png
Last active May 13, 2017
Google maps button like background 9 patch
@lezorich
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;
import android.graphics.Typeface;
/**
* reference: http://stackoverflow.com/a/16883281/1373226
*/
public final class FontsOverride {
public static void setDefaultFont(Context context,
@lezorich
lezorich / PersistentCookieStore.java
Last active Apr 10, 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.
View PersistentCookieStore.java
/*
* 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