View HttpPostSuccess.java
public JSONObject post(String urlString) throws Exception{
URL url = new URL(urlString);
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
con.setConnectTimeout(Const.HTTP_CONNECT_TIMEOUT);
con.setReadTimeout(Const.HTTP_READ_TIMEOUT);
con.setUseCaches(false);
con.setDoInput(true);
con.setDoOutput(true);
con.setChunkedStreamingMode(0);
View HttpPostFailure.java
public JSONObject post(String urlString) throws Exception{
URL url = new URL(urlString);
HttpsURLConnection con = (HttpsURLConnection) url.openConnection();
con.setConnectTimeout(Const.HTTP_CONNECT_TIMEOUT);
con.setReadTimeout(Const.HTTP_READ_TIMEOUT);
con.setUseCaches(false);
con.setDoInput(true);
con.setDoOutput(true);
con.setChunkedStreamingMode(0);
View completeAuthorization.php
<?php
// Base URL
$baseUrl = 'https://api.fitbit.com';
// Request token path
$req_url = $baseUrl . '/oauth/request_token';
// Authorization path
//【変更】
//$authurl = $baseUrl . '/oauth/authorize';
View enable_vbs.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"140C"=dword:00000000
View ShowMessage.java
/**
* メッセージ表示
*/
private void showMessage(){
final String KEY_OF_PREFERENCES = "KEY_OF_PREFERENCES";
final SharedPreferences preferences = getPreferences(MODE_PRIVATE);
boolean showMessage = preferences.getBoolean(KEY_OF_PREFERENCES, true);
if(showMessage) {
new AlertDialog.Builder(MainActivity.this)
View Main.java
import java.util.List;
import java.util.ArrayList;
public class Main{
public static void main(String[] args) {
List<String> list = new ArrayList();
list.add("one");
View hello.html
<!-- hello.html -->
<html>
<head>
<title>Angular 2 Quickstart</title>
<script src="https://github.jspm.io/jmcriffey/bower-traceur-runtime@0.0.87/traceur-runtime.js">
</script>
<script src="https://jspm.io/system@0.16.js">
</script>
<script src="https://code.angularjs.org/2.0.0-alpha.23/angular2.dev.js">
</script>
View seleniumtest_4445.rb
#!/usr/bin/ruby
require 'rubygems'
require 'selenium-webdriver'
#driver = Selenium::WebDriver.for :ie
caps = Selenium::WebDriver::Remote::Capabilities.internet_explorer(
:javascript_enabled => true)
driver = Selenium::WebDriver.for(:remote
View seleniumtest.rb
#!/usr/bin/ruby
require 'rubygems'
require 'selenium-webdriver'
#driver = Selenium::WebDriver.for :ie
caps = Selenium::WebDriver::Remote::Capabilities.internet_explorer(
:javascript_enabled => true)
View mecabtest.php
<?php
dl('mecab.so');
$t = new MeCab_Tagger();
$str = 'すもももももももものうち';
echo $t->parse($str);