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
| package package1; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import static java.util.Collections.swap; | |
| /** | |
| * @author Dawid | |
| * Quick sorter with parameterized type of sorting list |
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
| import java.lang.IllegalArgumentException; | |
| import java.util.List; | |
| import java.util.ArrayList; | |
| class Series { | |
| public String series; | |
| public Series(String series) { | |
| this.series = series; |
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
| // odczyt + wyswietl | |
| // build: gcc main.c -o main | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <malloc.h> | |
| #pragma pack(push,1) | |
| typedef struct { | |
| unsigned short naglowek; | |
| unsigned int rozmiar; | |
| unsigned int reserved; |
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
| #define SIZE 80 | |
| #define MQ_NAME "/Kolejka" | |
| typedef struct { | |
| int pnr ; /* numer procesu */ | |
| char text[SIZE]; /* tekst komunikatu */ | |
| } ms_type; |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/wait.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> |
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
| #!/bin/bash | |
| #a | |
| ps aux | awk \ | |
| '{ | |
| print "User " $1 " - proces " $11 " (CPU = " $3 ", MEM = " $4 ")"; | |
| }' | |
| #b | |
| ps aux | awk \ |
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
| #!/bin/bash | |
| #a | |
| ps aux | awk \ | |
| '{ | |
| print "User " $1 " - proc " $11 " (CPU=" $3 ", MEM=" $4 ")" | |
| }' | |
| #b | |
| ps aux | awk \ |
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
| mkdir A/D | |
| mkdir A/B/C | |
| mkdir A/D/E | |
| # tworzenie pliczkow | |
| for i in {1..10}; do | |
| touch ./A/B/plik$i | |
| echo "test$i" > ./A/B/plik$i | |
| done |
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
| # eng.wiki; built with gcc -g -o cpuid cpuid.s | |
| .extern printf | |
| .data | |
| s0: .asciz "CPUID: %x\n" | |
| s1: .asciz "Largest basic function number implemented: %i\n" | |
| s2: .asciz "Vendor ID: %.12s\n" | |
| .text |
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
| .data | |
| STDIN = 0 | |
| STDOUT = 1 | |
| SYSREAD = 0 | |
| SYSWRITE = 1 | |
| SYSOPEN = 2 | |
| SYSCLOSE = 3 | |
| FREAD = 0 | |
| FWRITE = 1 | |
| SYSEXIT = 60 |
NewerOlder