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> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="js/vender/bootstrap-3.3.5-dist/css/bootstrap.css" rel="stylesheet"> | |
<title>Promise Sample</title> | |
</head> | |
<body> | |
<div class="container"> |
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> | |
<title>Google Map Marker Sample</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> | |
<style> | |
#map_canvas { | |
width: 850px; |
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> | |
<title>sample</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="./js/vendor/jquery-1.11.1.js"></script> | |
<script src="./js/vendor/jquery-cookie/jquery.cookie.js"></script> | |
<script> | |
$(document).ready(function(){ |
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
private void test1() { | |
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss"); | |
Calendar calendar = Calendar.getInstance(); | |
calendar.set(Calendar.HOUR, 0); | |
calendar.set(Calendar.MINUTE, 0); | |
calendar.set(Calendar.SECOND, 0); | |
calendar.set(Calendar.MILLISECOND, 0); | |
for (int i = 0; i < 48; i++) { | |
calendar.add(Calendar.HOUR, 1); | |
System.out.println(format.format(calendar.getTime())); |
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
import java.time.LocalDateTime; | |
import java.time.Month; | |
import java.time.ZoneId; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeFormatter; | |
import java.util.stream.IntStream; | |
/** | |
* Printing Date Time by Java8(Date & Time). |
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
private void zipFromString(){ | |
// zipファイルに含めるファイル(ディレクトリも指定) | |
List<String> files = Arrays.asList( | |
"dir1/test1.txt" | |
, "dir1/dir2/test2.txt"); | |
ZipOutputStream out = null; | |
try { | |
// zipファイル指定 | |
out = new ZipOutputStream(new BufferedOutputStream( | |
new FileOutputStream("/Users/tomo/ziptest/myzip.zip"))); |
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
import flash.events.MouseEvent; | |
import mx.controls.Alert; | |
private function init():void { | |
this.result.text = "0"; | |
this.add1Button.addEventListener(MouseEvent.CLICK, add(1)); | |
this.add2Button.addEventListener(MouseEvent.CLICK, addWithObject(2, this)); | |
this.addDiv.addEventListener(MouseEvent.CLICK, addHistory); | |
} | |
private function add(addVal:int):Function { |
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> | |
<title>Adder Sample(java script)</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="js/libs/jquery/jquery.js" ></script> | |
<script> | |
$(function() { | |
$('#result').text('0'); |
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
import java.time.LocalTime; | |
import java.time.ZoneId; | |
import java.time.format.DateTimeFormatter; | |
import javafx.application.Application; | |
import javafx.concurrent.ScheduledService; | |
import javafx.concurrent.Task; | |
import javafx.geometry.Insets; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; |
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
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Insets; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.HBox; | |
import javafx.scene.text.Text; | |
import javafx.stage.Stage; |