Entries from 2012-01-01 to 1 month
scala.Consoleã使ãã¨æåã«è²ãã¤ãããã¨ãã§ãã¾ãã import scala.Console._ println(BLUE + "å" + RESET + "ã¯" + CYAN + "åé" + RESET + RED_B + "ã" + YELLOW + "å°" + RESET + RED_B + "ãªã" + RESET) RESETä»ããªãã¨ãã®å¾ã®åºåããã£ã¨ãâ¦
Unfiltered ã使ãã¨ãã«å¿ è¦ã«ãªãã®ã§ããããã¢ä¾¿å©ã§ã ã¡ãã£ã¨ãã¹ããã¼ã¿ãå®ç¾©ãã¾ããã case class Person(name: String, age: Int, height: Int) val tanaka = Person("tanaka", 16, 170) ç°ä¸åã¯16æã§170cmã§ãã ç°ä¸å㯠case class ã¨ãã¦â¦
knockoff ã使ãã°Markdownãç°¡åã«HTMLã«å¤æã§ãã¾ãã HTMLã®æååã¨ãã¦ã§ã¯ãªããScalaã®ãªãã¸ã§ã¯ã(scala.xml.Node)ã«å¤æããã®ã§ä½¿ãåæãè¯ãã§ãã pamflet ã picture-show ã knockoff ã使ã£ã¦ãã¾ãã 使ãæ¹ knockoff ã㦠toXML, toXHTMâ¦
æé unfilteredã§ã¢ããªãä½ã web.xmlãæ¸ã xsbt-web-pluginã§warã«ãã tomcatã«ããã㤠unfilteredã§ã¢ããªãä½ã "Hello"ã£ã¦è¿ãã ãã®ã¢ããªãä½ãã¾ãã Unfiltered ã§ã¯ Plan ã£ã¦ã®ãä½ã£ã¦ URL ã®ã«ã¼ãã£ã³ã°ããã¾ãã package com.github.toâ¦
ãã¼ã¸ã£ã¨ãã¦ã¯ã¿ãªããlessã ã®lvã ã®ä½¿ã£ã¦ããã¨æãã¾ãããw3mã使ãã¨ã¡ãã£ã¨ä¾¿å©ã§ããw3mã«ã¤ãã¦ã¯ man w3m ãã¦ãã ããã æ¤ç´¢çµæãããã¡ã¤ã«ã«ç´æ¥é£ã¹ãããã¾ãã ãã®åç»ã§ã¯æ¬¡ã®ãããªã lw ã¨ããåç´ãªã·ã§ã«é¢æ°ãå®ç¾©ãã¦ä½¿ã£ã¦ãâ¦
æã¤ã¶ããããã©ããã°ã«ã¯ã¾ã æ¸ãã¦ããªãã£ãã£ã½ãã getoptçãªãã®ã¯ãªã(ããï¼)ã ã³ãã³ãã©ã¤ã³ãã¼ã¹ãã¦ãããã©ã¤ãã©ãªãããã£ã¡ãããã£ã½ãããã© ããã§å åãããªããã¨æã£ã¦ãã ãã¤ã³ã㯠Array[String]ãList[String]ã«å¤æãã¦ããâ¦
ScalaãJavaãEmacsã§æ¸ãã¦ã¾ããScalaã¯ã¨ãããJavaã¯ã¤ããã ã¤ãããã©ã yasnippet(Javaã¯åé·ããã¦yasnippetã楽ãã)㨠anything(importè£å®elispã¨ãæ¸ãã¦ã)㨠malabar-mode(ããã)ã¨ããããã®ã§çãã¦ã¾ãã ãã¨èªåã³ã³ãã¤ã«ã¯inotify+whâ¦
åè: JSON Support | Lift Project | Assembla Scalaæ¨æºã«ãjsonãã¼ãµã¨ãããã¾ãããlift-jsonã®ã»ãã人æ°ã åºç¤ç¥è A central concept in lift-json library is JSON AST (Abstract Syntax Tree) which models the structure of a JSON document asâ¦
ScalaQueryã§ã¯ã«ã©ã ã®ãªãã·ã§ã³ã"O ã»ã«ããã"ã¨ããå½¢ã§æå®ãã¾ãã O NotNullã¨ãO PrimaryKeyã¨ãã https://github.com/szeiger/scala-query/blob/0.9.5/src/main/scala/org/scalaquery/ql/basic/BasicTable.scala#L12 https://github.com/szeigerâ¦
Scalaã§XMLããè¦ç´ ãæãåºãæ¹æ³ã«ã¤ãã¦ã // ãã¹ããã¼ã¿ val html = <html> <head> <title> </title> </head> <body> <ul> <li>akemashite</li> <li>omedetou</li> </ul> <div id="container"> <div class="contents"> <span class="foo">happy</span> <span class="foo">new</span> <span class="foo">year</span> </div> </div> </body></html>