A basic HTML bar chart with log scale.
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
<div class="contenzone"> | |
<div class="titlebar"> | |
<a href="aazeae">qsdqsd</a> | |
</div> | |
</div> | |
<div id="loggedout"> | |
<a id="connectLink" href="#">Connect To Trello</a> | |
</div> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>demo</groupId> | |
<artifactId>maven-scala-java</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<description>Hybrid project with java + scala sources</description> | |
<properties> | |
<scala.version>2.10.4</scala.version> |
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.awt.GraphicsEnvironment | |
import java.awt.Rectangle | |
import java.awt.Robot | |
import java.awt.image.BufferedImage | |
import java.io.File | |
import java.nio.ByteBuffer | |
import java.util.ArrayList | |
import java.util.Arrays | |
import scala.Array.canBuildFrom |
Pas donné les nouveaux logements ! http://couree-des-mousquetaires.com/appartements-lille/lot-102
http://bl.ocks.org is a simple Gist viewer for HTML/JavaScript examples.
https://github.com/mbostock/bl.ocks.org
Sample gist : https://gist.github.com/mbostock/eec4a6cda2f573574a11 My blocks : http://bl.ocks.org/tyrcho
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 breeze.linalg._ | |
import scala.collection.mutable.Map | |
object FrequencyTable extends App { | |
val lines = io.Source.fromFile("t:/frequency.csv").getLines.take(10000000).toList ++ | |
(List("washington", "taxes", "treasury") map { w => s"test,$w,1" }) | |
val docs = Map.empty[String, Int] | |
val words = Map.empty[String, Int] | |
var docCount = -1 | |
var wordCount = -1 |
Open with scala-js-fiddle for a demo
Implementation of Hearthstone mulligans with scala-js-fiddle.
Examples
- There are 2 important cards in a deck, but you don't keep them in the mulligan phase (let's say 2 Doomguards in zoo). What is the probability to have at least one in hand at a given turn, if the player did not start the game ?
- You think an opponent plays one Sylvanas. You started the game. What is the probability he has drawn it, assuming he does not keep it in the mulligans ?
- You play 4 acceleration (Innervate, Wild Growth) cards. By mulliganing everything except those, what is the probability to have exactly one in starting hand ?
OlderNewer