I hereby claim:
- I am salzig on github.
- I am salzig (https://keybase.io/salzig) on keybase.
- I have a public key whose fingerprint is CD9D 2123 9FFA 5593 1E16 92F1 D770 F3C0 0283 C6AA
To claim this, I am signing this object:
require 'ipaddr' | |
class IPAddr | |
# netmask to the people! | |
def netmask | |
_to_string(@mask_addr) | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
[ Launch: HAW - Next Media - Tile Rechnerei ] 5693924 by Salzig
[ Launch: minimal d3 area chart ] 5626496 by Salzig
// Copyright (C) 1998-2001 Logi Ragnarsson | |
import java.util.Random; | |
/** | |
* This is the class for Data Encryption Standard (DES) keys. See FIPS PUB 46-1 | |
* or DEA defined in ANSI X3.92-1981 for a complete specification. | |
* | |
* <p> | |
* DES is the most widely used block cipher, although it is nowadays normally |
# coding: utf-8 | |
# Beispiel: | |
# > Caja.encode("Hallo Welt, es ist 13 Uhr") | |
# > Caja.decode(Caja.encode("Hallo Welt, es ist 13 Uhr")) | |
class Caja | |
@@table = { | |
"a" => "¥¥µ", | |
"h" => "þµ¥", |
> a = Hash.new(Hash.new(0)) | |
=> {} | |
> a[DateTime.now.beginning_of_day]["abc"] = 13 | |
=> 13 | |
> a[DateTime.now.beginning_of_day]["abc"] | |
=> 13 | |
> a[DateTime.now.beginning_of_day] |
package time | |
object App { | |
def main(args:Array[String]) { | |
import TimeImplicit._ | |
println(10 ns) | |
println(20 µs) | |
println(30 ms) | |
println(40 s) |
package aufgabe5 | |
class Matrix[T](val xDim:Int, val yDim:Int, protected val data:Array[T])(implicit num : Numeric[T], m : Manifest[T]) { | |
val numeric = num | |
val manifest = m | |
def apply(x:Int, y:Int):T = | |
if (x < 0 || x >= xDim || y < 0 || y >= yDim) | |
numeric.zero | |
else |