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
package org.bitbucket.fredgrott.gwsdroidlive.app;
import java.io.File;
import java.io.FileFilter;
import java.util.regex.Pattern;
public class NumCPUCores {
/** The device cpu num cores. */
public static int deviceCPUNumCores;
@fredgrott
fredgrott / eclipse_typical.ini
Created May 31, 2012 20:44
a typical eclipse inii file
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-product
org.eclipse.epp.package.modeling.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
@fredgrott
fredgrott / full_eclipse_ini_file.ini
Created June 1, 2012 00:03
full eclipse ini file
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-product
org.eclipse.epp.package.modeling.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
@fredgrott
fredgrott / ClearPAge.java
Created June 18, 2012 03:17
ClearPage of doclava
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@fredgrott
fredgrott / gistBlogger.html
Created November 7, 2012 22:11
gist-Blogger
<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div>
@fredgrott
fredgrott / DocFile.java
Created November 10, 2012 23:15
DocFile change on AOSP's copy of doclava
package com.google.doclava;
import com.google.clearsilver.jsilver.data.Data;
import java.io.*;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class DocFile {
@fredgrott
fredgrott / eclipsepmd51rulesetandroid.xml
Created December 3, 2012 18:54
pmd51 ruleset for android app dev
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="eclipse_pmd51_ruleset_android" xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd" xmlns="http://pmd.sourceforge.net/ruleset/2.0.0">
<description>PMD Plugin preferences rule set for android</description>
<rule ref="rulesets/java/finalizers.xml/AvoidCallingFinalize"/>
<rule ref="rulesets/java/naming.xml/AvoidDollarSigns"/>
<rule ref="rulesets/java/naming.xml/AvoidFieldNameMatchingMethodName"/>
<rule ref="rulesets/java/naming.xml/AvoidFieldNameMatchingTypeName"/>
<rule ref="rulesets/java/naming.xml/ClassNamingConventions"/>
<rule ref="rulesets/java/clone.xml/CloneMethodMustImplementCloneable"/>
<rule ref="rulesets/java/clone.xml/CloneThrowsCloneNotSupportedException"/>
@fredgrott
fredgrott / eclipse.ini
Created December 3, 2012 20:50
eclipseini file for e421
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
@fredgrott
fredgrott / buildone.gant
Created April 23, 2013 12:58
gant andoird app buildfile
//author: Fred Grott(http://about.me/fredgrott)
//license: Apache 2.0 License
//
// Watch things:
// project.properties props are nonGroovy naming syntax
//
//
// loadProperties{} To load all the properties from
// properties files.We also load the
@fredgrott
fredgrott / GWSApp.java
Last active December 25, 2015 16:39
GWSApp class, shows how to use HoloEverywhere FontLoader and other stuff
package gws.grottworkshop.fourandroid;
import gws.grottworkshop.fourandroid.FontLoader.Font;
import gws.grottworkshop.fourandroid.FontLoader.FontCollector;
import gws.grottworkshop.fourandroid.FontLoader.RawFont;
import gws.grottworkshop.fourandroid.util.ImageCacheManager;
import gws.grottworkshop.fourandroid.util.ImageCacheManager.CacheType;
import gws.grottworkshop.fourandroid.util.RequestManager;
import android.app.Application;