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
Complex** alok(int n, int m) | |
{ | |
Complex **A; | |
int k; | |
A = (Complex **) malloc(sizeof(Complex*) * n); // Alokowanie macierzy,$ | |
for(k=0; k<=n; k++) | |
*(A+k) = (Complex*) malloc(sizeof(Complex) * (m+1)); // Dolacze$ | |
return A; |
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
/* | |
* File: main.c | |
* Author: lite | |
* | |
* Created on 15 marzec 2010, 22:19 | |
*/ | |
#define EXIT_FAIL 10 | |
#include <stdio.h> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#define MAX 10000 | |
char tekst[MAX]; | |
char *wzorzec; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <string.h> | |
int dl1, dl2; | |
int p, q; | |
int wynik[256]; | |
int licznik; |
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
SBOX = {"0" => "c", | |
"1" => "5", | |
"2" => "6", | |
"3" => "b", | |
"4" => "9", | |
"5" => "0", | |
"6" => "a", | |
"7" => "d", | |
"8" => "3", | |
"9" => "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
#!/bin/sh | |
if [ "$X" -lt "0" ] | |
then | |
echo "X is less than zero" | |
fi | |
if [ "$X" -gt "0" ]; then | |
echo "X is more than zero" | |
fi | |
[ "$X" -le "0" ] && \ | |
echo "X is less than or equal to zero" |
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
irb(main):027:0> array2 = []; array = [] | |
=> [] | |
irb(main):028:0> 3.imes {|x| array << x} | |
irb(main):028:0> array = [] | |
=> [] | |
irb(main):029:0> 3.times {|x| array << x} | |
=> 3 | |
irb(main):030:0> (1..3).each { |x| array.combination(x) { |y| array2 << y } } | |
=> 1..3 | |
irb(main):031:0> array2 |
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
# | |
# DO NOT EDIT THIS FILE | |
# | |
# It is automatically generated by /usr/sbin/grub-mkconfig using templates | |
# from /etc/grub.d and settings from /etc/default/grub | |
# | |
### BEGIN /etc/grub.d/00_header ### | |
if [ -s $prefix/grubenv ]; then | |
load_env |
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 LZW_decode(data) | |
data.map!{ |x| x.to_i } | |
d = {} | |
n = 7 | |
d[1] = "a" |
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 lz78_encode(data) | |
slownik ={} | |
n = 1 | |
c = '' | |
result = [] | |
for s in data | |
if (!slownik.include?(c+s)) | |
if c == '' | |
# symbol 's' nie występuje jeszcze w słowniku |
OlderNewer