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
| function isLeapYear(year) { | |
| if (year % 400 === 0) { | |
| return true; | |
| } | |
| if (year % 100 === 0) { | |
| return false; | |
| } | |
| if (year % 4 === 0) { | |
| return true; | |
| } |
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
Show hidden characters
| { | |
| "plugins": [["@babel/plugin-proposal-decorators", { "version": "2021-12" }]] | |
| } |
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
| <?php | |
| namespace RadioControllerCar; | |
| /* ラジコンの抽象クラス */ | |
| interface CarInterface | |
| { | |
| public function send($message); | |
| } |
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
| function sleep(n) { | |
| return new Promise(resolve => setTimeout(resolve, n)); | |
| } | |
| (async () => { | |
| console.log(Date.now()); | |
| await sleep(1000); | |
| console.log(Date.now()); | |
| })(); |
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
| const { series, src, dest } = require('gulp'); | |
| const debug = require('gulp-debug'); | |
| function hoge1 () { | |
| return src('src') | |
| .pipe(debug({title: 'hoge1'})) | |
| .pipe(dest('hoge')); | |
| } | |
| function hoge2 () { | |
| return src('src') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| const { parseSchema } = require('json-schema-to-flow-type') | |
| const schema = require('./opeanapi.json') | |
| const flow = parseSchema(schema, {'http://json-schema.org/draft-04/schema': 'scheama.json'}) | |
| console.log(`// @flow\n\n${flow}`) |
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
| openapi: 3.0.0 | |
| servers: | |
| - url: 'https://api.chatwork.com/v2' | |
| info: | |
| title: ChatWork API | |
| version: "v2-oas3" | |
| paths: | |
| /contacts: | |
| get: | |
| responses: |
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
| # 構造体定義 | |
| defmodule Cat do | |
| defstruct [:name] | |
| end | |
| defmodule Dog do | |
| defstruct [:name] | |
| end | |
| # インターフェイス定義 |
NewerOlder