This file contains hidden or 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> | |
| <script> | |
| let wa_instance = null; | |
| let dom_ready = false; | |
| { | |
| const wasm = atob('AGFzbQEAAAABHAZgAABgAAF/YAF/AX9gAX8AYAJ/fwBgA39/fwADCgkCAwEAAgABBQQFBgEBgAKAAgYJAX8BQZCMwAILBzQGBm1lbW9yeQIABGluaXQACANkb3QABwZnZXRtYXAABghsaWZlZ2FtZQAFBl9zdGFydAADCvg/CUgBAX9BkAwoAgAiASAAQQNqQXxxaiIAQX9MBEBBkAhBMDYCAEF/DwsgAD8AQRB0SwRAQZAIQTA2AgBBfw8LQZAMIAA2AgAgAQuBDQEHfwJAIABFDQAgAEF4aiIDIABBfGooAgAiAUF4cSIAaiEFAkAgAUEBcQ0AIAFBA3FFDQEgAyADKAIAIgJrIgNBpAgoAgAiBEkNASAAIAJqIQAgA0GoCCgCAEcEQCACQf8BTQRAIAMoAggiBCACQQN2IgJBA3RBvAhqRxogBCADKAIMIgFGBEBBlAhBlAgoAgBBfiACd3E2AgAMAwsgBCABNgIMIAEgBDYCCAwCCyADKAIYIQYCQCADIAMoAgwiAUcEQCAEIAMoAggiAk0EQCACKAIMGgsgAiABNgIMIAEgAjYCCAwBCwJAIANBFGoiAigCACIEDQAgA0EQaiICKAIAIgQNAEEAIQEMAQsDQCACIQcgBCIBQRRqIgIoAgAiBA0AIAFBEGohAiABKAIQIgQNAAsgB0EANgIACyAGRQ0BAkAgAyADKAIcIgJBAnRBxApqIgQoAgBGBEAgBCABNgIAIAENAUGYCEGYCCgCAEF+IAJ3cTYCAAwDCyAGQRBBFCAGKAIQIANGG2ogATYCACABRQ0CCyABIAY2AhggAygCECICBEAgASACNgIQIAIgATYCGAsgAygCFCICRQ0BIAEgAjYCFCACIAE2AhgMAQsgBSgCBCIBQQNxQQNH |
This file contains hidden or 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
| // Safari は, ベンダープレフィックスが必要 | |
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| const audiocontext = new AudioContext(); | |
| // Autoplay Policy 対策 | |
| document.addEventListener('click', async () => { | |
| if (audiocontext.state !== 'running') { | |
| await audiocontext.resume(); | |
| } |
This file contains hidden or 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
| 'use strict'; | |
| const chrome = require('chrome-remote-interface'); | |
| const ChromeLauncher = require('chrome-launcher').Launcher; | |
| function launchChrome() { | |
| const launcher = new ChromeLauncher(); | |
| return Promise.resolve(launcher); | |
| } |
This file contains hidden or 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
| window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
| const context = new AudioContext(); | |
| const eg = context.createGain(); | |
| const attack = 0; | |
| const decay = 1; | |
| const sustain = 1; | |
| const release = 0.05; |
This file contains hidden or 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
| def reverse[T](list: List[T]): List[T] = list.foldLeft(Nil: List[T])((a, b) => b :: a) |
This file contains hidden or 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 play.api.libs.json.Json | |
| val json = Json.stringify(Json.obj("threshold" -> 10)) | |
| val parsedJson = Json.parse(json) | |
| val threshold = (parsedJson \"threshold").asOpt[Int].get |
This file contains hidden or 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 tkinter as tk | |
| root = tk.Tk() | |
| root.geometry('800x600') | |
| button = tk.Button(text = "Submit", command = root.quit) | |
| button.pack() | |
| root.mainloop() |
This file contains hidden or 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" /> | |
| <title>Ajax File Uploader</title> | |
| <style type="text/css"> | |
| * { | |
| margin:0px; | |
| padding:0px; |
This file contains hidden or 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
| object Reverser { | |
| def reverse[T](list: List[T]): List[T] = list.foldLeft(List[T]())((x, y) => y :: x) | |
| def main(args: Array[String]): Unit = { | |
| println(reverse(List(1, 2, 3, 4, 5))) | |
| println(reverse(List("a", "b", "c", "d"))) | |
| } | |
| } |
This file contains hidden or 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 junit.tutorial; | |
| public class Calculator { | |
| public int multiply(int x, int y) { | |
| return x * y; | |
| } | |
| public float divide(int x, int y) { | |
| if (y == 0) { |
NewerOlder