View install_mono.sh
$ yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget | |
$ cd /usr/local/src | |
$ wget http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2 | |
$ tar jxf mono-3.2.8.tar.bz2 | |
$ cd mono-3.2.8 |
View class_definition.js
/** Class Foo **/ | |
var Foo = (function () { | |
// Private variables | |
var private_number = 200 | |
/** class Constructor **/ | |
var Foo = function () { | |
this.bar = 0; | |
}; | |
/** class methods **/ | |
Foo.prototype = { |
View numbers.scala
def countSum(numbers: List[Int], expectedResult: Int): Int = { | |
countSumRecursively(numbers, 0, expectedResult); | |
} | |
def countSumRecursively(numbers: List[Int], currentResult: Int, expectedResult: Int): Int = { | |
if (currentResult == expectedResult) | |
1 | |
else if ((currentResult > expectedResult) || (numbers.isEmpty)) | |
0 | |
else |
View nhrollback.cs
using System; | |
using System.Data.SqlServerCe; | |
using System.IO; | |
using System.Reflection; | |
using Moq; | |
using NHibernate; | |
using NHibernate.ByteCode.Castle; | |
using NHibernate.Cfg; | |
using NHibernate.Tool.hbm2ddl; |
View NaN.htm
<html> | |
<head> | |
<script> | |
function printLine(content) { | |
if (content) { | |
document.body.innerHTML += content; | |
} | |
document.body.innerHTML += "<br/>"; | |
} |
View octalNumbers.html
<html> | |
<head> | |
<script> | |
function printLine(content) { | |
if (content != null) { | |
document.body.innerHTML += content; | |
} | |
document.body.innerHTML += "<br/>"; | |
} |