MacOSX + Vagrant + CoreOS + Docker + Ubuntuの環境。
2014年6月11日時点での情報。
- Version: CoreOS 343.0.0
- Kernel: 3.14.5
- Docker: 1.0
/* | |
How to use: | |
1)Create new file. | |
2) | |
*/ | |
function kana2upper(string) { |
web: | |
image: occitech/cakephp:5-apache | |
ports: | |
- 80 | |
links: | |
- db | |
volumes: | |
- .:/var/www/html | |
environment: |
machine github.com | |
login technoweenie | |
password SECRET | |
machine api.github.com | |
login technoweenie | |
password SECRET |
<?php | |
$attributeValues = array( | |
'color' => array('Red', 'White', 'Blue'), | |
'size' => array(1, 2, 3, 4), | |
'fabric' => array('Cloth', 'Silk') | |
); | |
class Cartesian | |
{ |
/* Stack-based Douglas Peucker line simplification routine | |
returned is a reduced GLatLng array | |
After code by Dr. Gary J. Robinson, | |
Environmental Systems Science Centre, | |
University of Reading, Reading, UK | |
*/ | |
function GDouglasPeucker (source, kink) | |
/* source[] Input coordinates in GLatLngs */ | |
/* kink in metres, kinks above this depth kept */ |
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git pull' ); | |
} | |
?>hi |
<?php | |
//For PHP 5.3.x or later | |
public function emailExtended($data, $deep = false) { | |
$pattern = '/.+@(docomo|ezweb)\.ne\.jp$/i'; | |
$check = preg_replace_callback($pattern, function($matches) { | |
$patterns = array('/\.{2,}/', '/\.@/'); | |
$replacements = array('.', '@'); | |
return preg_replace($patterns, $replacements, $matches[0]); | |
}, array_shift($data)); | |
return Validation::email($check, $deep); |
#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと2 どういうこういう そういうどういう