Skip to content

Instantly share code, notes, and snippets.

.react-grid-layout {
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: auto !important;
justify-content: space-around
}
.react-grid-item.cssTransforms {
transform: none !important;

Keybase proof

I hereby claim:

  • I am mobilesam on github.
  • I am mobilesam (https://keybase.io/mobilesam) on keybase.
  • I have a public key ASBPJrimu6fugiRUA0zaa-UkfDy2pLYQ1m5XXGhR0SZk4Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am mobilesam on github.
  • I am mobilesam (https://keybase.io/mobilesam) on keybase.
  • I have a public key ASARYXAvzx4BI4_9myx8LPgABo7GOOxkUVB-tmr60PutwQo

To claim this, I am signing this object:

@MobileSam
MobileSam / gist:a737bed509741fbc5866e5393f13d1e2
Created October 19, 2017 12:52
Android Google Map Default Location
LatLng pos = new LatLng(45.50228475740457,-73.60521756257315);
GoogleMapOptions options = new GoogleMapOptions();
options.camera(CameraPosition.fromLatLngZoom(pos, 15.f));
SupportMapFragment supportFragment = SupportMapFragment.newInstance(options);
supportFragment.getMapAsync(this);
activity.getSupportFragmentManager()
.beginTransaction()
@MobileSam
MobileSam / HeaderCardAdapter
Created November 29, 2013 03:29
CardsLib working with StickyListHeaders Note that I'm using the PR/7 merged with master as I need 2.3 support. https://github.com/gabrielemariotti/cardslib https://github.com/emilsjolander/StickyListHeaders
package mobi.dinoz.droid.adapter;
import it.gmariotti.cardslib.library.R;
import it.gmariotti.cardslib.library.internal.Card;
import it.gmariotti.cardslib.library.internal.base.BaseCardArrayAdapter;
import it.gmariotti.cardslib.library.view.CardListView;
import it.gmariotti.cardslib.library.view.CardView;
import it.gmariotti.cardslib.library.view.listener.SwipeDismissListViewTouchListener;
import java.util.List;
@MobileSam
MobileSam / style.css
Created April 19, 2013 21:41
CSS Styling guide I follow
/**
* Based a lot on this https://github.com/necolas/idiomatic-css
*
* I only differ on splitting the margin/padding from the box model
* I usually put borders on their own as well
*
* I tend to sort the properties in each group alphebetically BUT
* not for the positioning where I keep the top, right, bottom, left order we're use to.
*
* Last point where I differ from idiomatic-css is the shorthand hex value. I prefer having always the whole thing