This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url("../twentytwelve/style.css"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Twenty Twelve Fill | |
Theme URI: http://exemple.com/ | |
Description: Tema fill per el tema Twenty Twelve | |
Author: El teu nom | |
Author URI: http://exemple.com/about/ | |
Template: twentytwelve | |
Version: 0.1 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('WP_AUTO_UPDATE_CORE', false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('AUTOMATIC_UPDATER_DISABLED', false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function change_graphic_lib($array) { | |
return array( 'WP_Image_Editor_GD', ); | |
} | |
add_filter( 'wp_image_editors', 'change_graphic_lib' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function divide_array_by_golden_ratio($arr) | |
{ | |
$ab = count($arr); | |
if ($ab < 2) | |
{ | |
return false; | |
} | |
$phi = (1 + sqrt(5)) / 2; | |
$a = round($ab / $phi); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fibonacci_sequence($limit=0) | |
{ | |
$limit = abs(intval($limit)); | |
$sequence = array(); | |
$count = 0; | |
while($count < $limit) | |
{ | |
$a = isset($sequence[$count-2]) ? $sequence[$count-2] : 0; | |
$b = isset($sequence[$count-1]) ? $sequence[$count-1] : 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fibonacci_sequence_up_to($value=0) | |
{ | |
$value = abs(intval($value)); | |
$sequence = array(); | |
$count = 0; | |
while($count===0 || $sequence[$count-1] < $value) | |
{ | |
$a = isset($sequence[$count-2]) ? $sequence[$count-2] : 0; | |
$b = isset($sequence[$count-1]) ? $sequence[$count-1] : 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fibonacci($n=0) | |
{ | |
$n = abs(intval($n)); | |
return ($n===0) ? 0 : ( ($n === 1 || $n === 2) ? 1 : ( fibonacci($n - 1) + fibonacci($n - 2) ) ); | |
} | |
?> |
NewerOlder