- A modern, statically typed programming language built upon the Java ecosystem
- Elegant mix of object orientation and functional programming paradigms
- Designed to be used by real developers, solving real-world problems
- Runs on the JVM, providing full interoperability with Java APIs
- By Martin Odersky, author of the modern `javac` compiler
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
"More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason-including blind stupidity." | |
--W. A. Wulf |
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
#!/bin/bash | |
# Poor man's resource compiler | |
# Converts given file into compilable byte stream via | |
# C code header and implementation files. | |
# Based on original by http://www.linuxjournal.com/users/mitch-frazier | |
# | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: $0 FILENAME" | |
exit 1 |
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
<!-- Fragment from an Ant build.xml file for creating a disk image with bells and whistles. --> | |
<property name="dmgname" value="${build.dir}/install-${name}.dmg" /> | |
<property name="tmpdmg" value="/tmp/${app.name}-installer-tmp.dmg" /> | |
<property name="volname" value="${app.name}-${VERSION}-Install" /> | |
<delete file="${tmpdmg}" quiet="yes" failonerror="false" /> | |
<!-- Create the temporary image --> | |
<echo>Making initial image...</echo> |
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.BorderLayout; | |
import java.awt.GridLayout; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.KeyEvent; | |
import java.io.File; | |
import javax.swing.*; | |
import javax.swing.filechooser.FileNameExtensionFilter; |
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
Process: java [98221] | |
Path: /usr/bin/java | |
Identifier: com.apple.javajdk16.cmd | |
Version: 1.0 (1.0) | |
Code Type: X86-64 (Native) | |
Parent Process: eclipse [8499] | |
User ID: 224742261 | |
PlugIn Path: /Users/USER/*/libvtkFiltering.5.10.dylib | |
PlugIn Identifier: libvtkFiltering.5.10.dylib |
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
# This is the CMakeCache file. | |
# For build in directory: /CODE/VTK6.0.0 | |
# It was generated by CMake: /usr/local/Cellar/cmake/2.8.10.1/bin/cmake | |
# You can edit this file to change values found and used by cmake. | |
# If you do not want to change any of the values, simply exit the editor. | |
# If you do want to change a value, simply edit, save, and exit the editor. | |
# The syntax for the file is as follows: | |
# KEY:TYPE=VALUE | |
# KEY is the name of a variable in the cache. | |
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. |
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
JFX.devKit := { | |
System.getProperty("os.name").toLowerCase match { | |
case w if w.startsWith("win") => JFX.jdk("C:/Program Files/Java/jdk1.7.0_25") | |
case _ => JFX.jdk(javaHome.value.toString) | |
} | |
} |
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 eri; | |
import scala.collection.Iterator; | |
import scala.collection.JavaConversions; | |
import scala.collection.Seq; | |
import scala.reflect.internal.util.BatchSourceFile; | |
import scala.reflect.io.AbstractFile; | |
import scala.runtime.AbstractFunction1; | |
import scala.runtime.BoxedUnit; | |
import scala.tools.nsc.GenericRunnerSettings; |
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.annotation.tailrec | |
object controls { | |
def repeat(body: => Unit) = new { | |
@tailrec | |
def until(condition: => Boolean) { | |
body | |
if (condition) () else until(condition) | |
} |
OlderNewer