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
#from __future__ import division | |
def calc(emberek,jegyek,beepitettek): | |
prob_to_win=beepitettek/float(emberek) | |
if (jegyek!=1): | |
prob_to_win+=calc(emberek-1,jegyek-1,beepitettek)*(1-prob_to_win); | |
# print prob_to_win | |
return prob_to_win; | |
#print calc(0,0,0) |
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 <iostream> | |
#include <cstdlib> | |
#include <vector> | |
using namespace std; | |
double rand_double() | |
{ | |
return std::rand()/(double)RAND_MAX; | |
} |
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
# generate random Gaussian values | |
from random import seed | |
from random import gauss | |
# seed random number generator | |
seed() | |
# generate some Gaussian values | |
elem=[0,0] | |
cucc=[0,0] | |
nagyobb=[0,0] | |
sum=[0,0] |
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
convert_files_to_mobi() | |
{ | |
for i in *.pdf *.djvu *.epub ; do ebook-convert "$i" "${i}.mobi";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
<style> | |
html, body, button { | |
margin: 0!important; | |
padding: 0!important; | |
background-color: black; | |
color:white; | |
} | |
video { |