Skip to content

Instantly share code, notes, and snippets.

Stathis Goudoulakis stathisg

Block or report user

Report or block stathisg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stathisg / LogoResizer.php
Created May 10, 2015
Code for "How to resize a logo to specific dimensions keeping its aspect ratio using PHP" tutorial published at
View LogoResizer.php
namespace LogoResizer;
use Intervention\Image\ImageManagerStatic as Image;
class LogoResizer {
private $desired_width;
private $desired_height;
private $desired_aspect_ratio;
stathisg / phaser-restrict-drag.html
Last active Apr 17, 2017
Code for "How to restrict the drag movement of a sprite to both X & Y axis in Phaser" tutorial published at
View phaser-restrict-drag.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="phaser.min.js"></script>
<script type="text/javascript" src="square.js"></script>
stathisg / query_profiles
Last active Aug 29, 2015
Profiling the performance of a few queries (based on the following discussion:
View query_profiles
$db_host = ''; //Database hostname
$db_username = ''; //Database username
$db_password = ''; //Database password
$db_name = ''; //Database name
$db_table_name = ''; //Database table name
function create_table() {
You can’t perform that action at this time.