Skip to content

Instantly share code, notes, and snippets.

View banshee's full-sized avatar

James Moore banshee

View GitHub Profile
Script started on Tue Feb 26 22:24:35 2013
+ rm -rf /Users/james/tmp/scalatest-build-ecosystem
+ build scala-ide-2.1-m3 http://download.scala-ide.org/ecosystem/next/e37/scala29/dev/base/ 2.9.3-RC2 e37-scala29-m3 http://download.eclipse.org/releases/indigo/
+ cd /Users/james/src/scalatest-eclipse-plugin
+ mvn -Pset-versions -Pscala-ide-2.1-m3 -Drepo.scala-ide=http://download.scala-ide.org/ecosystem/next/e37/scala29/dev/base/ -Dscala.version=2.9.3-RC2 -Drepo.eclipse=http://download.eclipse.org/releases/indigo/ -Dtycho.style=maven --non-recursive exec:java
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build project for the scalatest support in Scala IDE 2.9.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
@banshee
banshee / gist:4408249
Created December 29, 2012 17:38
ValidationNEL scalatest matcher
Multiple markers at this line
- overloaded method value should with alternatives: (haveWord: ProguardConfigurationGenerationTest.this.HaveWord)(implicit ev:
ProguardConfigurationGenerationTest.this.Extent[scalaz.ValidationNEL[String,String]])ProguardConfigurationGenerationTest.this.ResultOfHaveWordForExtent[scalaz.ValidationNEL[String,String]] <and> (beWord:
ProguardConfigurationGenerationTest.this.BeWord)ProguardConfigurationGenerationTest.this.ResultOfBeWordForAnyRef[scalaz.ValidationNEL[String,String]] <and> (notWord:
ProguardConfigurationGenerationTest.this.NotWord)ProguardConfigurationGenerationTest.this.ResultOfNotWordForAnyRef[scalaz.ValidationNEL[String,String]] <and> (rightMatcher: org.scalatest.matchers.Matcher[scalaz.ValidationNEL[String,String]])Unit cannot be applied to (scalaz.ValidationNEL[String,String] =>
org.scalatest.matchers.MatchResult)
- overloaded method value should with alternatives: (haveWord: ProguardConfigurationGenerationTest.this.HaveWord)(implicit ev:
ProguardC
@banshee
banshee / gist:3057175
Created July 5, 2012 23:47
for stackoverflow question
/***
Copyright (c) 2008-2012 CommonsWare, LLC
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 distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.
@banshee
banshee / gist:3054567
Created July 5, 2012 16:08
Tests for the Java signature parser
package com.restphone.parser.test
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Spec
import org.scalatest.FunSuite
import scala.collection.mutable.Stack
import com.google.common.collect._
import com.google.common.collect.Ranges
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@banshee
banshee / gist:3054552
Created July 5, 2012 16:04
A parser for Java signatures using Scala parser combinators
package com.restphone.parser
import scala.util.parsing.combinator._
// This parser uses the grammar from section 4.1.1 of the
// ASM 4.0: A Java bytecode engineering library
// documentation.
//
// Here's the gist of it:
// TypeSignature: Z | C | B | S | I | F | J | D | FieldTypeSignature
@banshee
banshee / gist:3054273
Created July 5, 2012 15:14
Using maven as a fancy wget/curl
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>GuavaExtensions</groupId>
<artifactId>guavaExtensions</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
@banshee
banshee / gist:1650359
Created January 21, 2012 00:05
full console output for scala ide problem
2012-01-20 15:44:51.477 java[12698:903] -[NSView clearDeferFlushing]: unrecognized selector sent to instance 0x100105a90
!SESSION 2012-01-20 15:44:42.874 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.platform.ide
Command-line arguments: -product org.eclipse.platform.ide -data /Users/james/workspace/../runtime-EclipseApplication(1) -dev file:/Users/james/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application (1)/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog
!ENTRY org.eclipse.core.net 1 0 2012-01-20 15:44:53.320
@banshee
banshee / gist:1102951
Created July 24, 2011 19:08
logcat output for failing Samsung Galaxy Tab 10.1 boot
D/ActivityThread( 821): Loading provider settings: com.android.providers.settings.SettingsProvider
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = cannot open file at line 26528 of [8609a15dfa], db=/data/system/accounts.db
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = os_unix.c: open() at line 26528 - "" errno=30 path=/data/data/com.android.providers.settings/databases/settings.db-shm, db=/data/system/accounts.db
I/SqliteDatabaseCpp( 821): sqlite returned: error code = 14, msg = unable to open database file, db=/data/system/accounts.db
E/SqliteDatabaseCpp( 821): CREATE TABLE android_metadata failed
E/SQLiteDatabase( 821): Failed to open the database. closing it.
E/SQLiteDatabase( 821): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file
E/SQLiteDatabase( 821): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
E/SQLiteDatabase( 821): at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.ja
E/AndroidRuntime(31495): java.lang.NoClassDefFoundError: com.banshee.TimeEventBus^M
E/AndroidRuntime(31495): at com.banshee.BansheeAndroidGuiceModule.configure(BansheeAndroidGuiceModule.java:76)^M
E/AndroidRuntime(31495): at com.google.inject.AbstractModule.configure(AbstractModule.java:59)^M
E/AndroidRuntime(31495): at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)^M
E/AndroidRuntime(31495): at com.google.inject.spi.Elements.getElements(Elements.java:101)^M
E/AndroidRuntime(31495): at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)^M
E/AndroidRuntime(31495): at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.java:95)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.java:72)^M
E/AndroidRuntime(31495): at com.google.inject.Guice.createInjector(Guice.
boolean fnord = 3 > 3;