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 | |
define( "O_SYSTEM_CRYPT_KEY" , "OrehaJaian!Gakidaisho!OiNobitaButtobasuzo!" ); // 暗号化キー | |
define( "REPLACE_MAIL_ADDRESS" , "replace-email-address@example.com" ); // 置換対象となるメールアドレス | |
// コンタクトフォーム7にhiddenフィールドを追加 | |
add_filter( 'wpcf7_form_hidden_fields', 'oc_wpcf7_form_hidden_fields'); | |
function oc_wpcf7_form_hidden_fields( $hidden ) { | |
$email = "hogehoge@example.com"; // 送信したいアドレスをhiddenフィールドに暗号化して設定しておく | |
$cript_mail = openssl_encrypt($email, 'AES-128-ECB', O_SYSTEM_CRYPT_KEY); |
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
{ | |
"liveSassCompile.settings.formats":[ | |
{ | |
"format": "expanded", | |
"extensionName": ".css", | |
"savePath": "~/../" | |
} | |
], | |
"liveSassCompile.settings.excludeList": [ | |
"**/node_modules/**", |
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
{ | |
"protocol": "sftp", | |
"host": "aeXXX.secure.ne.jp", | |
"username": "aeXXXXXXX_username", | |
"password": "P@ssW0rd", | |
"ignore": [".editorconfig"], | |
"remotePath": "/html", | |
"port" : 10397 | |
} |
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 | |
/** | |
* セルの書式を指定位置にコピーする | |
* @param $from_cells コピー元のセル範囲 | |
* @param $to_cell コピー先の左上のセル | |
* @param $copycount コピーを繰り返す回数(下へコピーするのみ) | |
*/ | |
public function copy_cells_format($from_cells, $to_cell, $copycount=1) { | |
// ---------------------------------------- |
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
Encoding.default_external = "UTF-8" | |
http_path = "/" | |
css_dir = "/wp-content/themes/THEME_NAME/css/" | |
sass_dir = "/wp-content/themes/THEME_NAME/scss/" | |
images_dir = "/wp-content/themes/THEME_NAME/images/" | |
javascripts_dir = "/wp-content/themes/THEME_NAME/js/" | |
fonts_dir = "/wp-content/themes/THEME_NAME/fonts/" | |
output_style = :expanded # :expanded or :nested or :compact or :compressed |
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
# .htaccessの上の方に追加 | |
# TOPページへのPOSTアクセスを拒否 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/$ | |
RewriteCond %{REQUEST_METHOD} ^POST | |
RewriteRule .* - [F] | |
</IfModule> |
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 | |
$PATH_TARGET = "/PATH/TO/TARGET/"; | |
$PATH_SAVE = "/PATH/TO/SAVE/"; | |
// zip name | |
$file_name = "backup.zip"; | |
$command = " | |
cd ". $PATH_TARGET ." | |
zip -qr ". $PATH_SAVE . $file_name ." . "; |
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
#!/usr/local/bin/perl | |
print "Content-type: text/plain\n\n"; | |
print "Hello !\n"; |
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
<!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 ($) { |
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
参考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 |
NewerOlder