Skip to content

Instantly share code, notes, and snippets.

View mavimo's full-sized avatar
⌨️
coding

Marco Vito Moscaritolo mavimo

⌨️
coding
View GitHub Profile
tasks:
- include: tasks/php/pear_channel.yml
with_items:
- pear.phing.info
- pear.phpmd.org
- pear.phpdoc.org
- pear.pdepend.org
- pear.phpunit.de
@mavimo
mavimo / 0_reuse_code.js
Created November 5, 2013 10:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
---
layout: default
title: Projects
generator: pagination
pagination:
max_per_page: 3
use:
- sculpin_projects
---
<h2>Projects</h2>
{
"name": "mavimo/blog",
"description": "Mavimo's Blog",
"type": "sculpin-skeleton",
"authors": [
{
"name": "Marco Vito Moscaritolo",
"email": "marco@mavimo.org",
"homepage": "http://www.mavimo.org"
},
---
layout: default
title: Projects
generator: pagination
pagination:
max_per_page: 3
provider: projects
use:
- projects
---
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0;url={{ page.refresh_to_post_id }}.html" />
</head>
</html>
@mavimo
mavimo / 0_reuse_code.js
Created January 1, 2014 20:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
class FileContentCounter
{
private $file;
public function __construct($file)
{
$this->file = $file;
}

In babun eseguire:

pact install php-phar php-json php-iconv php-posix php-tokenizer php-mbstring php-zlib php-ctype php-simplexml

Evitare il file:

/etc/php5/php.ini

cercare

@mavimo
mavimo / Car.php
Last active April 4, 2016 12:24
Codemaster day2
<?php
namespace Codemaster\Example\Day2;
use Codemaster\Example\Day2\EngineInterface;
class Car
{
private $engine;
private $wheels;