Skip to content

Instantly share code, notes, and snippets.

View gkossakowski's full-sized avatar
🎯
Focusing

Grzegorz Kossakowski gkossakowski

🎯
Focusing
View GitHub Profile
[svn-remote "svn"]
url = https://svn.eu.apache.org/repos/asf
fetch = cocoon/trunk:refs/remotes/trunk
branches = cocoon/branches/*:refs/remotes/*
tags = cocoon/tags/*:refs/remotes/tags/*
rewriteRoot = https://svn.eu.apache.org/repos/asf/cocoon
grek@linux-p3yg:~/asf/git/infrastructure/apache-git-mirrors/bin> git --version
git version 1.6.1.3
grek@linux-p3yg:~/asf/git/infrastructure/apache-git-mirrors/bin> ls -l
razem 40
-rwxr-xr-x 1 grek users 773 mar 7 16:47 create-repo.sh
-rwxr-xr-x 1 grek users 3219 mar 7 16:50 email-update.sh
-rwxr-xr-x 1 grek users 3219 mar 7 16:50 email-update.sh.orig
-rwxr-xr-x 1 grek users 2086 mar 7 16:47 move-svn-project.sh
-rwxr-xr-x 1 grek users 1464 mar 7 16:47 update-authors.sh
-rwxr-xr-x 1 grek users 156 mar 6 16:16 update-daily.sh
package surveys.SubjectCategories
import surveys.SurveyClasses.Subject
trait Category {
def contains(x: Subject): Boolean
protected def byPrefix(xs: Set[String]): Subject => Boolean =
x => xs map (x.code startsWith _) exists identity
}
package surveys.SubjectCategories
import surveys.SurveyClasses.Subject
trait Category {
def contains(x: Subject): Boolean
protected def byPrefix(xs: Set[String]): Subject => Boolean =
x => xs map (x.code startsWith _) exists identity
val name: String
mac-grek:stephen grek$ git clone git://github.com/stephenh/scalagwt-sample.git
Cloning into scalagwt-sample...
remote: Counting objects: 570, done.
remote: Compressing objects: 100% (268/268), done.
remote: Total 570 (delta 210), reused 539 (delta 179)
Receiving objects: 100% (570/570), 202.79 MiB | 856 KiB/s, done.
Resolving deltas: 100% (210/210), done.
mac-grek:stephen grek$ ant gwtc
Buildfile: build.xml does not exist!
Build failed
@gkossakowski
gkossakowski / gist:1111177
Created July 28, 2011 07:57
Showcase diff between scalagwt-sample fork and gwt trunk
diff --git a/src/com/google/gwt/sample/showcase/Showcase.gwt.xml b/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
index 180e2a8..6dad235 100644
--- a/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
+++ b/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
@@ -4,9 +4,7 @@
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.google.gwt.i18n.I18N"/>
<inherits name="com.google.gwt.i18n.CldrLocales"/>
- <inherits name="com.google.gwt.user.theme.standard.StandardResources"/>
- <inherits name="com.google.gwt.user.theme.chrome.ChromeResources"/>
+ <target name="quick.jdk2ikvm" depends="quick.pre-jdk2ikvm" unless="quick.jdk2ikvm.available">
+ <stopwatch name="quick.jdk2ikvm.timer"/>
+ <mkdir dir="${build-quick.dir}/classes/jdk2ikvm-plugin"/>
+ <scalacfork
+ destdir="${build-quick.dir}/classes/jdk2ikvm-plugin"
+ compilerpathref="locker.classpath"
+ params="${scalac.args.quick}"
+ srcdir="${src.dir}/jdk2ikvm/src"
+ jvmargs="${scalacfork.jvmargs}">
+ <include name="**/*.scala"/>
@gkossakowski
gkossakowski / gist:1122698
Created August 3, 2011 13:58
Errors when compiling Scala library due to dependencies on things GWT doesn't support.
grek-imac:scalagwt-scala grek$ ant
Buildfile: /Users/grek/scalagwt/scalagwt-scala/build.xml
[echo] Forking with JVM opts: -Xms1536M -Xmx1536M -Xss1M -XX:MaxPermSize=192M -XX:+UseParallelGC
init:
[echo] Build number is '2.10.0.r-b20110803155636'
[echo] Built 3 August 2011, 15:56:36 from revision with Java HotSpot(TM) 64-Bit Server VM 1.6.0_26
locker.start:
@gkossakowski
gkossakowski / FactoryManifests.scala
Created August 11, 2011 11:19
Scala Manifests without reflection.
package scala.tools.nsc
package backend.jribble
import scala.collection.mutable
import scala.tools.nsc.transform.{Transform, TypingTransformers}
/**
* Implements 'factorymanifests' compiler phase that provides alternative implementation of
* Manifests that use static factories for Array creation.
*
* Canonical Manifest implementation in Scala uses reflection for generic Array creation.
scalacfork] error: java.lang.AssertionError: assertion failed: Failure to lift variable i
[scalacfork] at scala.Predef$.assert(Predef.scala:102)
[scalacfork] at scala.tools.nsc.transform.UnCurry$$anon$1.traverse(UnCurry.scala:795)
[scalacfork] at scala.tools.nsc.transform.UnCurry$$anon$1$$anonfun$traverse$2.apply(UnCurry.scala:782)
[scalacfork] at scala.tools.nsc.transform.UnCurry$$anon$1$$anonfun$traverse$2.apply(UnCurry.scala:778)
[scalacfork] at scala.Tuple2$Zipped$$anonfun$foreach$1.apply(Tuple2.scala:127)
[scalacfork] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
[scalacfork] at scala.collection.immutable.List.foreach(List.scala:45)
[scalacfork] at scala.Tuple2$Zipped.foreach(Tuple2.scala:125)
[scalacfork] at scala.tools.nsc.transform.UnCurry$$anon$1.traverse(UnCurry.scala:778)