Chalarangelo/30-seconds-of-code

View on GitHub
public/assets/illustrations/ds-tree.svg

Summary

Maintainability
Test Coverage
<svg width="800" height="381" viewBox="0 0 800 381" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="360" y="41" width="80" height="80" rx="4" fill="#161632"/>
<path d="M377.653 96H372.994L383.463 66.9091H388.534L399.003 96H394.344L386.119 72.1932H385.892L377.653 96ZM378.435 84.608H393.548V88.3011H378.435V84.608ZM403.204 96V66.9091H413.857C415.922 66.9091 417.631 67.25 418.985 67.9318C420.339 68.6042 421.353 69.518 422.025 70.6733C422.697 71.8191 423.033 73.1117 423.033 74.5511C423.033 75.7633 422.811 76.786 422.366 77.6193C421.921 78.4432 421.324 79.1061 420.576 79.608C419.837 80.1004 419.023 80.4602 418.133 80.6875V80.9716C419.099 81.0189 420.041 81.3314 420.96 81.9091C421.888 82.4773 422.655 83.2869 423.261 84.3381C423.867 85.3892 424.17 86.6676 424.17 88.1733C424.17 89.66 423.819 90.9953 423.119 92.179C422.427 93.3532 421.357 94.286 419.908 94.9773C418.46 95.6591 416.608 96 414.354 96H403.204ZM407.593 92.2358H413.928C416.031 92.2358 417.536 91.8286 418.445 91.0142C419.354 90.1998 419.809 89.1818 419.809 87.9602C419.809 87.0417 419.577 86.1989 419.113 85.4318C418.649 84.6648 417.986 84.054 417.124 83.5994C416.272 83.1449 415.259 82.9176 414.085 82.9176H407.593V92.2358ZM407.593 79.4943H413.474C414.459 79.4943 415.344 79.3049 416.13 78.9261C416.925 78.5473 417.555 78.017 418.019 77.3352C418.493 76.6439 418.729 75.8295 418.729 74.892C418.729 73.6894 418.308 72.6809 417.465 71.8665C416.622 71.0521 415.33 70.6449 413.587 70.6449H407.593V79.4943Z" fill="#E3E3E8"/>
<path d="M368.886 46.3636V58H367.824V47.4773H367.756L365.028 49.2898V48.1875L367.778 46.3636H368.886Z" fill="#E3E3E8"/>
<rect x="236" y="165" width="80" height="80" rx="4" fill="#161632"/>
<path d="M252.653 220H247.994L258.463 190.909H263.534L274.003 220H269.344L261.119 196.193H260.892L252.653 220ZM253.435 208.608H268.548V212.301H253.435V208.608ZM300.999 200.369H296.567C296.396 199.422 296.079 198.589 295.615 197.869C295.151 197.15 294.583 196.539 293.911 196.037C293.238 195.535 292.485 195.156 291.652 194.901C290.828 194.645 289.952 194.517 289.024 194.517C287.348 194.517 285.847 194.938 284.521 195.781C283.205 196.624 282.163 197.86 281.396 199.489C280.639 201.117 280.26 203.106 280.26 205.455C280.26 207.822 280.639 209.82 281.396 211.449C282.163 213.078 283.21 214.309 284.536 215.142C285.861 215.975 287.353 216.392 289.01 216.392C289.929 216.392 290.8 216.269 291.624 216.023C292.457 215.767 293.21 215.393 293.882 214.901C294.554 214.408 295.123 213.807 295.587 213.097C296.06 212.377 296.387 211.553 296.567 210.625L300.999 210.639C300.762 212.069 300.303 213.385 299.621 214.588C298.948 215.781 298.082 216.813 297.021 217.685C295.97 218.546 294.768 219.214 293.413 219.688C292.059 220.161 290.582 220.398 288.982 220.398C286.463 220.398 284.218 219.801 282.249 218.608C280.279 217.405 278.726 215.687 277.589 213.452C276.463 211.217 275.899 208.551 275.899 205.455C275.899 202.348 276.467 199.683 277.604 197.457C278.74 195.223 280.293 193.509 282.263 192.315C284.232 191.113 286.472 190.511 288.982 190.511C290.525 190.511 291.964 190.734 293.3 191.179C294.644 191.615 295.852 192.259 296.922 193.111C297.992 193.954 298.877 194.986 299.578 196.207C300.279 197.42 300.752 198.807 300.999 200.369Z" fill="#E3E3E8"/>
<path d="M244.886 170.364V182H243.824V171.477H243.756L241.028 173.29V172.188L243.778 170.364H244.886ZM252.011 170.364V182H250.949V171.477H250.881L248.153 173.29V172.188L250.903 170.364H252.011Z" fill="#E3E3E8"/>
<rect x="484" y="165" width="80" height="80" rx="4" fill="#161632"/>
<path d="M499.196 220V190.909H509.849C511.914 190.909 513.623 191.25 514.977 191.932C516.331 192.604 517.345 193.518 518.017 194.673C518.689 195.819 519.026 197.112 519.026 198.551C519.026 199.763 518.803 200.786 518.358 201.619C517.913 202.443 517.316 203.106 516.568 203.608C515.83 204.1 515.015 204.46 514.125 204.688V204.972C515.091 205.019 516.033 205.331 516.952 205.909C517.88 206.477 518.647 207.287 519.253 208.338C519.859 209.389 520.162 210.668 520.162 212.173C520.162 213.66 519.812 214.995 519.111 216.179C518.42 217.353 517.349 218.286 515.901 218.977C514.452 219.659 512.6 220 510.347 220H499.196ZM503.585 216.236H509.92C512.023 216.236 513.528 215.829 514.438 215.014C515.347 214.2 515.801 213.182 515.801 211.96C515.801 211.042 515.569 210.199 515.105 209.432C514.641 208.665 513.978 208.054 513.116 207.599C512.264 207.145 511.251 206.918 510.077 206.918H503.585V216.236ZM503.585 203.494H509.466C510.451 203.494 511.336 203.305 512.122 202.926C512.918 202.547 513.547 202.017 514.011 201.335C514.485 200.644 514.722 199.83 514.722 198.892C514.722 197.689 514.3 196.681 513.457 195.866C512.615 195.052 511.322 194.645 509.58 194.645H503.585V203.494ZM549.53 200.369H545.098C544.928 199.422 544.61 198.589 544.146 197.869C543.682 197.15 543.114 196.539 542.442 196.037C541.769 195.535 541.017 195.156 540.183 194.901C539.359 194.645 538.483 194.517 537.555 194.517C535.879 194.517 534.378 194.938 533.053 195.781C531.736 196.624 530.695 197.86 529.928 199.489C529.17 201.117 528.791 203.106 528.791 205.455C528.791 207.822 529.17 209.82 529.928 211.449C530.695 213.078 531.741 214.309 533.067 215.142C534.393 215.975 535.884 216.392 537.541 216.392C538.46 216.392 539.331 216.269 540.155 216.023C540.988 215.767 541.741 215.393 542.413 214.901C543.086 214.408 543.654 213.807 544.118 213.097C544.591 212.377 544.918 211.553 545.098 210.625L549.53 210.639C549.293 212.069 548.834 213.385 548.152 214.588C547.48 215.781 546.613 216.813 545.553 217.685C544.501 218.546 543.299 219.214 541.945 219.688C540.59 220.161 539.113 220.398 537.513 220.398C534.994 220.398 532.75 219.801 530.78 218.608C528.81 217.405 527.257 215.687 526.121 213.452C524.994 211.217 524.43 208.551 524.43 205.455C524.43 202.348 524.999 199.683 526.135 197.457C527.271 195.223 528.824 193.509 530.794 192.315C532.764 191.113 535.003 190.511 537.513 190.511C539.056 190.511 540.496 190.734 541.831 191.179C543.176 191.615 544.383 192.259 545.453 193.111C546.523 193.954 547.409 194.986 548.109 196.207C548.81 197.42 549.284 198.807 549.53 200.369Z" fill="#E3E3E8"/>
<path d="M492.886 170.364V182H491.824V171.477H491.756L489.028 173.29V172.188L491.778 170.364H492.886ZM496.42 182V181.222L500.222 176.949C500.718 176.388 501.117 175.909 501.42 175.511C501.723 175.114 501.943 174.746 502.08 174.409C502.22 174.072 502.29 173.722 502.29 173.358C502.29 172.915 502.186 172.528 501.977 172.199C501.773 171.866 501.491 171.606 501.131 171.42C500.771 171.235 500.366 171.142 499.915 171.142C499.438 171.142 499.019 171.244 498.659 171.449C498.303 171.653 498.027 171.934 497.83 172.29C497.633 172.646 497.534 173.055 497.534 173.517H496.517C496.517 172.873 496.665 172.303 496.96 171.807C497.259 171.307 497.667 170.915 498.182 170.631C498.701 170.347 499.288 170.205 499.943 170.205C500.591 170.205 501.167 170.345 501.67 170.625C502.174 170.902 502.57 171.278 502.858 171.756C503.146 172.233 503.29 172.767 503.29 173.358C503.29 173.786 503.214 174.201 503.062 174.602C502.915 175.004 502.659 175.451 502.295 175.943C501.932 176.436 501.428 177.038 500.784 177.75L497.898 180.972V181.045H503.653V182H496.42Z" fill="#E3E3E8"/>
<rect x="360" y="289" width="80" height="80" rx="4" fill="#161632"/>
<path d="M374.196 344V314.909H384.849C386.914 314.909 388.623 315.25 389.977 315.932C391.331 316.604 392.345 317.518 393.017 318.673C393.689 319.819 394.026 321.112 394.026 322.551C394.026 323.763 393.803 324.786 393.358 325.619C392.913 326.443 392.316 327.106 391.568 327.608C390.83 328.1 390.015 328.46 389.125 328.688V328.972C390.091 329.019 391.033 329.331 391.952 329.909C392.88 330.477 393.647 331.287 394.253 332.338C394.859 333.389 395.162 334.668 395.162 336.173C395.162 337.66 394.812 338.995 394.111 340.179C393.42 341.353 392.349 342.286 390.901 342.977C389.452 343.659 387.6 344 385.347 344H374.196ZM378.585 340.236H384.92C387.023 340.236 388.528 339.829 389.438 339.014C390.347 338.2 390.801 337.182 390.801 335.96C390.801 335.042 390.569 334.199 390.105 333.432C389.641 332.665 388.978 332.054 388.116 331.599C387.264 331.145 386.251 330.918 385.077 330.918H378.585V340.236ZM378.585 327.494H384.466C385.451 327.494 386.336 327.305 387.122 326.926C387.918 326.547 388.547 326.017 389.011 325.335C389.485 324.644 389.722 323.83 389.722 322.892C389.722 321.689 389.3 320.681 388.457 319.866C387.615 319.052 386.322 318.645 384.58 318.645H378.585V327.494ZM420.055 324.099C419.781 323.238 419.411 322.466 418.947 321.784C418.493 321.093 417.948 320.506 417.314 320.023C416.679 319.53 415.955 319.156 415.141 318.901C414.336 318.645 413.45 318.517 412.484 318.517C410.846 318.517 409.369 318.938 408.053 319.781C406.736 320.624 405.695 321.86 404.928 323.489C404.17 325.108 403.791 327.092 403.791 329.44C403.791 331.798 404.175 333.792 404.942 335.42C405.709 337.049 406.76 338.285 408.095 339.128C409.43 339.971 410.95 340.392 412.655 340.392C414.236 340.392 415.614 340.07 416.788 339.426C417.972 338.782 418.886 337.873 419.53 336.699C420.183 335.515 420.51 334.123 420.51 332.523L421.646 332.736H413.322V329.114H424.757V332.423C424.757 334.866 424.236 336.988 423.195 338.787C422.162 340.577 420.732 341.959 418.905 342.935C417.087 343.91 415.003 344.398 412.655 344.398C410.022 344.398 407.712 343.792 405.723 342.58C403.744 341.367 402.2 339.649 401.092 337.423C399.984 335.188 399.43 332.537 399.43 329.469C399.43 327.149 399.752 325.065 400.396 323.219C401.04 321.372 401.945 319.805 403.109 318.517C404.284 317.22 405.661 316.23 407.243 315.548C408.834 314.857 410.571 314.511 412.456 314.511C414.028 314.511 415.491 314.743 416.845 315.207C418.209 315.671 419.421 316.33 420.482 317.182C421.552 318.034 422.437 319.047 423.138 320.222C423.839 321.386 424.312 322.679 424.558 324.099H420.055Z" fill="#E3E3E8"/>
<path d="M368.886 294.364V306H367.824V295.477H367.756L365.028 297.29V296.188L367.778 294.364H368.886ZM372.42 306V305.222L376.222 300.949C376.718 300.388 377.117 299.909 377.42 299.511C377.723 299.114 377.943 298.746 378.08 298.409C378.22 298.072 378.29 297.722 378.29 297.358C378.29 296.915 378.186 296.528 377.977 296.199C377.773 295.866 377.491 295.606 377.131 295.42C376.771 295.235 376.366 295.142 375.915 295.142C375.438 295.142 375.019 295.244 374.659 295.449C374.303 295.653 374.027 295.934 373.83 296.29C373.633 296.646 373.534 297.055 373.534 297.517H372.517C372.517 296.873 372.665 296.303 372.96 295.807C373.259 295.307 373.667 294.915 374.182 294.631C374.701 294.347 375.288 294.205 375.943 294.205C376.591 294.205 377.167 294.345 377.67 294.625C378.174 294.902 378.57 295.278 378.858 295.756C379.146 296.233 379.29 296.767 379.29 297.358C379.29 297.786 379.214 298.201 379.062 298.602C378.915 299.004 378.659 299.451 378.295 299.943C377.932 300.436 377.428 301.038 376.784 301.75L373.898 304.972V305.045H379.653V306H372.42ZM385.777 294.364V306H384.714V295.477H384.646L381.919 297.29V296.188L384.669 294.364H385.777Z" fill="#E3E3E8"/>
<path d="M439.061 117.939C438.475 117.354 437.525 117.354 436.939 117.939C436.354 118.525 436.354 119.475 436.939 120.061L439.061 117.939ZM488 169L483.517 152.27L471.27 164.517L488 169ZM436.939 120.061L477.393 160.515L479.515 158.393L439.061 117.939L436.939 120.061Z" fill="#E3E3E8"/>
<path d="M363.061 120.061C363.646 119.475 363.646 118.525 363.061 117.939C362.475 117.354 361.525 117.354 360.939 117.939L363.061 120.061ZM312 169L328.73 164.517L316.483 152.27L312 169ZM360.939 117.939L320.485 158.393L322.607 160.515L363.061 120.061L360.939 117.939Z" fill="#E3E3E8"/>
<path d="M487.061 244.061C487.646 243.475 487.646 242.525 487.061 241.939C486.475 241.354 485.525 241.354 484.939 241.939L487.061 244.061ZM436 293L452.73 288.517L440.483 276.27L436 293ZM484.939 241.939L444.485 282.393L446.607 284.515L487.061 244.061L484.939 241.939Z" fill="#E3E3E8"/>
<path d="M379.003 35V21.9091H380.477V23.9205H380.588C380.849 23.2614 381.304 22.7301 381.952 22.3267C382.605 21.9176 383.344 21.7131 384.168 21.7131C384.293 21.7131 384.432 21.7159 384.585 21.7216C384.739 21.7273 384.866 21.733 384.969 21.7386V23.2812C384.901 23.2699 384.781 23.2528 384.611 23.2301C384.44 23.2074 384.256 23.196 384.057 23.196C383.375 23.196 382.767 23.3409 382.233 23.6307C381.705 23.9148 381.287 24.3097 380.98 24.8153C380.673 25.321 380.52 25.8977 380.52 26.5455V35H379.003ZM392.247 35.2727C391.116 35.2727 390.116 34.9858 389.247 34.4119C388.384 33.8381 387.707 33.0455 387.219 32.0341C386.73 31.017 386.486 29.8437 386.486 28.5142C386.486 27.1733 386.73 25.9943 387.219 24.9773C387.707 23.9545 388.384 23.1591 389.247 22.5909C390.116 22.017 391.116 21.7301 392.247 21.7301C393.378 21.7301 394.375 22.017 395.239 22.5909C396.102 23.1648 396.778 23.9602 397.267 24.9773C397.761 25.9943 398.009 27.1733 398.009 28.5142C398.009 29.8437 397.764 31.017 397.276 32.0341C396.787 33.0455 396.108 33.8381 395.239 34.4119C394.375 34.9858 393.378 35.2727 392.247 35.2727ZM392.247 33.8835C393.156 33.8835 393.926 33.6392 394.557 33.1506C395.188 32.6619 395.665 32.0114 395.989 31.1989C396.318 30.3864 396.483 29.4915 396.483 28.5142C396.483 27.5369 396.318 26.6392 395.989 25.821C395.665 25.0028 395.188 24.3466 394.557 23.8523C393.926 23.358 393.156 23.1108 392.247 23.1108C391.344 23.1108 390.574 23.358 389.938 23.8523C389.307 24.3466 388.827 25.0028 388.497 25.821C388.173 26.6392 388.011 27.5369 388.011 28.5142C388.011 29.4915 388.173 30.3864 388.497 31.1989C388.827 32.0114 389.307 32.6619 389.938 33.1506C390.568 33.6392 391.338 33.8835 392.247 33.8835ZM406.427 35.2727C405.296 35.2727 404.296 34.9858 403.427 34.4119C402.563 33.8381 401.887 33.0455 401.398 32.0341C400.91 31.017 400.665 29.8437 400.665 28.5142C400.665 27.1733 400.91 25.9943 401.398 24.9773C401.887 23.9545 402.563 23.1591 403.427 22.5909C404.296 22.017 405.296 21.7301 406.427 21.7301C407.558 21.7301 408.555 22.017 409.418 22.5909C410.282 23.1648 410.958 23.9602 411.447 24.9773C411.941 25.9943 412.188 27.1733 412.188 28.5142C412.188 29.8437 411.944 31.017 411.455 32.0341C410.967 33.0455 410.288 33.8381 409.418 34.4119C408.555 34.9858 407.558 35.2727 406.427 35.2727ZM406.427 33.8835C407.336 33.8835 408.106 33.6392 408.737 33.1506C409.367 32.6619 409.844 32.0114 410.168 31.1989C410.498 30.3864 410.663 29.4915 410.663 28.5142C410.663 27.5369 410.498 26.6392 410.168 25.821C409.844 25.0028 409.367 24.3466 408.737 23.8523C408.106 23.358 407.336 23.1108 406.427 23.1108C405.523 23.1108 404.754 23.358 404.117 23.8523C403.487 24.3466 403.006 25.0028 402.677 25.821C402.353 26.6392 402.191 27.5369 402.191 28.5142C402.191 29.4915 402.353 30.3864 402.677 31.1989C403.006 32.0114 403.487 32.6619 404.117 33.1506C404.748 33.6392 405.518 33.8835 406.427 33.8835ZM420.675 21.9091V23.2301H414.428V21.9091H420.675ZM416.379 18.7727H417.905V31.5824C417.905 32.1278 417.999 32.5568 418.186 32.8693C418.374 33.1761 418.618 33.3949 418.919 33.5256C419.22 33.6506 419.541 33.7131 419.882 33.7131C420.081 33.7131 420.251 33.7017 420.393 33.679C420.536 33.6506 420.661 33.6222 420.768 33.5938L421.092 34.9659C420.945 35.0227 420.763 35.0739 420.547 35.1193C420.331 35.1705 420.064 35.196 419.746 35.196C419.189 35.196 418.652 35.0739 418.135 34.8295C417.624 34.5852 417.203 34.2216 416.874 33.7386C416.544 33.2557 416.379 32.6562 416.379 31.9403V18.7727Z" fill="#C7C7D1"/>
</svg>