Skip to content

Instantly share code, notes, and snippets.

View evaldas-raisutis's full-sized avatar

Evaldas evaldas-raisutis

  • Denmark
View GitHub Profile
<?php
define("DBHOST", "");
define("DBNAME", "");
define("DBUSER", "");
define("DBPASS", "");
?>
@evaldas-raisutis
evaldas-raisutis / thumbnail.class.php
Created October 21, 2013 20:36
A class for creating image thumbnail
class thumbnail {
public $path;
public $save;
public $width;
public $height;
public function __construct($path, $save, $width, $height) {
$this->path = $path; // path to original image to create thumbnail from
$this->save = $save; // path and file name for saving a thumbnail
@evaldas-raisutis
evaldas-raisutis / calendar.css
Last active November 22, 2017 18:14
Responsive html calendar with javascript
#calendar {
margin-top:5em;
width: 100%;
}
#month {
text-align:center;
text-transform:uppercase;
}
#calendar {
margin-top:5em;
width: 100%;
}
#month {
text-align:center;
text-transform:uppercase;
}