Skip to content

Instantly share code, notes, and snippets.

View shotakeu's full-sized avatar
🤒
Out sick

shotakeu shotakeu

🤒
Out sick
View GitHub Profile
@shotakeu
shotakeu / file0.xml
Last active February 13, 2019 10:06
Android 画面回転時にActivityを再起動させない方法 ref: https://qiita.com/shotakeu/items/adf7fc1661d1b9002448
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:uiOptions="splitActionBarWhenNarrow"
android:configChanges="orientation|screenSize"><!--←コレ-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
@shotakeu
shotakeu / file0.php
Last active November 1, 2016 01:12
【10倍返しだ!!】迷惑メールに仕返しするスクリプトをphpでつくった ref: http://qiita.com/shtr_t/items/3e83a6bdae179ecd1f1a
<?php
$address = array();
$address = array('prprjsjj1737@gmail.com',
'lvnmrmjnn@gmail.com',
'zzqvztopq@gmail.com',
'mizuki_staregg@g.pretty-cat.jp');
$title ="We detect your mail is spam.";
$message = "WE DETECT YOUR MAIL IS SPAM.WE CAN ARREST YOU.";
mb_language("Japanese");
@shotakeu
shotakeu / app.js
Last active December 12, 2017 07:22
【Node.js】Macに接続しているAndroidのWifi情報をブラウザから見る【Android開発支援】 ref: https://qiita.com/shtr_t/items/a3058ae3983afea25842
// 1. expressモジュールをロードし、インスタンス化してappに代入
var express = require("express");
var app = express();
var execSync = require("child_process").execSync;
// 2, listen()メソッドを実行して3000番ポートで待受。
var server = app.listen(3000, function() {
console.log("Node.js is listening to PORT:" + server.address().port);
});
@shotakeu
shotakeu / file0.txt
Last active September 12, 2016 00:57
【Electronを】hello worldするまで【Lubuntu14.04で】 ref: http://qiita.com/shtr_t/items/201e4fb2165c0b5cfd97
$ node -v
プログラム 'node' は以下のパッケージで見つかりました:
* node
* nodejs-legacy
@shotakeu
shotakeu / file0.txt
Last active October 9, 2018 08:17
git stashをコミットもなしに消してしまった時の対応 ref: https://qiita.com/shotakeu/items/430a09dddeeac444dcf6
$ git fsck | awk '/dangling commit/ {print $3}'