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 <sys/types.h> | |
#include <semaphore.h> | |
#include <pthread.h> | |
#include <sys/wait.h> | |
sem_t writer_semafor; | |
sem_t reader_semafor; | |
char *buffer; | |
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
/* Tyto tri ulohy tvori prvni bodovanou praci! | |
Vypracovat doma, odevzdat do pondeli do 5ti do rana | |
1. Nactete text z klavesnice, ulozte do souboru ve | |
Windows 1250 | |
2. Nactete soubor (viz vysee) a vypiste na | |
obrazovku | |
3. fopen umi pracovat i s unicode - vyzkousime |
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
# show.html.haml, pouziva haml | |
%h1= t("configurations.show.title") | |
.info | |
#address | |
%label= School.human_attribute_name("address") | |
= @school.address | |
#name | |
%label= School.human_attribute_name("name") | |
= @school.name |
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
<span class="in_place_editor_field" id="school_school_year_begins_at_50_in_place_editor">haluz</span><script type="text/javascript"> | |
//<![CDATA[ | |
new Ajax.InPlaceEditor('school_school_year_begins_at_50_in_place_editor', '/admin/nastaveni/set_school_school_year_begins_at', {callback:function(form) { return Form.serialize(form) + '&authenticity_token=' + encodeURIComponent('1befd8297f7ab4ee9bab94ba25804c630693120a') }, cancelText:Storno, clickToEditText:Klikněte pro změnu, loadingText:Pracuji, okText:OK, savingText:Ukládám}) | |
//]]> | |
</script> |
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
; 3. cviceni | |
; UKOL (20): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
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
; 3. cviceni | |
; 5.UKOL (15b): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
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
; 3. cviceni | |
; UKOL (20): Problem stabilnich (nebo spise ne nestabilnich) manzelstvi | |
; N procesu muzu a N procesu zen | |
; kazdy muz hodnoti kazdou zenu cislem od 1 do N, vetsi cislo je lepsi | |
; hodnoceni | |
; kazda zena hodnoti kazdeho muze cislem od 1 do N, vetsi cislo je | |
; lepsi hodnoceni | |
; parovani (pary muzu a zen 1:1) je stabilni, kdyz pro muze m1, m2 a | |
; jejich protejsky z1, z2 zaroven plati: |
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
mladsi kuchynka chtel na sebe vzit lodenici - pujcovani od kvetna do zari, nepropujcili jsme mu zivnost, lode by nam vydelavaly 50%, predbezne. | |
budova nebude, | |
Karel se dotaze kuchynky, chceme mit 4 obedy a vstup zdarma. Kuchynka nabizi 3 obedy. | |
Karel zjisti zneni smlouvy naseho pojisteni. | |
Oslovil nas hradek, 31 kvetna, ukazka cinnosti, udelame, zajisti vasek. | |
1 cervna, chteji veze. udelame, zajisti ?. | |
29 kvetna, odpoledne, postavit discipliny bez lidi, za skolou, zajisti? | |
uklid prehrady, 25 dubna. Chteji clun, my bysme nabidly lode. Domluva zadna. | |
CEZ s nami zitra bude uzavirat smlouvu na zhruba 50 000. | |
VZP ma akci 500 pod 26, pojistenci VZP muzou prispet materialem do zachranarum. |
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
class PilotMissionLog | |
attr_accessor :name, | |
:score, | |
:state, | |
:enemy_aircraft_kill, | |
:enemy_static_aircraft_kill, | |
:enemy_tank_kill, | |
:enemy_car_kill, | |
:enemy_artillery_kill, | |
:enemy_AAA_kill, |
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
with(plots); | |
with(CurveFitting); | |
spl1 := PolynomialInterpolation([0, 1, 2, 3, 4, 5, 6, 7], [0, 1, 2, 2, 1, 0, 1, 2], t); | |
spl2 := PolynomialInterpolation([0, 1, 2, 3, 4, 5, 6, 7], [1, 0, 1, 4, 5, 4, 3, 4], t); | |
plot([spl1, spl2, t=0..7]); | |
xx := [0, 3, 3, 0]: yy := [4, 9, -5, 0]; | |
n := nops(xx) - 1; | |
Points := plot([seq([xx[j], yy[j]], j=1..n+1)], style=point); | |
bez := x->evalm(sum(binomial(n, i)*x^i*(1-x)^(n-i)*[xx[i+1], yy[i+1]], i=0..n)); | |
Pbez := plot([bez(x)[1], bez(x)[2], x=0..1]): |
OlderNewer