Skip to content

Instantly share code, notes, and snippets.

View alessandroraffa's full-sized avatar
💻
Coding

Alessandro Raffa alessandroraffa

💻
Coding
View GitHub Profile
@alessandroraffa
alessandroraffa / README.md
Created November 6, 2017 01:13 — forked from juliengdt/README.md
README.md template

NAME-OF-YOUR-PROJECT

This is a template README to show which informations it should contain.

You can talk about general purpose here in 2~3 lines to explain what it is.

Installation

Requirements

This is the requirement block; it explains which SW/HW you have to grab to run this project

@alessandroraffa
alessandroraffa / README.md
Created November 6, 2017 00:46 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@alessandroraffa
alessandroraffa / README-Template.md
Created November 6, 2017 00:43 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@alessandroraffa
alessandroraffa / isAssocArrayBench.php
Created July 28, 2016 15:09 — forked from Thinkscape/isAssocArrayBench.php
A benchmark of several methods for checking if PHP array is associative
<?php
if(!isset($argv[1])){
echo "Usage: ".$argv[0]." (number of iterations)\n";
exit(1);
}
/**
* Arrays to check
*/
$tests = array(
@alessandroraffa
alessandroraffa / DotNotation.php
Created July 26, 2016 15:34 — forked from antonmedv/DotNotation.php
Dot notation for access multidimensional arrays.
<?php
/**
* Dot notation for access multidimensional arrays.
*
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]);
*
* $value = $dn->get('bar.baz.foo'); // $value == true
*
* $dn->set('bar.baz.foo', false); // ['foo'=>false]
*
if(!function_exists('body_id')) {
function body_id() {
global $post;
global $wp_query;
$post_id = $post->ID;
$id = '';
if(is_home() || is_front_page()) {
/* Gmail style scrollbar */
::-webkit-scrollbar {
width: 12px
}
::-webkit-scrollbar-thumb {
border-width: 1px 1px 1px 2px
}
::-webkit-scrollbar-track {
border-width: 0
}