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
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: test.scala | |
import scala.Predef$; | |
import scala.ScalaObject; | |
import scala.actors.Actor; | |
import scala.runtime.BoxesRunTime; | |
import scala.runtime.IntRef; |
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
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.kpdus.com/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: test.scala | |
import java.io.Serializable; | |
import scala.*; | |
import scala.actors.Actor; | |
import scala.actors.ReplyReactor; | |
import scala.collection.Iterator; |
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
scala> 1 to 5 toList | |
res0: List[Int] = List(1, 2, 3, 4, 5) | |
scala> (res0,res0.tail)zip | |
res1: List[(Int, Int)] = List((1,2), (2,3), (3,4), (4,5)) |
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._ | |
import java.net.URL | |
import scala.collection.mutable | |
def post( url:String,header:Map[String,String] = Map() ,param:Map[String,String] = Map() ):Seq[Byte] = { | |
val uc = new URL(url).openConnection | |
uc.setDoOutput(true) | |
header.foreach{case (key,value) => |
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
interface Func<A, B> { | |
B apply(A param); | |
} | |
class イカ言語<侵略> { | |
public イカ言語(侵略 ピコピコ) { | |
this.ピコピコ = ピコピコ; | |
} |
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
class イカ言語<侵略>{ | |
public イカ言語(侵略 ピコピコ){ | |
this.ピコピコ = ピコピコ; | |
} | |
private 侵略 ピコピコ; | |
public イカスミ の<イカスミ>(Func<侵略,イカスミ> 触手){ | |
return 触手(ピコピコ); | |
} | |
public イカスミ に<イカスミ>(Func<侵略,イカスミ> 触手){ |
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
\scala\Array.scala | |
31,3 implicit def fallbackCanBuildFrom[T](implicit m: DummyImplicit): CanBuildFrom[Array[_], T, ArraySeq[T]] = | |
44,3 implicit def canBuildFrom[T](implicit m: ClassManifest[T]): CanBuildFrom[Array[_], T, Array[T]] = | |
53,21 def newBuilder[T](implicit m: ClassManifest[T]): ArrayBuilder[T] = ArrayBuilder.make[T]()(m) | |
\scala\Either.scala | |
56,38 def joinRight[A1 >: A, B1 >: B, C](implicit ev: B1 <:< Either[A1, C]): Either[A1, C] = this match { | |
64,37 def joinLeft[A1 >: A, B1 >: B, C](implicit ev: A1 <:< Either[C, B1]): Either[C, B1] = this match { | |
110,3 implicit def either2mergeable[A](x: Either[A, A]): MergeableEither[A] = new MergeableEither(x) | |
\scala\Enumeration.scala | |
270,5 implicit def canBuildFrom: CanBuildFrom[ValueSet, Value, ValueSet] = |
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 atndscala | |
import org.scala_tools.time.Imports._ | |
import scala.xml._ | |
import scala.util.control.Exception._ | |
//とりあえずeventのsearchの方はできた? | |
object ATND{ |
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
// 以前書いたもの ↓ を書きなおしてみた | |
// http://d.hatena.ne.jp/xuwei/20100612/1276318733 | |
import java.io.File | |
type Files = List[File] | |
type FilesPair = (Files,Files) | |
def Y[A,B](f:((A => B),A) => B,x:A):B = f((y:A) =>Y(f,y),x) | |
/** あるディレクトリ以下のファイルを再帰的に取得する関数 | |
* @param dir 基準となるディレクトリ |
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 scala.io.Source | |
import scala.util.parsing.combinator._ | |
import scala.util.parsing.input.{Position, NoPosition} | |
object Main{ | |
//yuroyoroさんのProgramGeneratorを使用しています。 | |
//https://github.com/yuroyoro/ProgramGenerator | |
sealed abstract class Insn extends ( CED => CED ){ |
OlderNewer