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 | |
help="Poprawne użycie:\narg1 - wyrazenie\narg2 - rozszerzenie pliku\narg3 - katalog, w ktorym skrypt bedzie szukal pliku okreslonego typu." | |
if [ "$#" -ne 3 ]; then | |
echo "podaj 3 argumenty" | |
echo -e $help | |
exit 1 | |
fi | |
if [ ! -d "$3" ]; then |
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 | |
help="Poprawne użycie:\narg1 - katalog, w ktorym skrypt bedzie zliczal pliki okreslonego typu.\narg2 - typ_pliku" | |
argumenty="zwykly - zwykle pliki\nFIFO - FIFO\nblok - pliki specjalne blokowe\nznak - pliki specjalne znakowe\nsocket - sockety\ndowiazanie - dowiazania symboliczne\nkatalog - katalogi" | |
if [ "$#" -ne 2 ]; then | |
echo "podaj 2 argumenty" | |
echo -e $help | |
echo -e $argumenty | |
exit 1 | |
fi |
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 | |
alg1="1" | |
alg2="2" | |
alg3="4" | |
figura1="recv.cif" | |
figura2="rech.cif" | |
fname1="${figura1}__alg__${alg1}__.txt" | |
fname2="${figura1}__alg__${alg2}__.txt" | |
fname3="${fugura1}__alg__${alg3}__.txt" | |
fname4="${figura2}__alg__${alg1}__.txt" |
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 | |
src1="/srv/rutorrent/home/widgets" | |
src2="/srv/rutorrent/home/inc" | |
cdir=$(pwd) | |
cd ${src1} | |
if [ $? -ne 0 ] # checking if command executed successfully | |
then | |
echo "Can\`t cd into ${src1}" | |
exit 1 |
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
library ieee; | |
use ieee.std_logic_1164.all; | |
use ieee.numeric_std.all; | |
entity tb is | |
end tb; | |
architecture arch of tb is | |
component kolokwium | |
port (clk,set: in bit; wy: out bit); | |
end component; |
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
/* | |
* A simple libpng example program | |
* http://zarb.org/~gc/html/libpng.html | |
* | |
* Modified by Yoshimasa Niwa to make it much simpler | |
* and support all defined color_type. | |
* | |
* To build, use the next instruction on OS X. | |
* $ brew install libpng | |
* $ clang -lz -lpng15 libpng_test.c |
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 <LiquidCrystal.h> | |
int tab[4]={1,6,9,0},value=0,previousvalue=1; | |
int led = 13,novalue=1,zero=0; | |
//31 34 35 42 ++++++++++ | |
// 32 33 36 - 41 ------- | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
Serial.begin(9600); |