View machine.js
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 fetchMachine = Machine({ | |
id: 'fetch', | |
initial: 'idle', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
idle: { |
View machine.js
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
View auto-merge.yml
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
name: "PR Merge on time v2" | |
on: | |
schedule: | |
- cron: '00 13,16 * * *' | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: |
View .block
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
license: gpl-3.0 | |
border: no | |
height: 1060 | |
redirect: https://beta.observablehq.com/@mbostock/d3-radial-tidy-tree |
View radial-tidy-tree.js
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
//idea : https://gist.github.com/mbostock/4063550 | |
/* | |
* [renderSVG function] | |
* @d3 : d3 object (version 4.13.0) | |
* @data : json data (e.g. flare.json) | |
*/ | |
export const renderSVG = (d3, data) => { | |
const svg = d3.select("svg"), |
View main.js
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 sum = require("util"); | |
function runProgram(arr) { | |
const result = sum(arr); | |
return `result is ${result}`; | |
} | |
const result = runProgram([undefined, 1,2,3,4,5,-1,"3"]); | |
console.log(result); //result is 14 |
View qna.css
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
:root { | |
font-size: 16px; | |
--line: 1px solid #dad3d3 | |
} | |
li { | |
list-style: none | |
} | |
h1 { |
View tabui.css
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
header,nav,section,div,footer,ul,dd {margin:0;padding:0;} | |
li{list-style: none;} | |
dt { | |
font-weight: bold; | |
font-size: 1.2em; | |
margin-bottom: 5px; | |
} | |
dl { | |
float: left; |
View parse_after.js
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
class Data { | |
constructor(type, value, child) { | |
this.type = type; | |
this.value = value; | |
this.child = child; | |
} | |
} | |
function scan(str) { |
View polygonfortest.js
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 const printExecutionSequence = function() { | |
console.log(executionSequence.printAsStr()); | |
return executionSequence.printAsStr(); | |
} | |
export const executionSequence = (function() { | |
const sequence = []; | |
return { | |
update(str) {sequence.push(str);}, | |
printAsStr() { |
NewerOlder