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
0) struktura komunikacyjna: | |
typedef struct | |
{ | |
char command; | |
char __nothing; | |
char body[254]; | |
} message; | |
gdzie command to jednoliterowa komenda, a body to tablica znaków zawierająca parametr przesyłany w wiadomości, jeżeli przychodzi tekst: | |
r nick |
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/bash | |
# | |
# -== SKYNET ==- | |
# The Therminator 2 manager 0.1a | |
# by Mateusz Galazyn | |
# | |
# Therminator2 location | |
TH2_DIR="/data/home/galazyn/Therminator2" |
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
clear; | |
function [L,U] = LU_dec(A) | |
n = length(A(1,:)); | |
L = eye(n); | |
for i=1:n | |
for j=i:n %wiersze U | |
U(i,j) = A(i,j); | |
for k=1:(i-1) | |
U(i,j) = U(i,j) - L(i,k)*U(k,j); | |
endfor |
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/bash | |
# katalog archiwum | |
ARCHIWUM='./archiwum' | |
# plik z baza plikow | |
BAZA=$ARCHIWUM'/baza.txt' | |
if [ $# == 0 ]; then | |
echo "System Prostej Archiwizacji | |
Uzycie: |
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
switch (somevalue) | |
{ | |
case 1: | |
/* some code */ | |
case 2: | |
/* some code which shoud run in case of somevalue contains 1 or 2*/ | |
break; | |
default: | |
break; | |
} |
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 | |
for i in $(find . | grep -i ".php") | |
do | |
rm $i | |
done |
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
% operacja dominujaca: + - * / | |
% rekurencja 1-go rodzaju - bez rozgalezien w drzewie, bledy i zlozonosci identyczne | |
% x - punkt poczatkowy | |
% n - maksymalna liczba iteracji | |
% i - poczatkowa zlozonosc obliczeniowa, przy wywolaniu zewnetrznym i = 0 | |
function [x,i] = rec(x,n,i) | |
if(n == 0) | |
x = x; | |
else | |
% algorytm newtona do szukania miejsc zerowych |
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
<?php | |
$panel3->click(function() | |
{ | |
JS::alert('dupa'); | |
JS::window()->status('czeknij to'); | |
}); | |
?> |
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
<VirtualHost *:80> | |
ServerAlias drupal.lcst.tk | |
ServerName drupal.lcst.tk | |
VirtualDocumentRoot /home/carbolymer/httpd/vhosts/drupal | |
</VirtualHost> |
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
syslog: | |
Sep 23 11:10:47 nucleon wpa_supplicant[1238]: Failed to initiate AP scan. | |
[root@nucleon]:~# iwlist wlan0 scan | |
wlan0 Interface doesn't support scanning : Device or resource busy |