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 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 gulpfile.js
// gulpとgulpプラグインを読み込む。
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
var rev = require('gulp-rev');
var revReplace = require('gulp-rev-replace');
var clean = require('gulp-clean');
// ファイルパス
View gulpfile.js
var gulp = require('gulp');
// gulpプラグイン
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
// タスクを定義
gulp.task('js', function () {
gulp.src([
'./path-to/js/*.js'
View gulpfile.js
var gulp = require('gulp');
// gulpプラグイン
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
// タスクを定義
gulp.task('js', function () {
gulp.src([
'./path-to/js/modernizr-2.6.2.min.js'
View gulpfile.js
var gulp = require('gulp');
// gulpプラグイン
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
// タスクを定義
gulp.task('js1', function () {
gulp.src([
'./path-to/js/modernizr-2.6.2.min.js'
View UppercaseLowercase.swift
// ----------------------------------------
// String型を使った大文字・小文字変換
// ----------------------------------------
let uppercase:String = "TEST"
print( "大文字→小文字:" + uppercase.lowercased() )
let lowercase:String = "test"
print( "小文字→大文字:" + lowercase.uppercased() )
// ----------------------------------------