Skip to content

Instantly share code, notes, and snippets.

View hemenkapadia's full-sized avatar

Hemen Kapadia hemenkapadia

View GitHub Profile
@hemenkapadia
hemenkapadia / Android_Infuse_datadata.note
Last active January 16, 2016 23:17
Resoltuion to the datadata space constraint issue on Infuse
# Important - if the device shows as unauthorized in adb devices -l command. Then go into recovery mode and try adb shell. It will drop to you the shell as root.
# All the below steps needs to be performed in recovery mode.
The fix for the space limitation with yaffs /datadata partion is causing the phone to display low memory error when i enable corporate email on my Samsung Infuse.
The workaround i have is to move some of the data intensive applications to /data/data2 directory which is ext4 based - so far i have not noticed any challanges with performance.
These steps are to be performed in recovery mode. Use CWM to mount /datadata and /data partitions if you notice they are empty.
@hemenkapadia
hemenkapadia / ggplot_multiplot.R
Last active November 13, 2015 23:11
Draw multiple ggplots in a grid layout
# MultiPlot - Arrange multiple R plots in a single grid type layout
#
# Reference - http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_%28ggplot2%29/
#
# ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects)
# - cols: Number of columns in layout
# - layout: A matrix specifying the layout. If present, 'cols' is ignored.
#
# If the layout is something like matrix(c(1,2,3,3), nrow=2, byrow=TRUE),
# then plot 1 will go in the upper left, 2 will go in the upper right, and