No. | 分類 | 項目 | メモ・計算欄 | |
---|---|---|---|---|
1 | 個人 | 生きている |
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
{ | |
init: function (elevators, floors) { | |
var maxFloor = 0; | |
var upQueue = []; | |
var downQueue = []; | |
var idleQueue = []; | |
for (var f of floors) { | |
maxFloor = Math.max(maxFloor, f.floorNum()); | |
} |
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
@set echo off | |
set MSYS2_PATH_TYPE=inherit | |
C:\msys64\_mingw64 bash -s 'cd %CD%' |
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
CupYakisobaPurchaseObservable.get() | |
.flatMap(cupYakisoba => cupYakisoba.open()) // カップ焼きそばを空けます | |
.flatMap({kayakuBag, sauceBag, cup, noodle, lid} => // かやく袋、ソース袋を確認します | |
Rx.Observable | |
.combileLatest(kayakuBag.open(), Boiled100DegreesWaterObservable.get(), // かやく袋を空けます、沸騰したお湯を用意します | |
(kayaku, water) => cup.put(noodle).put(kayaku).put(water).put(lid) // 容器に麺とかやくとお湯を入れ、蓋をします | |
) | |
.delay(_ => Rx.Observable.timer(3 * 60 * 1000)) // 3分待ちます | |
.flatMap(boiledCupYakisoba => boiledCupYakisoba.yugiri()) // 湯切りします | |
.flatMap(yugiriedCupYakisoba => |
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
package tasker | |
import ( | |
"gopkg.in/yaml.v2" | |
) | |
type Config struct { | |
OptionSets OptionSets `yaml:"options"` | |
NodeSets NodeSets `yaml:"nodes"` | |
Tasks Tasks `yaml:"tasks"` |
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>HTML5 Features Test</title> | |
</head> | |
<body> | |
<input id="file" type="file" name="image" onchange="fileTest(this);" /> | |
<script> | |
var createObjectURL = (window.URL && window.URL.createObjectURL) ? function(file) { | |
return window.URL.createObjectURL(file); |
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
package cache | |
type Cache struct { | |
entities map[string]Entity | |
getCh chan (keyCh) | |
putCh chan (keyValue) | |
} | |
type Entity interface{} |
NewerOlder