A basic HTML bar chart with log scale.
This file contains hidden or 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
object FriendNumbers extends App { | |
def sumOfDivisors(n: Int) = | |
(for { | |
i <- 1 to Math.sqrt(n).toInt | |
if n % i == 0 | |
} yield i + n / i).sum | |
val friendGroups = (1 to 10000).groupBy(sumOfDivisors).filter(_._2.size > 1).toList.sortBy(_._1) | |
println(friendGroups) | |
} |
This file contains hidden or 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 facets | |
object FriendsWithFacets extends App { | |
type Property = Facet[Int, Int] | |
val sumOfDivisors = (n: Int) => | |
(for { | |
i <- 1 to Math.sqrt(n).toInt | |
if n % i == 0 | |
} yield i + n / i).sum |
This file contains hidden or 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 hidden or 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 hidden or 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
Sample on how to publish a catalog or other HTML page using strapdown.js
Uses CoffeScript, strapdown and Masonry
Can be seen live : http://bl.ocks.org/tyrcho/raw/64e9edee0a2080eeace0/
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