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
set nocompatible | |
set showmatch | |
set autoindent | |
set smartindent | |
set hlsearch | |
:set ts=2 | |
:set softtabstop=2 | |
:set shiftwidth=2 |
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
mylen [] = 0 | |
myhead (h:t) = h | |
myhead [] = error "nie mozna na pustej liscie" | |
mytail (h:t) = t | |
infixl 6 +++ | |
[] +++ y = y |
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
mylen [] = 0 | |
myhead (h:t) = h | |
myhead [] = error "nie mozna na pustej liscie" | |
mytail (h:t) = t | |
infixl 6 +++ | |
[] +++ y = y |
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
instance Ix Integer where | |
rangeSize(from, to) = fromInteger (to - from + 1) |
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
pairLEQ :: (Ord i) => (i, e) -> (i, e) -> Bool | |
pairGT :: (Ord i) => (i, e) -> (i, e) -> Bool | |
pairLEQ (i1, e1) (i2, e2) = i1 <= i2 | |
--pairGT a b = not (pairLEQ a b) | |
pairGT a = not . (pairLEQ a) | |
-- z wykładu 2 | |
pairQS :: (Ord i) => [(i, e)] -> [(i, e)] |
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
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) | |
at Latte.converters$.convert(converters.scala:60) |
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
ld -o $fbase -melf_i386 $fbase.o /usr/lib32/crt?.o -l:/usr/lib32/libc.a | |
/usr/lib32/libc.a(vfprintf.o): In function `vfprintf': | |
(.text+0x147c): undefined reference to `_Unwind_Resume' | |
/usr/lib32/libc.a(vfprintf.o):(.eh_frame+0x1fb): undefined reference to `__gcc_personality_v0' | |
/usr/lib32/libc.a(syslog.o): In function `__vsyslog_chk': | |
(.text+0x798): undefined reference to `_Unwind_Resume' | |
/usr/lib32/libc.a(syslog.o): In function `__vsyslog_chk': | |
(.text+0x7aa): undefined reference to `_Unwind_Resume' | |
/usr/lib32/libc.a(syslog.o): In function `openlog': | |
(.text+0x8a9): undefined reference to `_Unwind_Resume' |
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
[khaki02 CLInfo]$ ./CLInfo | |
Number of platforms: 1 | |
Platform Profile: FULL_PROFILE | |
Platform Version: OpenCL 1.1 CUDA 4.2.1 | |
Platform Name: NVIDIA CUDA | |
Platform Vendor: NVIDIA Corporation | |
Platform Extensions: cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll | |
Platform Name: NVIDIA CUDA |
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
object camps { | |
import scala.collection.mutable.Queue | |
import scala.math.Ordering.Implicits._ //do porównywania tupli, można też napisać własną funkcję | |
//zakładam, że na początku mamy wybór do którego z pierwszych trzech kampów zawitać i że musimy trafić do ostatniego | |
def getBestRoute( camps: List[Int]): Tuple2[Int, List[Int]] = { | |
if(camps.length == 0) { //jak nie ma żadnych campingów | |
(0, List()) |
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
/opt/cuda-5.0.35/lib64: | |
/opt/XLE/lib: | |
/lib: | |
/lib64: | |
/usr/lib: | |
/usr/lib64: | |
jk292749@students:/lib$ find /usr/lib64 -iname "*boost*" 2>/dev/null | |
/usr/lib64/libboost_date_time.so | |
/usr/lib64/libboost_filesystem.so |