初登場するコマンド: init, add, commit, log, config, status, diff
This file contains hidden or 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
| /* | |
| How to use: | |
| 1)Create new file. | |
| 2) | |
| */ | |
| function kana2upper(string) { |
This file contains hidden or 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
| web: | |
| image: occitech/cakephp:5-apache | |
| ports: | |
| - 80 | |
| links: | |
| - db | |
| volumes: | |
| - .:/var/www/html | |
| environment: |
This file contains hidden or 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
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
This file contains hidden or 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 | |
| $attributeValues = array( | |
| 'color' => array('Red', 'White', 'Blue'), | |
| 'size' => array(1, 2, 3, 4), | |
| 'fabric' => array('Cloth', 'Silk') | |
| ); | |
| class Cartesian | |
| { |
This file contains hidden or 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
| /* 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 */ |
This file contains hidden or 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 | |
| // Use in the "Post-Receive URLs" section of your GitHub repo. | |
| if ( $_POST['payload'] ) { | |
| shell_exec( 'cd /srv/www/git-repo/ && git pull' ); | |
| } | |
| ?>hi |
This file contains hidden or 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 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 どういうこういう そういうどういう
NewerOlder