デザイナーと二人組で超チューニング祭に参加しました。速度面での最終順位は7位でした。デザイナー視点でのまとめは、こちら http://blog.mikiishijima.com/cho-tuning-fes/
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 defined('C5_EXECUTE') or die("Access Denied."); | |
namespace Application\Controller; | |
use Concrete\Core\File\FileList; | |
class GetFileDataContoroller { | |
public function index(){ | |
$fl = new FileList(); | |
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 | |
/** | |
* ---------------------------------------------------------------------------- | |
* # Custom Application Handler | |
* | |
* You can do a lot of things in this file. | |
* | |
* ## Set a theme by route: | |
* |
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 options | |
session.save_handler = files | |
session.save_path = /var/lib/php5 | |
session.gc_maxlifetime = 1440 | |
short_open_tag = On | |
expose_php = Off | |
; hhvm specific | |
hhvm.log.level = Warning |
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
<!DOCUTYPE HTML> | |
<html> | |
<head> | |
<title>CSS3 calc()って知ってた?</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html,body{ |
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 | |
class ほげ{ | |
var $プロパティ; | |
function ほげ(){ | |
$this->プロパティ = "ほげ"; | |
} | |
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 | |
for($i=1;$i<=100;$i++){ | |
if(($i%3)==0){ | |
echo "Fizz"; | |
} | |
if(($i%5)==0){ | |
echo "Buzz"; | |
}elseif(($i%3)>0){ | |
echo $i; | |
} |
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 | |
$uh = Loader::helper('concrete/urls'); | |
$url = $uh->getToolsURL('disable_mobile') . '?rcID=' . $c->getCollectionID(); | |
?> | |
<a href="<?php echo $url; ?>"><?php echo t('View desktop site'); ?></a> |
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 defined('C5_EXECUTE') or die("Access Denied."); | |
//Load Data models in package | |
Loader::model("data_list","data"); | |
Loader::model("data_type","data"); | |
//Create DataType object | |
$dataType = new DataType; | |
//load DataType by handle | |
$dataType->Load('dtHandle=?', array("object")); |
NewerOlder