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 | |
$cid = ""; | |
if(isset($_COOKIE["ios9tracking"])&&strlen($_COOKIE["ios9tracking"])==36){ | |
$cid = $_COOKIE["ios9tracking"]; | |
}else{ | |
$cid = sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', | |
// 32 bits for "time_low" | |
mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), | |
// 16 bits for "time_mid" | |
mt_rand( 0, 0xffff ), |
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 | |
// see also: http://qiita.com/wings1685/items/9090f59ab09e73f7c8fb | |
if(!isset($_POST["alert"])){ | |
return; | |
} | |
$body = $_POST["alert"]; | |
// おこのみでjsonをdumpする。 |
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
<!--商品とレビュー --> | |
<!-- https://support.google.com/webmasters/answer/146750 --> | |
<!-- https://support.google.com/webmasters/answer/146645 --> | |
<div itemscope itemtype="http://schema.org/Product"> | |
<span itemprop="name">Kenmore White 17" Microwave</span> | |
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' /> | |
<!-- 集計レビュー --> | |
<div itemprop="aggregateRating" | |
itemscope itemtype="http://schema.org/AggregateRating"> |
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
// Export JPEG for WEB with Selection Mask (as PNG) | |
// Written by ku-suke <gachasan@gmail.com> | |
var flag = confirm("Export Selection to PNG.Export original to JPEG."); | |
if(flag){ | |
var docObj = activeDocument; | |
var baseName = docObj.name.substring(0,String(docObj.name).length - 4 ); | |
var folderPath = docObj.path + "/" + baseName; | |
var folderObj = new Folder(folderPath); |