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
liip_doctrine_cache: | |
namespaces: | |
flickr: | |
namespace: flickr | |
type: file_system |
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
<img src="{{ post.catchimage | get_remote_image | imagine_filter('large')}}" class="img-polaroid" style="width:260px;height:260px;" alt="{{ post.catchcaption }}" /> |
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
public function gravatar($email, $size = 80, $rating = 'G') | |
{ | |
return $grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?&s=" . $size . '&r=' . $rating; | |
} |
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
{ | |
"require": { | |
"php": ">=5.3.6", | |
"symfony/symfony": "2.1.*", | |
"doctrine/orm": "2.2.*", | |
"doctrine/doctrine-bundle": "dev-master", | |
"doctrine/data-fixtures": "dev-master", | |
"doctrine/doctrine-fixtures-bundle": "dev-master", | |
"doctrine/migrations": "dev-master", | |
"doctrine/doctrine-migrations-bundle": "dev-master", |
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 | |
$token = 'TOKEN'; | |
// 使用するデータ | |
$shops = array( | |
array('id' => 1, 'name' => 'ダイブサプライ', 'address' => '西牟婁郡白浜町2927-366-3', 'latitude' => '33.6781645', 'longitude' => '135.3481343'), | |
array('id' => 2, 'name' => 'バブルリングダイバーズ串本', 'address' => '東牟婁郡串本町串本617-36', 'latitude' => '33.4768918', 'longitude' => '135.7748795'), | |
array('id' => 3, 'name' => 'ミスオーシャン ダイビングサービス', 'address' => '西牟婁郡白浜町臨海410-1', 'latitude' => '33.6923658', 'longitude' => '135.3409542'), | |
array('id' => 4, 'name' => 'バディ・バディ', 'address' => '和歌山県和歌山市太田2-7-9', 'latitude' => '34.2303537', 'longitude' => '135.1945868'), |