Skip to content

Instantly share code, notes, and snippets.

crong crongro

Block or report user

Report or block crongro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@crongro
crongro / .block
Created May 6, 2019 — forked from mbostock/.block
Radial Tidy Tree
View .block
license: gpl-3.0
border: no
height: 1060
redirect: https://beta.observablehq.com/@mbostock/d3-radial-tidy-tree
@crongro
crongro / radial-tidy-tree.js
Last active May 6, 2019
radial tidy tree (d3@v4, json based)
View radial-tidy-tree.js
//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
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
:root {
font-size: 16px;
--line: 1px solid #dad3d3
}
li {
list-style: none
}
h1 {
View tabui.css
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;
@crongro
crongro / parse_after.js
Last active Nov 28, 2018
before_after
View parse_after.js
class Data {
constructor(type, value, child) {
this.type = type;
this.value = value;
this.child = child;
}
}
function scan(str) {
@crongro
crongro / polygonfortest.js
Last active Oct 12, 2018
test code source
View polygonfortest.js
export const printExecutionSequence = function() {
console.log(executionSequence.printAsStr());
return executionSequence.printAsStr();
}
export const executionSequence = (function() {
const sequence = [];
return {
update(str) {sequence.push(str);},
printAsStr() {
View _.js
const gpa = (function() {
const gpaTable = {'A+': 4.5, A: 4, 'B+': 3.5, B: 3, 'C+': 2.5, C: 2, D: 1, F:0};
let accumulatedScore = {total: 0, major: 0};
let accumulatedCredit = {total: 0, major: 0};
let lectureListArr = [];
return {
updateScoreAndCredit({major: isMajor, grade, credit}) { //전공여부, 학점, 평점 정보를 계산용 객체에 저장한다
accumulatedScore.total += gpaTable[grade] * credit;
accumulatedCredit.total += credit;
View async_order.js
console.log('script start');
requestAnimationFrame(()=> {
console.log("requestanimationframe");
})
const interval = setInterval(() => {
console.log('setInterval')
}, 0)
@crongro
crongro / todo.css
Last active Sep 4, 2018
todo_mvc_practice
View todo.css
.section-basic-style {
background-color: #a6d0d3;
padding: 1em;
}
.visible {
display : block!important;
}
.container {
You can’t perform that action at this time.