Skip to content

Instantly share code, notes, and snippets.

View felipeska's full-sized avatar
🏠
Working from home

Felipe felipeska

🏠
Working from home
View GitHub Profile
@felipeska
felipeska / MainActivity.java
Created November 28, 2013 16:26
in this example I try to create a similar animation foursquare on their maps android app. is not the correct method but its appearance is similar. Some other way?
package com.widetech.mobile.paisaclassic.passenger;
import java.util.List;
import com.cyrilmottier.polaris2.maps.CameraUpdate;
import com.cyrilmottier.polaris2.maps.CameraUpdateFactory;
import com.cyrilmottier.polaris2.maps.GoogleMap;
import com.cyrilmottier.polaris2.maps.SupportMapFragment;
import com.cyrilmottier.polaris2.maps.UiSettings;
import com.cyrilmottier.polaris2.maps.GoogleMap.CancelableCallback;
import com.cyrilmottier.polaris2.maps.GoogleMap.OnMapClickListener;
@felipeska
felipeska / MapFragment.java
Created December 20, 2013 19:32
Add center 'marker', in map V2 Android
package com.widetech.mobile.coltaxis.ui.fragment;
import android.content.Intent;
import android.graphics.Point;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
@felipeska
felipeska / Solution.java
Last active August 29, 2015 14:03
SocialGraph
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* Created by felipecalderonbarragan on 7/7/14.
*/
public class Solution {
@felipeska
felipeska / TimeUtils
Last active August 29, 2015 14:05
obtain the time based on the time zone in Java...
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.util.Calendar;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
# This should be included from your ~/.zshrc or ~/.bash_profile like
# source ~/some/path/common.sh
# Requires to be preinstalled for certain functions/aliases: git, ack, ditto, imagemagick, jq, icdiff
# Aliases
alias g='git'
alias status='git status'
alias cutediff='git icdiff'
alias cutelog="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
@felipeska
felipeska / Hanoi.scala
Created January 17, 2015 22:31
Hanoi in Scala BTW
package com.prodigious.figures
/**
* @author JVM Group
*/
object Hanoi {
def solve(discs: Int, initial: Character, aux: Character, goal: Character) : Unit = {
if (discs > 0) {
solve(discs - 1, initial, goal, aux)
@felipeska
felipeska / RxJava.md
Last active February 26, 2016 16:10
Borrador sobre RxJava y otras hierbas.

Entendiendo RxJava, parte 1: lo básico.

La programación reactiva es una de las tendencias hoy en día, en diversos sectores de la industria del desarrollo de software, gracias a iniciativas como ReactiveX, un movimiento que busca llevar el paradigma a varios lenguajes de programación (sean o no funcionales), y que no necesariamente corran en un servidor; como es el caso de las extensiones para JavaScript, el nuevo lenguaje de Apple multiplataforma Swift o Bindings para frameworks específicios como Android.

Pero... qué es programación reactiva? (no se puede hablar de RxJava sin esto).

La programación reactiva es un paradigma orientado al flujos de datos y a la propagación de cambios. La palabra reactiva hace referencia a la reacción, al comportamiento que va a realizar nuestra aplicación en base a un dato, y a partir de los cambios realizados en e

@felipeska
felipeska / proguard-project.txt
Created April 25, 2018 20:06 — forked from intrepid-ab/proguard-project.txt
Proguard Configuration for Android Library
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack
# traces later on. Keep a fixed source file attribute and all line number
# tables to get line numbers in the stack traces.
# You can comment this out if you're not interested in stack traces.
-printmapping out.map
-keepparameternames
-renamesourcefileattribute SourceFile
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,
SourceFile,LineNumberTable,EnclosingMethod
@felipeska
felipeska / xamarinandroidbindings.md
Created May 29, 2019 19:46 — forked from JonDouglas/xamarinandroidbindings.md
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available: