Skip to content

Instantly share code, notes, and snippets.

View MiguelCatalan's full-sized avatar
🏍️

Miguel Catalan Bañuls MiguelCatalan

🏍️
View GitHub Profile
@MiguelCatalan
MiguelCatalan / kotlin.kt
Created January 28, 2024 10:01
kotlin.kt
package com.personio.payroll.concept.history.configuration.authentication
data class NewUserDomain(
val name: String,
)
data class UserDomain(
val name: String,
val id: String,

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

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
@MiguelCatalan
MiguelCatalan / GenericComparator.java
Created July 26, 2015 15:53
Generic Collection Comparator
/**
* 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);
/**
* @author amulya
* @datetime 14 Oct 2014, 5:20 PM
*/
public class ColorGenerator {
public static ColorGenerator DEFAULT;
public static ColorGenerator MATERIAL;
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 / GravatarManager.java
Last active August 29, 2015 14:16
Class for manage the Gravatar Images
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 August 29, 2015 14:13
C and C++ compiler script helper for OpenCV
#!/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 August 29, 2015 14:04
Class in charge of the connections management with AutomaticAPIREST
/**
* 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;