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
class CrazyLoader(classHandler: ClassHandler) extends RobolectricClassLoader(classHandler) { | |
override def loadClass(name: String): Class[_] = { | |
if(name.contains("BaseShimRunner")) { | |
getParent.loadClass(name) | |
} else { | |
super.loadClass(name) | |
} | |
} | |
} |
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
package com.wtfware.disperse | |
import org.specs2.mutable._ | |
import providers.BigWidgetProvider | |
import org.specs2.mock.Mockito | |
import android.content.Context | |
import android.appwidget.AppWidgetManager | |
import org.mockito.Matchers.{anyInt, argThat, eq => isEq } | |
import test.runner.RoboRunner | |
import android.widget.RemoteViews |
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
package com.wtfware.disperse.test.runner | |
import org.specs2.mutable.Specification | |
import com.xtremelabs.robolectric.bytecode.{ShadowWrangler, RobolectricClassLoader} | |
import android.net.Uri__FromAndroid | |
import com.xtremelabs.robolectric.internal.RealObject | |
import android.R | |
import com.xtremelabs.robolectric.shadows.ShadowApplication | |
import com.xtremelabs.robolectric.{ApplicationResolver, Robolectric, RobolectricConfig} | |
import com.xtremelabs.robolectric.res.ResourceLoader |
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
Index: src/Net.Sf.Dbdeploy/Database/DatabaseSchemaVersionManager.cs | |
=================================================================== | |
--- src/Net.Sf.Dbdeploy/Database/DatabaseSchemaVersionManager.cs (revision 49) | |
+++ src/Net.Sf.Dbdeploy/Database/DatabaseSchemaVersionManager.cs (working copy) | |
@@ -120,6 +120,7 @@ | |
{ | |
StringBuilder builder = new StringBuilder(); | |
+ builder.AppendLine(DbmsSyntax.GenerateStatementDelimiter()); | |
builder.AppendLine("UPDATE " + TableName + " SET complete_dt = " |
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
Index: scripts/createSchemaVersionTable.mssql.sql | |
=================================================================== | |
--- scripts/createSchemaVersionTable.mssql.sql (revision 49) | |
+++ scripts/createSchemaVersionTable.mssql.sql (working copy) | |
@@ -2,7 +2,7 @@ | |
GO | |
CREATE TABLE changelog ( | |
- change_number INTEGER NOT NULL, | |
+ change_number BIGINT NOT NULL, |
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
# Set prefix command to Control-\ | |
unbind-key C-b | |
set -g prefix C-\ | |
# C-\ C-\ jumps to the last open window | |
bind-key C-\ last-window | |
# C-\ C-\ cycles among panes | |
# bind C-\ select-pane -t :.+ |
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
<activity android:label="@string/app_name" android:name=".activities.GameActivity"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW"/> | |
<category android:name="android.intent.category.DEFAULT"/> | |
<category android:name="android.intent.category.BROWSABLE"/> | |
<data android:host="android.nevercertain.com" android:scheme="http" android:port="8000" android:pathPrefix="/game"/> |
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
<resources> | |
<style name="fill"> | |
<item name="android:layout_width">fill_parent</item> | |
<item name="android:layout_height">fill_parent</item> | |
</style> | |
<style name="wrap"> | |
<item name="android:layout_width">wrap_content</item> | |
<item name="android:layout_height">wrap_content</item> | |
</style> |
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 java.io.{FileOutputStream, BufferedWriter, OutputStreamWriter} | |
trait Logging { | |
def log(msg: String) { | |
val writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("/tmp/scant_proc.log", true))) | |
writer.write(msg) | |
writer.write("\n") | |
writer.flush() | |
writer.close() | |
} |
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.specs2.mutable.Specification | |
class PathfinderSpecs extends Specification { | |
val easyMap = """ | |
..... | |
..... | |
..... | |
..... | |
..... | |
..... |