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
$ 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 |
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
/** Class Foo **/ | |
var Foo = (function () { | |
// Private variables | |
var private_number = 200 | |
/** class Constructor **/ | |
var Foo = function () { | |
this.bar = 0; | |
}; | |
/** class methods **/ | |
Foo.prototype = { |
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
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 |
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
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; |
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
<html> | |
<head> | |
<script> | |
function printLine(content) { | |
if (content) { | |
document.body.innerHTML += content; | |
} | |
document.body.innerHTML += "<br/>"; | |
} |
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
<html> | |
<head> | |
<script> | |
function printLine(content) { | |
if (content != null) { | |
document.body.innerHTML += content; | |
} | |
document.body.innerHTML += "<br/>"; | |
} |