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 interface BrewingMethod { | |
public String brew(); | |
} |
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.util.concurrent.CountDownLatch; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class App { | |
private static final int COUNT = 10; | |
public static void main( String[] args ) throws InterruptedException { | |
// 10回カウントするCountDownLatchを生成 | |
CountDownLatch countDownLatch = new CountDownLatch(COUNT); | |
// Threadを3つ生成するExecutorServiceを生成 |
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
# -*- coding: utf-8 -*- | |
import lxml.html as lh | |
import argparse | |
import datetime | |
from urllib import request | |
def CALC_OLD(birth_year): | |
today = datetime.date.today() | |
year = today.year |
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
(function() { | |
var click = function() { | |
alert("入れ替え後のイベント"); | |
}; | |
var load = function() { | |
// htmlの書き換え | |
var h1 = document.createElement('h3'); | |
h1.setAttribute("class", "message"); | |
h1.innerHTML = "checkerが有効です"; | |
document.body.insertBefore(h1, document.body.firstChild); |
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 Main { | |
public static final String URL = "jdbc:h2:tcp://localhost/~/demo_jdbc"; | |
public static final String USER = "demo_user"; | |
public static final String PASSWORD = "demo"; | |
public static void main(String... args) { | |
Main main = new Main(); | |
main.insert(10, "山田 たろう"); | |
//... | |
} |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.1.0/rx.lite.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
var inputStream = Rx.Observable.fromEvent($('#query'), 'keyup') | |
.pluck('target', 'value') | |
.throttle(300) | |
.filter(function(text) {return text.length > 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script> | |
function ViewModel() { | |
this.email = observable(); |
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
@startuml | |
participant load | |
participant event | |
participant viewModel | |
participant observer | |
participant bindViewModel | |
participant view | |
== Initialization == |
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"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.1.0/rx.lite.js"></script> | |
<title>JS Bin</title> | |
</head> | |
<body> |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, {Component} from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, |
OlderNewer