 
  
  This blog post came into being after a few discussions about Types in Scala after some of JavaOne’s parties in 2013. After those discussions I figured that many questions are often repeated by different people, during their learning of Scala. I though that we didn’t have a full list of all tricks what we can to with Types in Scala, so I decided to write such a list - giving real life examples why
Hands-on Scala.js Writing client-side web applications in Scala var x = 0.0 type Graph = (String, Double => Double) val graphs = Seq[Graph]( ("red", sin), ("green", x => abs(x % 4 - 2) - 1), ("blue", x => sin(x/12) * sin(x)) ).zipWithIndex dom.window.setInterval(() => { x = (x + 1) % w; if (x == 0) clear() for (((color, f), i) <- graphs) { val offset = h / 3 * (i + 0.5) val y = f(x / w * 75) * h /
 
      
  Of course I realize all types do have a common ancestor, but what I mean is this: In dynamically-typed languages, it is a common practice to have 'mixed' return types. A common case is a function which attempts to retrieve data from a database, then returns either an object (initialized with the found data) or FALSE (in the event no data was found). A little pseudocode to demonstrate just such an
 
      
  val credentials = new BasicAWSCredentials(アクセスキーキー, シークレットキー) val s3Client = new AmazonS3Client(credentials) val localFilePath = "ローカルのファイルパス" val s3BucketName = "バケット名" val s3FilePath = "S3のアップロード先のパス" val upReq = new PutObjectRequest(s3BucketName, s3FilePath, localFile) s3Client.putObject(upReq) val credentials = new BasicAWSCredentials(アクセスキーキー, シークレットキー) val s3Client = new AmazonS3Client(crede
 
      
  AI-driven Newsletter Welcome to the latest edition of Last month in AI! September turned into AI’s funding frenzy month: record-breaking raises hit the double-digit billions, frontier labs shipped trillion-parameter models, and, because this is 2025, companies started measuring data centers in gigawatts instead of GPUs.Also, NVIDIA invented a GPU co-processor, and xAI accused OpenAI of […]
 
      
  Пинап - топовое онлайн-казино с 2016 года для игроков СНГ. Номер лицензии: №8048/JAZ2018-014 Более 5000 игровых автоматов различных тематик такие как Lucky Streak 3, Bonanza Billion, Aviatrix от ведущих провайдеров (Endorphina, Igrosoft, Play n GO, Playtech, Yggdrasil). Игра на ПК, смартфоне, демо-режим для новичков. Надежные платежные системы (МИР, Visa, Mastercard, Piasrrix, Neteller, Skrill, As
Since at Codacy we chose Scala to build our infrastructure, it’s important that we provide resources for learning Scala to our engineers (not all the engineers that we hire are Scala experts). Scala isn’t hard to learn, and good engineers usually pick it up very quickly. Here is a compiled list of Scala resources to kickstart your Scala learning. Online Resources Functional Programming Principles
 
      
  はじめに 前回の Advent Calendar の投稿では, 簡単に Dataproc の特徴について説明を行いましたが、今回は, 実際に Dataproc を使ったレコメンドシステムの実装について解説したいと思います。 実装するシステムの概要 【追記】 下記では、BigQuery から直接読み込む実装にしていますが、データ量が大きい場合(数百MB以上)は、テキストデータに比べて読み込みに大幅に時間がかかるため、BigQuery から GCS へ一旦エクスポートし、CSVファイルとして読み込むことをお勧めします。 本投稿では、ユーザーのアイテムに対するLikeや閲覧履歴から、ユーザーに対してアイテムをレコメンドするシステムを実装します。ライブラリとしては、Matrix Factorization を Alternating Least Square という手法で計算するライブラリを使って
 
      
  Java, SQL and jOOQ. Best Practices and Lessons Learned from Writing Awesome Java and SQL Code. Get some hands-on insight on what's behind developing jOOQ. There are a tremendous amount of SQL APIs natively written in Scala. Manuel Bernhardt has summarised a nice collection in his a post. Another collection of Scala SQL APIs can be seen in this Stack Overflow question. One API that we want to focus
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 14.10, “How to use Scala as a scripting language.” Problem You want to use Scala as a scripting language on Unix systems, replacing other scripts you’ve written in a Unix shell (Bourne Shell, Bash), Perl, PHP, Ruby, etc. Solution Save your Scala code to a text file, making sure the first three lines of
Darren Wilkinson's blog Statistics, computing, functional programming, data science, Bayes, stochastic modelling, systems biology and bioinformatics Menu and widgets There has been a lot of discussion on-line recently about languages for data analysis, statistical computing, and data science more generally. I don’t really want to go into the detail of why I believe that all of the common choices a
 
      
  リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
