Skip to content

Instantly share code, notes, and snippets.

View timperrett's full-sized avatar
🚧

Timothy Perrett timperrett

🚧
View GitHub Profile
[INFO] ------------------------------------------------------------------------
[INFO] Building ueditscala
[INFO] task-segment: [clean, scala:compile]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /Users/timperrett/repositories/xmpie/xmpie-api4j/sites/lift-uedit-property/target
[INFO] [scala:compile]
[INFO] Checking for multiple versions of scala
[INFO] Compiling 7 source files to /Users/timperrett/repositories/xmpie/xmpie-api4j/sites/lift-uedit-property/target/classes
[WARNING] /Users/timperrett/repositories/xmpie/xmpie-api4j/sites/lift-uedit-property/src/main/scala/com/xmpie/example/property/snippet/Configurations.scala:31: warning: non variable type-argument String in type pattern is unchecked since it is eliminated by erasure
package com.example.snippet
import _root_.scala.xml.{NodeSeq}
import _root_.net.liftweb.util.Helpers._
import _root_.net.liftweb.http.SHtml
import _root_.net.liftweb.util.{Full,Box,Empty}
class HelloWorld {
var sex = "M"
val sex_map = Map("Male"->"M", "Female"->"F")
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>LiftFilter</filter-name>
<display-name>Lift Filter</display-name>
@import <AppKit/CPView.j>
@implementation PatternView : CPView
{
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:aFrame];
@import <AppKit/CPView.j>
@implementation PatternView : CPView
{
}
- (id)initWithFrame:(CGRect)aFrame
{
self = [super initWithFrame:aFrame];
<fo:block-container ucreate:layer-id="#b8"
left="90.7pt"
top="280.05pt"
width="292.218pt"
height="140.882pt"
role="graphic-dynamic">
<fo:block>
<fo:external-graphic src="url(/classpath/uedit/SampleImage.jpg)"
ucreate:fitting-mode="maintain-transformation:top-left, (0pt,140pt)"
content-height="234pt"
abstract class Foo[X](val value : X) { type T = X }
abstract class FooFactory[S <: Foo[_]](val P : (S#T) => boolean)
{
def apply(t : S#T) : Option[S] = if(P(t)) Some(fetch(t)) else None
def unapply(s : S) : Option[S#T] = if(s == null) None else Some(s.value)
def fetch(t : S#T) = mk(t)
object ValueTypes6
{
abstract class Type[T](val p : (T) => boolean)
{
sealed protected[Type] case class X[T] protected[Type] (val value : T)
type Type = X[T]
def apply(t : T) : Option[Type] = if(p(t)) Some(mk(t)) else None
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Cassidy 0.1
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/timperrett/repositories/scala/cassidy/resources
Downloading: http://scala-tools.org/repo-releases/commons-pool/commons-pool/1.5.1/commons-pool-1.5.1.pom
[INFO] Unable to find resource 'commons-pool:commons-pool:pom:1.5.1' in repository scala-tools.org (http://scala-tools.org/repo-releases)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XML-Schema-instance" xmlns="http://maven.apache.org/POM/4.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>se.foldleft</groupId>
<artifactId>cassidy</artifactId>
<packaging>jar</packaging>
<version>0.1</version>
<name>Cassidy 0.1</name>
<url>[email protected]/viktorklang/Cassidy.git</url>
<inceptionYear>2009</inceptionYear>