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
@fredgrott
fredgrott / asidelog
Created August 8, 2014 14:34
asidelog
This file has been truncated, but you can view the full file.
2014-08-03 05:56:21,084 [ 26310] ERROR - plication.impl.ApplicationImpl - Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:856)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:805)
at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:930)
at com.intellij.util.indexing.FileBasedIndexImpl.collectFileIdsContainingAllKeys(FileBasedIndexImpl.java:1190)
at com.intellij.util.indexing.FileBasedIndexImpl.processFilesContainingAllKeys(FileBasedIndexImpl.java:1018)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:1096)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$26.compute(PsiSearchHelperImpl.java:109
@fredgrott
fredgrott / BaseSavable.java
Created September 22, 2015 18:28
a savable interface for integrating with android lifecycles
package com.grottworkshop.gwsbase;
import android.os.Bundle;
/**
* BaseSaveable interface
* Created by fgrott on 9/21/2015.
*/
@SuppressWarnings("unused")
public interface BaseSaveable {
@fredgrott
fredgrott / BaseSavingState.java
Created September 22, 2015 18:32
BaseSavingState
package com.grottworkshop.gwsbase;
import android.os.Bundle;
import java.util.List;
@SuppressWarnings("unused")
public abstract class BaseSavingState implements BaseSaveable {
@fredgrott
fredgrott / MyExtendedSavingStateProvider.java
Created September 22, 2015 18:35
Proxy to load the SavingState as a Singleton in the app class
public final class MyExtendedSavingStateProvider extends BaseSavingStateProvider{
private static final MyExtendedBaseSavingSate mySavingState = new MyExtendedBaseSavingState(objectGlobalOne, objectGlobalTwo);
public static MyExtendedBaseSavingState getInstance(){
return mySavingState;
}
private MyExtendedSavingStateProvider(){
}
@fredgrott
fredgrott / ant-recorder
Created April 29, 2011 13:12
howto enable log recording in ant
<property name="log.dir" location="${basedir}/build/log"/>
<mkdir dir="${log.dir}"/>
<!-- no need to adjust logging levels just catch everything -->
<record name="log-${TSTAMP}-${DSTAMP}.txt" action="start"/>
@fredgrott
fredgrott / eclipse-pmd-ruleset-for-android
Created April 29, 2011 15:06
eclipse pmd ruleset for andorid
<?xml version="1.0"?>
<ruleset name="Android Application Rules"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>Ruleset for Android application</description>
<exclude-pattern>.*/R.java</exclude-pattern>
@fredgrott
fredgrott / ant-tstamp-format
Created April 29, 2011 13:39
ant tstamp format
<tstamp>
<format property="TODAY_US" pattern="MMMM-d-yyyy" locale="en,US"/>
<format property="TSTAMP" pattern="hh:mm aa"/>
<format property="DSTAMP" pattern="MMMM-d-yyyy"/>
</tstamp>
@fredgrott
fredgrott / eclipse-ini-file
Created April 29, 2011 14:48
eclipse settings in ini file for Java7-AMD-2cpus-2.6 GHZ-MS windows
-vm C:/Oracle/Java/jdk1.7.0ea/bin
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110321-2120.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110321
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
@fredgrott
fredgrott / eclipse-android-formatting
Created April 29, 2011 15:46
eclipse android code formatting
<?xml version="1.0" encoding="UTF-8"?>
<profiles version="10">
<profile name="Android" version="10">
<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
@fredgrott
fredgrott / eclipse-android-importorder
Created April 29, 2011 15:47
eclipse android importorder
#Organize Import Order
#Wed Apr 04 11:32:05 CDT 2007
4=javax
3=java
2=android
1=org
0=com