Skip to content

Instantly share code, notes, and snippets.

View Person.php
<?php
class Person
{
protected $hairColor;
protected $eyeColor;
public function run()
{
echo 'running';
@andonovn
andonovn / Vagrantfile
Last active Feb 2, 2017
vagrantfile - old ubuntu with lamp
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "lucid64-lamp"
onfig.vm.box_url = "https://dl.dropbox.com/u/14741389/vagrantboxes/lucid64-lamp.box"
@andonovn
andonovn / rotating.css
Created Jan 10, 2017
CSS rotate - useful for loaders
View rotating.css
.is-rotating {
-webkit-animation:spin 1s linear infinite;
-moz-animation:spin 1s linear infinite;
animation:spin 1s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
@andonovn
andonovn / Vagrantfile
Created Jan 3, 2017
The Vagrantfile - Box with Ubuntu 16.04
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "gbarbieru/xenial"
config.vm.box_url = "https://atlas.hashicorp.com/gbarbieru/boxes/xenial"
@andonovn
andonovn / vagrant-install.sh
Last active Jan 3, 2017
Vagrant Phalcon Install Script with Apache2 & PHP-7.0
View vagrant-install.sh
#!/usr/bin/env bash
echo "--- Updating packages list ---"
sudo apt-get update
echo "--- PHP & Apache ---"
sudo apt-get install -y vim curl php7.0 apache2 libapache2-mod-php7.0 php7.0-curl php7.0-gd php7.0-mcrypt php7.0-pgsql php7.0-mbstring git-core