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
// waite loading for 2 sec | |
(function(){ | |
setTimeout("start_function()", 20000); | |
})(); | |
function start_function(){ | |
// your script here | |
} |
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 | |
$user_id = "testid"; | |
$status = file_get_contents("http://opi.yahoo.com/online?u=" . $user_id . "&m=a&t=1"); | |
if($status == "01"){ | |
echo "is online"; | |
}else{ | |
echo "is offline"; | |
} |
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
MediaRecorder mMdeiaRecorder = new MediaRecorder(); | |
// 入力ソースの指定 | |
// ファイルフォーマットの指定 | |
// エンコーダー の指定の順でなければならない | |
// 入力ソース | |
// 録画の入力ソースを指定 | |
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); | |
// 音声の入力ソースを指定 |
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
$(document).ready(function() { | |
// initialize | |
$('input#input_text, textarea#textarea1').characterCounter(); | |
// need this!! | |
$('div.input-field span:last-child').remove(); | |
}); |
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> | |
<head> | |
<!--Import materialize.css--> | |
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> | |
<!--Let browser know website is optimized for mobile--> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
</head> |
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
ToneGenerator toneGenerator | |
= new ToneGenerator(AudioManager.STREAM_SYSTEM, ToneGenerator.MAX_VOLUME); | |
toneGenerator.startTone(ToneGenerator.TONE_PROP_BEEP); |
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
public class SensorActivity extends Activity implements SensorEventListener { | |
Private SensorManager sensorManager; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
// センサーのインスタンス生成 | |
sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE); | |
} |