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
#!/usr/bin/env python | |
import os | |
def zad1_1(a, b): | |
sumaa = 0 | |
sumab = 0 | |
i = 1 | |
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 euler1(arg): | |
i = 0 | |
sum = 0 | |
while i<1000: | |
if i%3 == 0 or i%5 == 0: | |
sum = sum + i |
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 | |
function url($string, $width = 550, $height = 309) | |
{ | |
if(isset($string)){ | |
if(preg_match_all('/(http|https)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,6}(\/\S*)+?/', $string, $matches)){ | |
foreach($matches as $value){ | |
foreach($value as $key) { |
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
sudo apt-get install tasksel | |
sudo tasksel remove ubuntu-desktop | |
sudo tasksel install server | |
sudo apt-get update | |
sudo apt-get install linux-server linux-image-server | |
sudo apt-get purge lightdm |