Skip to content

Instantly share code, notes, and snippets.

View pinoniq's full-sized avatar

Jeroen Meeus pinoniq

  • DJEURNIE
  • Belgium
View GitHub Profile
@nsa-yoda
nsa-yoda / DirectoryReader.php
Created August 14, 2013 17:57
A class for reading a directory which returns an array with files and directories in two distinct nodes, with each file or directories permissions.
<?php
class DirectoryReader{
private $directory;
private $listing;
public function __construct($directory){
try {
$this->directory = $directory;
$this->listing = array();
/* **She grows old and feeble** */
//...But she would always have to return back to her dull world of chores and grown-ups.
return function() {
// And her latest story would be filled with wonder
latestStory = adventures[adventures.length - 1];
// But time is a bitch...
setInterval(function() {
// and our dear princess can't help but forget her adventures,