Skip to content

Instantly share code, notes, and snippets.

View kamilsj's full-sized avatar
😎
https://www.evlovefilms.com

Kamil Boberek kamilsj

😎
https://www.evlovefilms.com
View GitHub Profile
@kamilsj
kamilsj / matury.py
Last active September 5, 2018 21:41
Matura z informatyki 2016 - rozwiązania
#!/usr/bin/env python
import os
def zad1_1(a, b):
sumaa = 0
sumab = 0
i = 1
@kamilsj
kamilsj / euler.py
Created January 9, 2016 14:23
Algorithm to Euler Projects
def euler1(arg):
i = 0
sum = 0
while i<1000:
if i%3 == 0 or i%5 == 0:
sum = sum + i
@kamilsj
kamilsj / func.php
Last active May 18, 2016 07:38
PHP embeding Youtube and Vimeo clips from url
<?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) {
@kamilsj
kamilsj / Dest-Serv
Created March 7, 2015 17:47
Changing Ubuntu Desktop into Ubuntu Server
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