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
openapi: 3.0.0 | |
info: | |
title: Backlog API | |
version: 1.0.0 | |
servers: | |
- url: https://xxxx | |
paths: | |
/api/v2/issues: | |
post: | |
operationId: createIssue |
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 math | |
import collections | |
from heapq import * | |
class Node: | |
def __init__(self, id): | |
self.id = id | |
self.edges = [] | |
def add_route(self, to, cost): |
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 math | |
def main(board): | |
helper(board, 0, 0) | |
return board | |
def helper(board, row, column): | |
if len(board[row]) == column: | |
column = 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
import scalaz._ | |
import scala.util.Random | |
object EitherSample{ | |
def main(args: Array[String]): Unit ={ | |
println(for { | |
foo <- doAction("foo") | |
bar <- doAction("hoo") | |
} yield{ | |
for{ |
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
let nodeList = document.querySelectorAll("div") | |
[].forEach.call(nodeList, a => console.log(a.innerText)); |
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
<script> | |
class HelloWorld extends HTMLElement{ | |
constructor(){ | |
//always first | |
super() | |
const shadow = this.attachShadow({mode:'open'}); | |
shadow.innerHTML = | |
` | |
<style> | |
.content { |
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
export class StateTuple<A, S>{ | |
a: A | |
s: S | |
} | |
export class State<S, A>{ | |
run = null; | |
constructor(run: (S) => StateTuple<A, S>){ | |
this.run = run; |
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
<div class="ppap"> | |
</div> |
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 STR_LEN = 80 | |
const SUSHI_INTERVAL =10 | |
let cnt = 0; | |
function sushiDraw(){ | |
const sa = new Array(STR_LEN).fill(' ') | |
for(let i = 0; i < STR_LEN; i += SUSHI_INTERVAL){ | |
const sushiIndex = sa.length - 1 - (cnt + i) % sa.length | |
sa.splice(sushiIndex, 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
export abstract class Either<T, U>{ | |
abstract isRight(): boolean; | |
abstract fold<X>(l: (t: T) => X, r: (u: U) => X): X; | |
isLeft(): boolean{ | |
return !this.isRight(); | |
} | |
map<B>(f: (U) => B): Either<T, B>{ | |
return this.fold( |
NewerOlder