Skip to content

Instantly share code, notes, and snippets.

View mikecastrodemaria's full-sized avatar

Mike Castro Demaria mikecastrodemaria

  • Ultra Prod SAS / Supersonique Studio SARL
  • 85 Rue simiane, 06110 Le Cannet, France
View GitHub Profile
@mikecastrodemaria
mikecastrodemaria / media-query.css
Created May 23, 2023 13:03 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
<?php
$args = array(
'label' => '', // Text in Label
'class' => '',
'style' => '',
'wrapper_class' => '',
'value' => '', // if empty, retrieved from post meta where id is the meta_key
'id' => '', // required
'name' => '', //name will set from id if empty

PHP-CLI (PHP en ligne de commande) sur les hébergements mutualisés OVH

More complete info here http://cluster015.ovh.net/infos/ (thanks to @42antoine)

(cli)

/usr/local/php5.3/bin/php => PHP 5.3.29 (cli) (built: Nov 21 2017 08:55:07)
/usr/local/php5.4/bin/php => PHP 5.4.45 (cli) (built: Nov 21 2017 08:35:51)
/usr/local/php5.5/bin/php => PHP 5.5.38 (cli) (built: Nov 21 2017 08:46:45)

Install php7 with pear

$ brew tap homebrew/dupes
$ brew tap homebrew/versions
$ brew tap homebrew/homebrew-php
$ brew install php70 --with-pear

Enable php7 with apache2

@mikecastrodemaria
mikecastrodemaria / ICS.php
Created December 13, 2017 12:59 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* ICS.php
* =======
* Use this class to create an .ics file.
*
* Usage
* -----
* Basic usage - generate ics file contents (see below for available properties):
@mikecastrodemaria
mikecastrodemaria / Class file
Last active March 25, 2020 20:56 — forked from samatsav/Class file
Convert PHP arrays to XLS
<?php
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
find . -name \.AppleDouble -exec rm -rf {} \;
/**
* Buddyexpress Desk
*
* @package Bdesk
* @author Buddyexpress Core Team <admin@buddyexpress.net
* @copyright 2014 BUDDYEXPRESS NETWORKS.
* @license Buddyexpress Public License http://www.buddyexpress.net/Licences/bpl/
* @link http://labs.buddyexpress.net/bdesk.b
*/