Skip to content

Instantly share code, notes, and snippets.

View altayalp's full-sized avatar

İzzet Ögetürk altayalp

View GitHub Profile
@altayalp
altayalp / Person.php
Last active July 9, 2016 16:20
Php fluent interface (aka method chaining) example
<?php
/**
* Person class
*
* @author altayalp <[email protected]>
*/
class Person
{
private $name;
@altayalp
altayalp / event_scheduler.sql
Last active June 27, 2016 15:52
Mysql event scheduler. ( MySQL events is similar to a cron job in UNIX or a task scheduler in Windows. )
-- Check scheduler status before:
show processlist;
-- If you can see "event_scheduler" to user column, event scheduler is on. Else you must activate it.
SET GLOBAL event_scheduler = ON;
-- If you want to off event scheduler following this query.
@altayalp
altayalp / FullMaximized.java
Created June 21, 2016 09:33
Simple swing fully maximized window example.
import java.awt.Dimension;
import javax.swing.JFrame;
/**
* Simple swing fully maximized window example.
*
* @author altayalp
*/
public class FullMaximized {