Skip to content

Instantly share code, notes, and snippets.

Ando takuya-andou

Block or report user

Report or block takuya-andou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0f3c2dc446692862bd98
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 (
View gist:ae78cafedbe1ecfc73f1
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
@takuya-andou
takuya-andou / file0.txt
Last active Nov 16, 2015
Macのhomebrewでnkfをインストールしたらalready installed, it's just not linkedと出た時の対策 ref: http://qiita.com/takuya-andou/items/0b9ac47cd5cd19fbc19d
View file0.txt
$ nkf --version
-bash: nkf: command not found
@takuya-andou
takuya-andou / responsive.css
Created Nov 10, 2015
ラジオボタン・チェックボックスの大きさをCSSで変更する方法 ref: http://qiita.com/takuya-andou/items/7487424346a69ad02690
View responsive.css
input[type="radio"] , input[type="checkbox"]{
-webkit-transform: scale(1.5);
transform: scale(1.5);
margin-right: 0.5em;
@takuya-andou
takuya-andou / cronfile.js
Created Dec 10, 2015
myThings + milkcocoaで高齢者見守りデバイスを作ってみた ref: http://qiita.com/takuya-andou/items/d7a8659d55da7c0070ba
View cronfile.js
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();
@takuya-andou
takuya-andou / mail_via_gmail_smtp.php
Last active Dec 17, 2015
How to mail via Gmail' SMTP
View mail_via_gmail_smtp.php
<?php
require_once ( 'PHPMailerAutoload.php' );
$subject = "タイトル";
$body = "メール本文";
$fromname = "誰から";
$from = "from@from.com";
$smtp_user = "gmailアカウント@gmail.com";
$smtp_password = "gmailのパス";
$mail = new PHPMailer();
@takuya-andou
takuya-andou / file0.txt
Created Jan 29, 2016
会社の問い合わせフォームから同一ドメイン(GoogleAppsで管理)にメールが届かなかった問題 ref: http://qiita.com/takuya-andou/items/5e0539690cae229281cb
View file0.txt
mydestination = $myhostname, localhost.$mydomain, localhost
@takuya-andou
takuya-andou / hataraclicker.js
Created Feb 10, 2016
働クリッカーの最速コード
View hataraclicker.js
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);
@takuya-andou
takuya-andou / file0.txt
Created Mar 10, 2016
はてなのAPIを使う際に503エラーが出る問題と解決策 ref: http://qiita.com/takuya-andou/items/97a68bdae1b7050d3fa5
View file0.txt
<?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 ) )
View Bot_Facebook_and_DocomoAPI.php
<?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;
You can’t perform that action at this time.