環境:Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
これは動く
import scala.util.matching.Regex
import Regex._
val s = "hoge:1000\tfuga:2000"| var dformat = function(d){ | |
| var utc = d.getTime() + (d.getTimezoneOffset() * 60000); | |
| var date = new Date(utc); | |
| var tos = function(t){ | |
| if(t < 10) return "0" + t; | |
| return "" + t; | |
| } | |
| var y = tos(date.getFullYear()); | |
| var M = tos(date.getMonth() + 1); | |
| var d = tos(date.getDate()); |
| ruby -v | |
| ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin11.4.2] | |
| gem list | |
| *** LOCAL GEMS *** | |
| chunky_png (1.2.7) | |
| compass (0.12.2) | |
| fssm (0.2.10) |
node v10.22 (2013/12/16)
brew install node
brew install rbenv ruby-build rbenv-gemset
# see: brew info rbenv
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc.local
| // play-jsonをフツーのプロジェクトでも使いたいサンプル | |
| name := "hello" | |
| version := "1.0" | |
| scalaVersion := "2.10.3" | |
| resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" |
scalacOptions ++= Seq("-deprecation", "-encoding", "UTF-8")
initialCommands in console := """println("***** Console Start! *****")"""http://d.hatena.ne.jp/xuwei/archive?word=*%5Bsbt%5D
http://xerial.org/scala-cookbook/recipes/2012/06/28/create-a-scala-project/
https://gist.github.com/4334482
p.37 コンパイル時の警告とか
{-# OPTIONS -Wall -Werror #-}http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.html から
テキトーにDLしてscpで送り込むとか
chmod a+x jdk-6u37-linux-x64-rpm.bin
./jdk-6u37-linux-x64-rpm.bin
#必要に応じてパス追加 /etc/profile 末尾とか
| upstream rc { | |
| server 127.0.0.1:5000; | |
| # add more instances for load balancing | |
| #server 127.0.0.1:5001; | |
| #server 127.0.0.1:5002; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost; |