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
# @(#)root/config:$Id$ | |
# Author: Fons Rademakers 22/09/95 | |
# ROOT Environment settings are handled via the class TEnv. To see | |
# which values are active do: gEnv->Print(). | |
# Path used by dynamic loader to find shared libraries. | |
# This path will be appended to the (DY)LD_LIBRARY_PATH on Unix | |
# and to PATH on Windows. | |
# Paths are different for Unix and Windows. The example shows the defaults |
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
# Python Example using HMACs and SHA256 | |
import hashlib | |
import hmac | |
if __name__ == "__main__": | |
key = b"SOMEKEY" #str does not work, we need byte or bytearray | |
msg_a = b"someplaintext" #str does not work, we need byte or bytearray | |
h_sha256 = hashlib.sha256() |
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 fib(n): | |
if n == 0: | |
return 0 | |
elif n == 1: | |
return 1 | |
else: | |
return fib(n - 2) + fib (n - 1) | |
if __name__ == "__main__": | |
result = fib(13) |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Fibonacci | |
{ | |
class Fibonacci | |
{ |
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
function fib(n) | |
if n == 0 | |
return 0 | |
elseif n == 1 | |
return 1 | |
else | |
return fib(n-2) + fib(n-1) | |
end | |
end | |
result = fib(15) |
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
defmodule Fibonacci do | |
def fib(n) do | |
case n do | |
0 -> 0 | |
1 -> 1 | |
_ -> fib(n-2) + fib(n-1) | |
end | |
end | |
end |
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
fib :: (Integral a) => a -> a | |
fib 0 = 0 | |
fib 1 = 1 | |
fib n = fib(n - 2) + fib(n - 1) | |
main = do | |
print (fib 15) |