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 | |
$access_token = "FacebookAPIKey"; | |
$json_string = file_get_contents('php://input'); | |
$json_object = json_decode($json_string); | |
$messaging = $json_object->entry{0}->messaging{0}; | |
define('API_KEY', 'DocomoAPIKey'); | |
require_once(__DIR__ . '/vendor/autoload.php'); | |
use jp3cki\docomoDialogue\Dialogue; |
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 | |
// 取得するフィードURLを指定 | |
$feed = 'http://b.hatena.ne.jp/hotentry?mode=rss' ; | |
// フィードを取得してオブジェクトに変換 | |
$obj = simplexml_load_string( @file_get_contents( $feed ) ) ; | |
// エラー判定 | |
if( !$obj || !isset( $obj->item ) || empty( $obj->item ) ) |
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
start(); | |
loop(function() { | |
for(var i=0;i<10000;i++){ | |
work(); | |
} | |
purchase(4); | |
if(cash>1000000){ | |
for(var t=0;t<110;t++){ | |
if(items["programming"] < 100){ | |
purchase(4); |
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
mydestination = $myhostname, localhost.$mydomain, localhost |
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 | |
require_once ( 'PHPMailerAutoload.php' ); | |
$subject = "タイトル"; | |
$body = "メール本文"; | |
$fromname = "誰から"; | |
$from = "from@from.com"; | |
$smtp_user = "gmailアカウント@gmail.com"; | |
$smtp_password = "gmailのパス"; | |
$mail = new PHPMailer(); |
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
var MilkCocoa = require('milkcocoa'); | |
var milkcocoa = new MilkCocoa('********.mlkcca.com'); | |
var history = milkcocoa.dataStore('door').history(); | |
var execSync = require('child_process').execSync; | |
var myD = new Date(); | |
var myYear = myD.getFullYear(); | |
var myMonth = myD.getMonth(); |
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
input[type="radio"] , input[type="checkbox"]{ | |
-webkit-transform: scale(1.5); | |
transform: scale(1.5); | |
margin-right: 0.5em; |
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
$ nkf --version | |
-bash: nkf: command not found |
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
stdClass::__set_state(array( 'statuses' => array ( 0 => stdClass::__set_state(array( 'metadata' => stdClass::__set_state(array( 'iso_language_code' => 'ja', 'result_type' => 'recent', )), 'created_at' => 'Wed Sep 16 10:04:39 +0000 2015', 'id' => '644089507491418112', 'id_str' => '644089507491418112', 'text' => 'RT @sekaizeki: ウユニ塩湖♡ きれいな夜景と星空♪ http://t.co/6jiWf8Sfc2', 'source' => 'Twitter for iPhone', 'truncated' => false, 'in_reply_to_status_id' => NULL, 'in_reply_to_status_id_str' => NULL, 'in_reply_to_user_id' => NULL, 'in_reply_to_user_id_str' => NULL, 'in_reply_to_screen_name' => NULL, 'user' => stdClass::__set_state(array( 'id' => '3066675853', 'id_str' => '3066675853', 'name' => '亜希羅', 'screen_name' => 'akia524', 'location' => '', 'description' => '', 'url' => NULL, 'entities' => stdClass::__set_state(array( 'description' => stdClass::__set_state(array( 'urls' => array ( ), )), )), 'protected' => false, 'followers_count' => 219, 'friends_count' => 195, 'listed_count' => 0, 'created_at' => 'Sat Mar 07 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
object(stdClass)#3 (2) { ["statuses"]=> array(10) { [0]=> object(stdClass)#8 (26) { ["metadata"]=> object(stdClass)#9 (2) { ["iso_language_code"]=> string(2) "ja" ["result_type"]=> string(6) "recent" } ["created_at"]=> string(30) "Wed Sep 16 10:00:05 +0000 2015" ["id"]=> string(18) "644088356788240386" ["id_str"]=> string(18) "644088356788240386" ["text"]=> string(87) "RT @sekaizeki: ウユニ塩湖♡ きれいな夜景と星空♪ http://t.co/6jiWf8Sfc2" ["source"]=> string(66) "Twitter Web Client" ["truncated"]=> bool(false) ["in_reply_to_status_id"]=> NULL ["in_reply_to_status_id_str"]=> NULL ["in_reply_to_user_id"]=> NULL ["in_reply_to_user_id_str"]=> NULL ["in_reply_to_screen_name"]=> NULL ["user"]=> object(stdClass)#10 (41) { ["id"]=> string(10) "2295134484" ["id_str"]=> string(10) "2295134484" ["name"]=> string(9) "ラオウ" ["screen_name"]=> string(6) "zeong8" ["location"]=> string(12) "東京両国" ["description"]=> string(184) "わんこと楽しく暮らしています、同調できるツイート、私の好きな画像や文章は連続リツイートします。 ご理解よろしくお願いします。" ["url"]=> NULL ["entities"]=> object(stdClass)#11 ( |
NewerOlder