Skip to content

Instantly share code, notes, and snippets.

View sam33rdhakal's full-sized avatar
🤔
Curious

Sameer Dhakal sam33rdhakal

🤔
Curious
View GitHub Profile
@sam33rdhakal
sam33rdhakal / HowdysRealmSerializerGenerator.java
Last active December 17, 2021 16:22
Script for generating RealmObject Serializer. Uses JavaPoet to write file.
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import com.squareup.javapoet.*;
import javax.lang.model.element.Modifier;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
alias gs="git status -s"
alias gd="git diff -w"
alias gca="git commit -a -m"
alias gl="git log --oneline --decorate"
alias gp="git push"
alias gf="git fetch"
alias gc="git checkout"
#!/bin/bash
# [Type - name] - Message - {tickets}
# e.g. "[Feature - Product Filter] - Implements product filtering. - {GMO-1920,GMO-2020}"
# -f for feature
# -i for issue
# -r for refactor
# -c for Crash Fix
# -n for type name