Skip to content

Instantly share code, notes, and snippets.

View fredgrott's full-sized avatar
👾
focusing on flutter cross platform mobile dev

Fred Grott fredgrott

👾
focusing on flutter cross platform mobile dev
View GitHub Profile

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public interface AdaptableAdapter<VM, AVM extends AdaptableViewModel<VM>> {

  /**
   * Adapt the data contained in the {@code adaptable} into a ViewModel
   * ({@link VM}) viewModel that is ready to be bound to the View (displayed).
 *

Original code developed by Robert LaThanh Modifications by Fred Grott, all under Apache License 2.0 Copyright (C) 2016

public abstract class AdaptableBindingAdapter<VM,
        AVM extends AdaptableViewModel<VM>,
        VH extends RecyclerView.ViewHolder>
        extends RecyclerView.Adapter<VH> {

  /**

This a gradle fix to the normal Google Android sample app code examples

androidTestCompile("com.android.support.test.espresso:espresso-core:$rootProject.espressoVersion", {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
androidTestCompile ("com.android.support.test:runner:$rootProject.ext.runnerVersion",{
        exclude group:'com.android.support', module:'support-annotations'
    })
androidTestCompile ("com.android.support.test:rules:$rootProject.ext.runnerVersion",{

Apache 2.0 License Copyright(C) Fred Grott(GrottWorkSHop)

This is my strict mode stetup...to be effective you combine this with obviously having some gradle product flavors for each api levlel you are targeting

@SuppressLint("NewApi")
  public void strictModeSetUp(){
    if(BuildConfig.DEBUG){
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Full Google Material Design Palette
Copyright(C) 2016 Apache 2.0 License Fred Grott(GrottWorkShop)
-->
<color name="gws_turquoise50">#b8f2ec</color>
<color name="gws_turquoise100">#9fece4</color>
<color name="gws_turquoise200">#8aeee3</color>

Keybase proof

I hereby claim:

  • I am shareme on github.
  • I am fredgrott (https://keybase.io/fredgrott) on keybase.
  • I have a public key ASDmgZOa9Q9HALSgS3g6eIM1ObWPvXV0QK4ZW2KcrQc5pAo

To claim this, I am signing this object:

@fredgrott
fredgrott / notch.md
Created February 13, 2018 13:52
the notch adjustment in web code

Notch Adjustment

html

   <head>
   <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
   </head>
   
@fredgrott
fredgrott / preloadcsstransitions.md
Created February 13, 2018 13:57
prevent premature triggering of css transtions

Pre Load CSS Transitions

html

<body class="preload">

CSS

@fredgrott
fredgrott / carcdolumns.md
Created February 13, 2018 14:41
bootstrap card columns

Bootstrap card Columns

CSS

@media (max-width: 575px)  {
  .card-columns{
    column-count: 1;
  }
}

#TheHopesPoem

Hopes, dashed in the gun hands of a mentally-ill dissenter lady liberty gazed upon Florida and creid at teh Februrary bitter and cold in its death grip