Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
focusing on flutter cross platform mobile dev

Fred Grott fredgrott

👾
focusing on flutter cross platform mobile dev
View GitHub Profile
View 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)
@fredgrott
fredgrott / BaseSavable.java
Created Sep 22, 2015
a savable interface for integrating with android lifecycles
View BaseSavable.java
package com.grottworkshop.gwsbase;
import android.os.Bundle;
/**
* BaseSaveable interface
* Created by fgrott on 9/21/2015.
*/
@SuppressWarnings("unused")
public interface BaseSaveable {
View BaseSavingState.java
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 Sep 22, 2015
Proxy to load the SavingState as a Singleton in the app class
View MyExtendedSavingStateProvider.java
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 Apr 29, 2011
howto enable log recording in ant
View ant-recorder
<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 Apr 29, 2011
eclipse pmd ruleset for andorid
View eclipse-pmd-ruleset-for-android
<?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>
View 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-android-formatting
Created Apr 29, 2011
eclipse android code formatting
View eclipse-android-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 Apr 29, 2011
eclipse android importorder
View eclipse-android-importorder
#Organize Import Order
#Wed Apr 04 11:32:05 CDT 2007
4=javax
3=java
2=android
1=org
0=com
@fredgrott
fredgrott / eclipse-ini-file
Created Apr 29, 2011
eclipse settings in ini file for Java7-AMD-2cpus-2.6 GHZ-MS windows
View eclipse-ini-file
-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
You can’t perform that action at this time.