This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Takes a value in pixels and converts it to a dpi value. It adjusts | |
* the dpi size based on the screen density that is returned by | |
* android. | |
* | |
* @param originalHeight | |
* @param context The activity context | |
* @return | |
*/ | |
public static int getDPI(int pixelsize, Activity context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profiles> | |
<profile> | |
<id>release-profile</id> | |
<properties> | |
<p2repo-dir>${basedir}/target/deployed-repository</p2repo-dir> | |
<buildNumber>${project.version}.${maven.build.timestamp}</buildNumber> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<opml version="2.0"> | |
<head> | |
<title>TWiT.tv</title> | |
<dateModified>Thu, 25 Apr 2013 23:35:52 GMT</dateModified> | |
</head> | |
<body> | |
<outline text="TWiT.tv"> | |
<outline text="Tech News Today" type="rss" xmlUrl="http://feeds.twit.tv/tnt_video_hd" /> | |
<outline text="This Week in Tech" type="rss" xmlUrl="http://feeds.twit.tv/twit_video_hd" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.github.kingargyle</groupId> | |
<artifactId>p2-orbit-repo-example</artifactId> | |
<version>1.0.0</version> | |
<packaging>pom</packaging> | |
<build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo /sbin/rmmod kvm_intel | |
sudo /sbin/rmmod kvm | |
sudo /etc/init.d/vboxdrv start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.dbunit.IDatabaseTester; | |
import org.dbunit.PropertiesBasedJdbcDatabaseTester; | |
import org.dbunit.database.IDatabaseConnection; | |
import org.junit.Assert; | |
/** | |
* Base testCase for database testing.<br> | |
* Subclasses may override {@link #newDatabaseTester()} to plug-in a different |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copy the old update site for ADT plugins into a p2 repository that can be used as part of a tycho build or to handle | |
cases where Eclipse complains about the external site not being available. This will create a new P2 repository instead | |
of the old site.xml based repository which is deprecated. | |
The p2 repository will be in the target/site/p2 directory when finished. You can then use as a local p2 repository in | |
Eclipse or deploy it to a web server and use it company wide. | |
--> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.LinearGradient; | |
import android.graphics.Matrix; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff.Mode; | |
import android.graphics.PorterDuffXfermode; | |
import android.graphics.Shader.TileMode; | |
import android.util.AttributeSet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place this in the setup method for any test that is failing to keep it from trying to start | |
ShadowApplication shadowApplication = Robolectric.shadowOf(Robolectric.application); | |
shadowApplication.declareActionUnbindable("com.google.android.gms.analytics.service.START"); |
OlderNewer