Skip to content

Instantly share code, notes, and snippets.

Working from home

Oshan Wisumperuma oshanz

Working from home
Block or report user

Report or block oshanz

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
View colortext.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
oshanz / Serializor.php
Created Oct 16, 2015 — forked from bubba-h57/Serializor.php
Doctrine 2 Entities Serialized to JSON
View Serializor.php
namespace H57\Util;
class Serializor {
* Converts the Doctrine Entity into a JSON Representation
* @param object $object The Object (Typically a Doctrine Entity) to convert to an array
oshanz / date.sql
Last active Aug 29, 2015 — forked from johngrimes/date.sql
MySQL Date Dimension Build Script
View date.sql
/* Adapted from Tom Cunningham's 'Data Warehousing with MySql' ( */
###### small-numbers table
DROP TABLE IF EXISTS numbers_small;
CREATE TABLE numbers_small (number INT);
INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
###### main numbers table
CREATE TABLE numbers (number BIGINT);
View futubileet.js
You can’t perform that action at this time.