Skip to content

Instantly share code, notes, and snippets.

@andonovn
andonovn / Person.php
Created February 12, 2019 18:47
OOP basics
<?php
class Person
{
protected $hairColor;
protected $eyeColor;
public function run()
{
echo 'running';
@andonovn
andonovn / Vagrantfile
Last active February 2, 2017 02:59
vagrantfile - old ubuntu with lamp
# -*- 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 January 10, 2017 20:38
CSS rotate - useful for loaders
.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 January 3, 2017 05:15
The Vagrantfile - Box with Ubuntu 16.04
# -*- 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 January 3, 2017 05:11
Vagrant Phalcon Install Script with Apache2 & PHP-7.0
#!/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