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 code.webapp | |
import scala.collection.JavaConversions.seqAsJavaList | |
import org.apache.wicket.behavior.AttributeAppender | |
import org.apache.wicket.datetime.markup.html.form.DateTextField | |
import org.apache.wicket.extensions.validation.validator.RfcCompliantEmailAddressValidator | |
import org.apache.wicket.markup.html.basic.{ MultiLineLabel, Label } | |
import org.apache.wicket.markup.html.form.{ TextField, TextArea, SubmitLink, RadioGroup, Radio, PasswordTextField, FormComponent, Form, DropDownChoice, CheckGroup, Button } | |
import org.apache.wicket.markup.html.link.{ Link, BookmarkablePageLink } | |
import org.apache.wicket.markup.html.link.ExternalLink |
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
object SourceCode{ | |
val browser = """ "C:\Documents and Settings\scalaちゃん\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" """ | |
val srcURL = "https://lampsvn.epfl.ch/trac/scala/browser/scala/tags/R_2_8_1_final/src//library/" | |
def apply(clazz:Class[_]){ | |
val url = srcURL + clazz.getName.replace('.','/') + ".scala#L1" | |
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.File | |
import sbt._ | |
import de.element34.sbteclipsify._ | |
class Project(info: ProjectInfo) extends ParentProject(info) with IdeaProject { | |
//lazy val mavenLocal = "Local Maven Repository" at "file://"+Path.userHome+"/.m2/repository" | |
lazy val geotoolsRepository = "Open Source Geospatial Foundation Repository" at "http://download.osgeo.org/webdav/geotools/" | |
lazy val javanetRepository = "Java.net Repository" at "http://download.java.net/maven/2" | |
lazy val iglootoolsRepository = "Iglootools Releases Repository" at "http://developers.sirika.com/maven2/releases/" |
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
githubへ登録 | |
=========== | |
git remote add origin git@github.com:<username>/<application_name>.git | |
git push origin master | |
初期設定 | |
======= | |
git config --global user.name "Foo Bar" | |
git config --global user.email "foo@bar.com" |
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
{-# LANGUAGE PatternGuards #-} | |
{-# LANGUAGE ViewPatterns #-} | |
module ViewPatterns where | |
import Data.List | |
data EMail = EMail User Domain deriving Show | |
type User = String | |
type Domain = String | |
view :: String -> Maybe EMail |
NewerOlder