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
[ 2614.739] | |
X.Org X Server 1.10.4 | |
Release Date: 2011-08-19 | |
[ 2614.739] X Protocol Version 11, Revision 0 | |
[ 2614.739] Build Operating System: Linux 2.6.24-29-server i686 Ubuntu | |
[ 2614.739] Current Operating System: Linux minibook 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:50:54 UTC 2012 i686 | |
[ 2614.740] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.0.0-16-generic root=UUID=c33467e3-f6bd-4e4a-87f7-908adaa24262 ro quiet splash vt.handoff=7 | |
[ 2614.740] Build Date: 19 October 2011 05:09:41AM | |
[ 2614.740] xorg-server 2:1.10.4-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) | |
[ 2614.740] Current version of pixman: 0.22.2 |
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
sciApp.controller('AngularedCollectionController', ['$scope', '$compile', function ($scope, $compile) { | |
$scope.index = 1; | |
$scope.init = function (collectionId) { | |
var indexes = []; | |
$('#' + collectionId).find('input[type=hidden]').each(function () { | |
var attrName = $(this).attr('name'); | |
var indexFinder = new RegExp('\\]\\[(\\d+)\\]\\['); |
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
def max(x: Int, y: Int): Int = { | |
if (x > y) | |
x | |
else | |
y | |
} |
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
if (x > y) x else y |
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
var i = 0 | |
while (i < args.length) { | |
println(args(i)) | |
i += 1 | |
} |
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
args.foreach(arg => println(arg)) |
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
args.foreach(println) |
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
for (arg <- args) | |
println(arg) |
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
val a = Array("Test", "is", "ok") | |
println(a(0)); | |
println(a.apply(0)); // same as previous |
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
for (i <- 0 to 10) println(i) | |
for (i <- 0.to(10)) println(i) // same as previous |
OlderNewer