Skip to content

Instantly share code, notes, and snippets.

Avatar
🏍️

Miguel Catalan Bañuls MiguelCatalan

🏍️
View GitHub Profile
View report.txt
Eleanor:evally_mobile_flutter miguelcatalan$ flutter -v run
[ +26 ms] [/Users/miguelcatalan/Projects/Flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +30 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/dev
[ ] [/Users/miguelcatalan/Projects/Flutter/flutter/] git rev-parse --abbrev-ref HEAD
[ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] dev
[ ] [/Users/miguelcatalan/Projects/Flutter/flutter/] git ls-remote --get-url origin
[ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

View ColorGenerator.java
/**
* @author amulya
* @datetime 14 Oct 2014, 5:20 PM
*/
public class ColorGenerator {
public static ColorGenerator DEFAULT;
public static ColorGenerator MATERIAL;
View SecurityWard.java
public class SecurityWard {
private static final String CLASS_TAG = "SecurityWard";
private static final String CERTIFICATE_SHA1 = "";
/**
* Detect if Google Play Store was the installer
* @param context Current context
* @return true if was installed with Google Play Store
@MiguelCatalan
MiguelCatalan / GenericComparator.java
Created Jul 26, 2015
Generic Collection Comparator
View GenericComparator.java
/**
* By BalusC at: http://stackoverflow.com/a/1814112/1994530
*/
public class GenericComparator implements Comparator<Object> {
private String getter;
public GenericComparator(String field) {
this.getter = "get" + field.substring(0, 1).toUpperCase() + field.substring(1);
@MiguelCatalan
MiguelCatalan / GravatarManager.java
Last active Aug 29, 2015
Class for manage the Gravatar Images
View GravatarManager.java
import android.text.TextUtils;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.List;
/**
* @author Miguel Catalan Bañuls
@MiguelCatalan
MiguelCatalan / compiler_c_cpp_opencv.sh
Last active Aug 29, 2015
C and C++ compiler script helper for OpenCV
View compiler_c_cpp_opencv.sh
#!/bin/sh
if [ $# -gt 0 ] ; then
base=`basename $1 .c`
echo "compiling $base"
gcc -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base
else
for i in *.cpp; do
echo "compiling $i"
g++ -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;
@MiguelCatalan
MiguelCatalan / AARManager.java
Last active Aug 29, 2015
Class in charge of the connections management with AutomaticAPIREST
View AARManager.java
/**
* Class in charge of the connections management with AutomaticAPIREST
* Created by Miguel Catalan Bañuls on 29/07/14. @mcatalanb
*/
public class AARManager {
public static final String USER_AGENT = "Mozilla/5.0";
private String URL;
private String user_agent;
You can’t perform that action at this time.