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
| //https://developers.google.com/maps/articles/phpsqlsearch_v3#outputting-xml-with-php | |
| // Search the rows in the markers table | |
| $query = sprintf("SELECT address, name, lat, lng, ( 3959 * acos( cos( radians('%s') ) * cos( radians( lat ) ) * cos( radians( lng ) - radians('%s') ) + sin( radians('%s') ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < '%s' ORDER BY distance LIMIT 0 , 20", | |
| mysql_real_escape_string($center_lat), | |
| mysql_real_escape_string($center_lng), | |
| mysql_real_escape_string($center_lat), | |
| mysql_real_escape_string($radius)); | |
| $result = mysql_query($query); | |
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
| USE データベース名 | |
| SOURCE ファイル名 |
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
| @charset "UTF-8"; | |
| /** | |
| * responsive.css | |
| */ | |
| /** | |
| * [lg]LARGE DEVICE Desktop | |
| */ | |
| @media (min-width: 1200px) { |
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
| # http://www.cpi.ad.jp/evangelist/maekawa/column01/001.html | |
| cd ~ | |
| mkdir bin | |
| cd bin/ | |
| curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
| cd ~ | |
| echo alias wp 'php-5.5.16 ~/bin/wp-cli.phar' > .cshrc | |
| source .cshrc | |
| wp --info | |
| cd ~/html |
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
| wp plugin deactivate hello | |
| wp plugin uninstall hello | |
| wp plugin install contact-form-7 --activate | |
| wp plugin install advanced-custom-fields --activate | |
| wp plugin install wp-multibyte-patch --activate |
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 defined('C5_EXECUTE') or die("Access Denied."); | |
| $token = \Core::make('Concrete\Core\Validation\CSRF\Token'); | |
| ?> | |
| <div class="row"> | |
| <div class="col-sm-10 col-sm-offset-1"> | |
| <div class="page-header"> | |
| <h1><?php echo t('Site Registration')?></h1> | |
| <p>Mauticとの連携を試みます!</p> | |
| </div> |
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
| # http://www.cpi.ad.jp/evangelist/maekawa/column01/001.html | |
| cd ~ | |
| mkdir bin | |
| cd bin/ | |
| curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
| cd ~ | |
| echo alias wp 'php-7.0 ~/bin/wp-cli.phar' > .cshrc | |
| source .cshrc | |
| wp --info | |
| cd ~/html |
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 | |
| class business_calendar { | |
| const WEEK = 7; // 1 week is 7 days | |
| // holiday_of_week flag index | |
| const IDX_SUNDAY = 0; | |
| const IDX_MONDAY = 1; | |
| const IDX_TUESDAY = 2; | |
| const IDX_WEDNESDAY = 3; | |
| const IDX_THURSDAY = 4; |
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
| 参考URL: http://stackoverflow.com/questions/2660201/what-parameters-should-i-use-in-a-google-maps-url-to-go-to-a-lat-lon | |
| http://maps.google.com/maps/place/<name>/@<lat>,<long>,15z |
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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>日本の都道府県一覧</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
| <script src="http://code.jquery.com/jquery-3.1.1.min.js"></script> | |
| <script> | |
| jQuery(function ($) { |