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 findMax(arr) { | |
// 空欄 | |
} | |
const result1 = findMax([2, 5, 1, 8, 3]) | |
console.log(result1) // 8とでる | |
const result2 = findMax([10, 49, 1380, 7, 269, 1095]) | |
console.log(result2) // 1380とでる |
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
// 呼ぶと足し算した結果を返すけど、100以上だったら100を返す | |
// 関数となるよう、空欄を埋めてね | |
function myAdd(a1, a2) { | |
// 空欄 | |
} | |
const result1 = myAdd(35, 54) | |
console.log(result1) // 89とでる | |
const result2 = myAdd(77, 28) |
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 myAdd(a1, a2) { | |
// 空欄 | |
} | |
const a = 19 | |
const b = 31 | |
const result = myAdd(a, b) | |
console.log(result) |
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> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const openIndexedDB = (name, version, onupgradeneeded) => | |
new Promise((resolve, reject) => { | |
const r = indexedDB.open(name, version); | |
r.onupgradeneeded = (ev) => { |
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 MediaProjectionModel extends Activity { | |
private MediaProjectionManager mediaProjectionManager = null; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState) | |
mediaProjectionManager = <MediaProjectionManager>getSystemService(Service.MEDIA_PROJECTION_SERVICE); | |
startActivityForResult(mediaProjectionManager.createScreenCaptureIntent(), REQUEST_CAPTURE) | |
} |
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
// 本スクリプトのご利用は自己責任でお願いします。 | |
// もし本スクリプトの利用により損害等が発生したとき、著者は責任をおいかねます。 | |
const isKagawa = () => { | |
if (window.confirm('本サービスはゲーム要素を含んでいます。あなたは香川県民ですか?')) { | |
window.location.href = '< replace here >'; | |
return; | |
} | |
}; |
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> | |
<title>CSS Lesson</title> | |
<style> | |
body,header,main { | |
margin: 0; | |
padding: 0; | |
} | |
header { |
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
00000000 | |
00 00 | |
00 0 0 | |
0 0 0 00 0 | |
0 00 00 0 | |
0 00 0 0 0 0 | |
0 0000 0000 00 | |
0 00 000000 0 | |
0 0 0 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
LOOP = 50 | |
# Type 1. 現行のように、売却益がでた時点で20%課税する方式 | |
def calcNext(v): | |
# 1.1倍になったら、売却 | |
nextVal = v * 1.1 | |
# 売却益に対して20%を税金とする | |
tax = (nextVal - v) * 0.2 | |
return nextVal - tax, tax |
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 Moke { | |
private void doSomething() { | |
switch (id) { | |
case 1: { | |
... | |
} break; | |
case 2: { | |
... | |
} break; |
NewerOlder