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
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 http://burnmind.com/tutorials/drag-sprite-horizontally-vertically-phaser
View phaser-restrict-drag.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Animals</title>
<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>
<style>
@stathisg
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 http://burnmind.com/tutorials/resize-logo-keeping-aspect-ratio
View LogoResizer.php
<?php
namespace LogoResizer;
use Intervention\Image\ImageManagerStatic as Image;
class LogoResizer {
private $desired_width;
private $desired_height;
private $desired_aspect_ratio;
@stathisg
stathisg / query_profiles
Last active Aug 29, 2015
Profiling the performance of a few queries (based on the following discussion: http://www.freestuff.gr/forums/viewtopic.php?t=68286)
View query_profiles
<?php
set_time_limit(0);
$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.