Skip to content

Instantly share code, notes, and snippets.

View vicgonvt's full-sized avatar

Victor Gonzalez vicgonvt

View GitHub Profile
# Aliases loading
alias aliases='vim ~/.bash_profile'
alias aliases_reload='source ~/.bash_profile'
# System Changes
alias ls='ls -la'
# Composer
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PS1="\W >> \[$(tput sgr0)\]"
<?php
class Gallery
{
public $data;
public function setUp($imagePath)
{
$data = file_get_contents($imagePath . 'portfolio.json');
$this->data = json_decode($data, true);
$this->images = glob($imagePath . '*.{jpg,png,gif}', GLOB_BRACE);