Skip to content
Permalink
Browse files

Adding missing stats and cards, loading conf fiels and such

  • Loading branch information...
Depado committed Sep 3, 2017
1 parent 7fe1c3a commit 9c616af13e47a18f16f0a17b2ab85714f7c35dfe
@@ -12,3 +12,5 @@

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/
conf.yml
rpsheet
@@ -1,2 +1,2 @@
# rpsheet
Experiment with MDL and tabletop RPG data
Experiment with MDL and tabletop RPG data
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M248 20.27L72.33 132.598 248 128.775zm16 0v108.505l175.67 3.823zm37.844 55.066c4.647-.112 9.772 1.762 13.576 3.824 6.082 3.54 8.205 7.248 15.074 4.22 10.698.844 22.297 5.794 27.568 15.68 4.715 4.574 1.555 12.61-5.167 12.65-9.72.06-19.74-6.075-14.563-8.314 4.65-2.01 14.634.886 10.014-5.56-3.632-4.435-11.085-7.78-16.352-5.897-1.59 6.81-9.382 3.996-11.955-.643-2.357-5.815-9.154-8.18-15.085-7.916-6.06 2.703 1.67 8.784 5.344 9.936 7.904 2.124.217 7.454-4.062 5.07-4.28-2.386-14.993-9.645-13.523-18.34 2.188-3.336 5.514-4.623 9.13-4.71zm-94.987.293c5.534.522 12.383 3.06 10.202 9.975-4.282 6.93-9.778 13.057-18.062 14.782-6.514 3.368-14.885 4.397-21.646 1.883-3.604-2.246-13.427-9.325-14.81-3.354-.666 6.2 3.028 15.352-6.106 15.816l-5.02 2.006v-24.46c9.842-3.876 21.037-4.516 30.266 1.335 7.973 4.16 19.38 1.503 24.252-5.783 1.33-6.494-8.162-4.57-12.24-3.336-2.687-8.26 7.87-7.47 13.163-8.865zm35.012 69.282l-186.48 4.06 71.23 192.93zm28.26 0l115.25 196.99 71.23-192.93zm-14.13 7.53l-117.076 200.11h234.152zm122.4 18.132c3.895.046 7.914 1.155 10.942 2.96 13.828 8.237 21.455 26.145 22.056 42.956.084 5.698-1.618 13.246-5.966 17.016-2.85 1.984-6.025 3.198-9.244 4.432-16.824-1.18-23.932-19.237-29.727-32.625-3.405-9.887-5.777-24.05 1.74-31.32 2.533-2.45 6.305-3.465 10.2-3.42zm-227.627 7.707c6.525.26 12.91 4.953 14.844 11.32 2.083 3.974-.562 11.445-4.857 12.09-4.9.734-3.757-9.317-9.344-11.565-5.88-3.69-11.495 4.34-14.166 8.707-.33.96-.695 1.918-.896 2.914 10.397-4.057 20.312 7.093 20.304 16.953-.312 11.67-7.843 24.777-19.705 28.134h-5.564c-12.7-.706-18.296-15.853-14.163-26.63 4.42-15.785 10.772-33.904 27.134-40.6 2.048-1.002 4.24-1.41 6.413-1.323zm228.725 2.95c-7.066-.148-4.38 9.958-3.338 14.456 1.55 10.1 6.458 19.766 13.15 27.293 1.7 1.414 3.663 2.13 5.764 2.727 6.865-1.254 4.47-12.833 3.72-16.535-4.707-10.907-7.057-23.284-19.296-27.942zM52 185.98v173.266l61.86-5.703zm408 0l-61.86 167.563 61.86 5.703zm-117.88.698l28.478 63.492-10.014 4.447-20.027-43.365c-6.02 3.062-12.98 8.95-14.56-1.303-1.344-3.955 8.546-5.1 8.15-11.993-.393-6.892 2.154-12.126 7.972-11.28zm-205.847 24.3c-2.302.156-4.453 1.392-6.148 3.133-2.417 5.077-4.1 10.268-2.695 15.913 1.668 8.807 13.515 6.41 15.576-.85 2.663-4.976 3.863-11.65-.49-15.696-1.722-1.623-3.514-2.38-5.248-2.5-.335-.024-.666-.023-.995 0zm317.48 33.65c3.69.262 5.783 6.924 4.74 11.038-.137 18.62 1.144 39.21-9.677 55.322-.96 1.253-2.258 1.946-3.675 2.56-5.81-4.17-3.01-11.36 1.114-15.566 1.01 7.297 5.573-2.882 6.676-5.56 1.31-3.18 3.52-17.75-.983-10.27.69 4.05-6.805 13.154-9.38 8.118-4.937-14.41-.017-30.488 7.025-43.436 1.526-1.667 2.933-2.292 4.162-2.205zm-393.823.845c.588.086 1.344 1.032 2.478 3.584v61.156c-7.297-7.04-3.567-17.42-4.45-26.402-.814-7.606 1.655-16.264-1.274-23.193-4.622-1.674-5.797-17.045-3.176-12.672 4.407 4.768 4.657-2.73 6.422-2.472zm166.013 4.34c4.463.077 8.93 1.227 12.8 3.32 8.1 4.427 13.744 14.375 10.792 23.568-2.265 9.636-10.61 16.243-19.195 20.208-4.058 2.644-9.45 4.618-11.283 9.46-1.196 2.994 25.396 1.62 30.267 1.62.47 4.003 1.52 10.68-3.814 11.725-14.52-1.25-29.88-.606-45.14-.606.437-11.176 7.425-21.35 17.023-26.808 6.9-4.875 15.435-9.283 18.1-17.927 1.763-4.44-.56-9.28-4.632-11.47-4.154-2.874-10.947-2.34-13.178 2.7-1.992 3.82-4.38 9.075-8.657 9.604-2.893.358-8.99.475-7.263-4.873 1.46-5.63 3.413-11.567 8.263-15.213 4.45-3.726 10.18-5.403 15.918-5.306zm58.565.517c2.548.043 5.088.494 7.46 1.352 6.835 2.2 12.034 7.93 14.296 14.656 6.14 14.67 5.577 33.025-4.407 45.89-4.434 4.726-10.147 9.084-16.93 9.104-12.504-.152-22.452-11.172-24.83-22.865-3.145-13.39-1.786-28.618 6.913-39.733 3.686-5.435 10-8.212 16.406-8.398.364-.01.728-.012 1.092-.006zm166.388 5.768c-.997-.037-2.02.973-2.777 3.683-1.645 5.895-3.323 13.392-.755 19.298 5.1-1.992 5.47-9.617 6.676-14.437 1.127-3.304-.95-8.46-3.144-8.542zm-165.834 5.593c-3.386-.167-6.824 2.62-8.324 5.64-2.258 4.143-2.065 9.04-2.812 13.594-.813 9.084-.33 19.23 5.457 26.707l2.207 1.472c4.928 1.78 9.694-2.16 11.07-6.74 1.962-6.234 2.34-12.9 2.43-19.407-.235-7.035-1.47-14.922-6.73-20.012-1.044-.813-2.17-1.196-3.298-1.252zm148.954 5.158v61.156l-4.452 6.672v-42.254c-4.61 7.453-9.028 9.044-6.066-.912 6.054-7.15 4.81-17.41 10.518-24.662zm-359.37 1.11c.02.07.043.14.063.208 4.513-.497 7.276 7.277 9.104 10.865.8 3.573 5.12 17.77 2.032 14.798-.273-.453-.53-.914-.795-1.37l1.837 3.3c-4.598-3.657-6.375-10.487-4.444-8.024-1.558-3.014-2.96-6.095-4.218-9.24-.06 1.18-.727 2.115-2.465 2.793-1.287 3.49-1.265 7.08-.67 10.645.2-1.67 1.175-2.384 3.385-.754 7.842 12.624 12.176 29.107 7.298 43.498l-2.224 1.11c-10.357-5.83-11.404-19.436-13.427-30.003-1.555-12.29-.788-24.71 2.3-36.71.807-.547 1.567-.828 2.284-.907-.02-.07-.042-.137-.06-.207zm.06.208c.114.417.237.826.368 1.225-.12-.408-.25-.813-.365-1.224zm2.052 31.07c-4.06 4.626-2.26 12.79-.377 18.4 1.108 5.507 6.916 10.14 6.056 1.52-.05-5.63.17-11.725-3-16.39-.96-.537-1.907-1.898-2.678-3.53zm66.396 69.317L256 491.73l112.846-123.177zm-21.394.33l-53.797 4.96 64.223 41.065c-2.556-2.703-4.856-5.71-7.118-8.763-5.132-6.95-10.468-13.657-18.88-16.672-8.736-6.442-4.18-5.276 2.9-2.537-.948-1.854-.725-2.61.123-2.668 2.17-.153 8.43 4.226 9.74 6.37l24.706 31.606 65.15 41.656zm268.48 0l-42.472 46.36c6.404-3.148 11.38-8.538 17.056-12.493 2.396-1.346 3.72-1.896 4.295-1.89 2.055.017-5.43 7.116-7.682 10.333-9.42 9.813-16.066 23.033-28.668 29.114l18.914-24.46c-2.32 1.26-5.94 3.19-8.21 4.085l-40.28 43.968 74.468-47.615c5.48-6.718 1.903-5.537-5.64-.896l-11.438 6.014c11.46-13.746 26.855-23.568 40.053-35.582 3.162-1.492 9.503-5.663 10.986-5.738.777-.04.22 1.045-2.824 4.228l-12.613 15.965c10.01-7.533.884 3.926-4.45 5.56-.695 1.01-1.44 1.95-2.212 2.862l54.512-34.856zm-158.265 16.644c1.358.01 2.71.125 3.998.295v43.365h-13.35v-30.02c-5.04-1.378-10.417 1.722-15.34-.27-3.758-2.94 1.01-6.846 4.524-5.89 3.278-.126 7.556.197 9.324-3.234 2.635-3.34 6.77-4.274 10.845-4.246zm33.048.81c.464-.02.963.037 1.497.186 3.147.81 6.466.245 9.695.413h25.402c1.503 2.992.752 7.75-3.305 7.855-3.893.51-7.81-.382-11.69.212-4.698.146-9.753-1.773-14.198.404-3.122 1.66-4.165 8.505.988 6.076 3.366-1.11 6.912-1.807 10.408-.89 6.984 1.103 14.966 2.89 19.125 9.19 2.076 3.156 2.672 7.337.633 10.67-3.602 6.528-11.534 8.407-18.295 9.75-2.337.443-4.66 1.404-7.03 1.21-7.245-.593-15.603-1.083-20.603-7.144-2.662-2.494-2.703-7.097 1.903-6.66 3.57-.142 8.657-.4 10.322 3.505 3.247 3.66 8.837 2.94 13.127 1.98 3.588-.483 7.53-2.548 7.584-6.673.59-4.21-3.078-7.18-6.844-7.8-5.818-2.365-11.57 1.405-17.37 1.827-3.463 1.046-9.578.48-8.936-4.465.76-4.188 2.663-8.108 2.71-12.46.09-3.005 1.634-7.03 4.877-7.184zm133.47 4.975c-.21-.248-6.99 5.744-9.92 8.08l-15.75 13.118c8.59-4.363 16.472-9.61 22.275-17.448 2.553-2.6 3.476-3.652 3.394-3.75zm-247.032 14.16c2.39-.02 7.543 4.65 9.45 7.06l26.11 31.11c-7.722-2.182-13.29-7.19-17.653-13.777-6.43-7.316-11.282-16.606-21.213-19.54-8.943-5.002-5.18-6.42 2.133-2.264-.273-1.858.24-2.582 1.174-2.59z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#fff" d="M204.055 213.905q-18.12-5.28-34.61-9a145.92 145.92 0 0 1-6.78-44.33c0-65.61 42.17-118.8 94.19-118.8 52.02 0 94.15 53.14 94.15 118.76a146.3 146.3 0 0 1-6.16 42.32q-20.52 4.3-43.72 11.05c-22 6.42-39.79 12.78-48.56 16.05-8.72-3.27-26.51-9.63-48.51-16.05zm-127.95 84.94a55.16 55.16 0 1 0 55.16 55.15 55.16 55.16 0 0 0-55.16-55.15zm359.79 0a55.16 55.16 0 1 0 55.16 55.15 55.16 55.16 0 0 0-55.15-55.15zm-71.15 55.15a71.24 71.24 0 0 1 42.26-65v-77.55c-64.49 0-154.44 35.64-154.44 35.64s-89.95-35.64-154.44-35.64v74.92a71.14 71.14 0 0 1 0 135.28v7c64.49 0 154.44 41.58 154.44 41.58s89.99-41.55 154.44-41.55v-9.68a71.24 71.24 0 0 1-42.26-65z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#fff" d="M83.5 25l-32 64v87c-.67 15.934 3.847 27.945 13.793 37.816 3.442 3.367 7.892 6.805 13.102 10.227L83.5 89l5.344 141.326c7.778 4.3 16.61 8.477 26.064 12.344.194.08.397.155.592.234V89l-32-64zm216.666 0C281.833 25 263.5 61.667 263.5 98.334c0 17.585 4.223 35.16 10.635 48.7 9.11 1.493 18.938 3.565 29.187 6.19 4.395-7.873 14.92-14.213 40.178-16.87V72.577C319.173 60.896 300.166 38.2 300.166 25zm146.668 0c0 13.2-19.007 35.896-43.334 47.576v63.78c43.31 4.554 43.334 19.928 43.334 35.31 18.333 0 36.666-36.665 36.666-73.332C483.5 61.667 465.167 25 446.834 25zM361.5 50v122.852a369.79 369.79 0 0 1 24 11.148V50h-24zm-127 72.92l-58.45 61.9 58.45 58.453V208h9c34.25 0 90.23 12.187 135.408 30.67 22.59 9.24 42.344 19.89 55.385 32.646 6.52 6.38 11.518 13.45 13.514 21.65.867 3.562.914 7.297.414 11.014 7.95-19.23 4.975-35.52-5.345-51.625-11.208-17.49-31.88-33.91-56.424-47.478C337.367 177.743 272.5 162 243.5 162h-9v-39.08zm-195.72 71.1c-7.95 19.23-4.975 35.52 5.345 51.625 11.208 17.49 31.88 33.91 56.424 47.478C149.633 320.257 214.5 336 243.5 336h9v39.08l58.45-61.9-58.45-58.453V290h-9c-34.25 0-90.23-12.187-135.408-30.67-22.59-9.24-42.344-19.89-55.385-32.646-6.52-6.38-11.518-13.45-13.514-21.65-.867-3.562-.914-7.297-.414-11.014zm322.72 57.212V368h24V261.23c-4.29-2.027-8.77-4.002-13.408-5.9-3.446-1.41-7-2.766-10.592-4.098zm-310 29.862v41.44h23.17l.885-23.39c-8.66-5.593-16.772-11.594-24.055-18.05zm40.313 27.767l.517 13.675h23.17v-1.777c-8.056-3.678-15.987-7.64-23.66-11.88l-.028-.017zM28.5 340.536V360h110v-19.465h-110zM63.5 375v80c-8 0-28 32 20 32s28-32 20-32v-80h-40zm298 11v94h24v-94h-24z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M202.094 28.5c-9.125 0-16.344 7.19-16.344 16.313 0 9.122 7.218 16.312 16.344 16.312 3.927 0 7.488-1.337 10.28-3.58l58.84 21.394-10.92 30.025 17.563 6.387 4.83-13.276 159.887 58.135 51.908-9.948-32.734-40.9L301.256 51.01l4.826-13.274-17.562-6.386-10.92 30.027-60.053-21.836c-2.154-6.47-8.18-11.04-15.453-11.04zm92.775 40.072l124.017 45.092 10.935 13.477-14.93 3.122L289.07 84.514l5.8-15.942zM163.405 99.5c-9.125 0-16.312 7.19-16.312 16.313 0 9.122 7.186 16.343 16.312 16.343 1.84 0 3.597-.305 5.237-.85l-.303.432 52.8 36.946-18.32 26.175 15.313 10.714 8.1-11.574 139.39 97.533 52.715 3.822-21.033-47.976-139.92-97.9 8.1-11.574-15.31-10.715-18.32 26.18-52.187-36.515c.02-.346.05-.69.05-1.043 0-9.126-7.186-16.312-16.312-16.312zm-52.72 64c-9.123 0-16.342 7.19-16.342 16.313 0 9.122 7.217 16.312 16.344 16.312.925 0 1.823-.092 2.703-.234l36.99 44.05-24.472 20.546 12.018 14.315 10.82-9.083L258.56 396.494l49.637 16.738-8.435-52.173-109.4-130.285 10.818-9.08-12.016-14.314-24.47 20.544-37.96-45.2c.165-.945.266-1.914.266-2.91 0-9.128-7.186-16.314-16.313-16.314zm135.986 1.29l107.217 75.02 7.008 15.706-15.388-.864-108.563-75.964 9.725-13.897zM42.812 207.44c-9.124 0-16.312 7.19-16.312 16.312 0 7.827 5.297 14.238 12.563 15.906l24.083 51.602L34.19 304.77l7.904 16.933 12.804-5.974 72.22 154.74 43.616 29.014 5.358-52.58-71.95-154.154 12.797-5.973-7.903-16.935-28.955 13.512-23.603-50.57c1.69-2.58 2.676-5.675 2.676-9.034 0-9.126-7.217-16.313-16.343-16.313zm133.24 35.355l84.104 100.162 2.61 16.38-15.207-5.005-84.5-100.63 12.99-10.907zm-88.845 57.86l54.842 117.5-1.763 16.913-13.057-8.546-55.398-118.694 15.375-7.174z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M375.563 15.344c-3.744-.036-7.46.797-10.875 2.906-6.406 3.954-9.283 10.876-10.188 17.875v.03c-58.905 99.84-141.287 150.724-234.53 208.19-17.742 7.012-29.062 20.612-34.19 35.155-15.89-5.312-23.478-17.805-22.968-25.313l-18.656-1.28c-1.278 18.792 13.092 36.91 35.688 44.312l-1.656.5c-36.15 26.775-70.78 89.097-39.688 163.31 6.443 15.38 17.065 24.21 29.625 28.908 12.56 4.697 27.19 4.848 40 1.468 12.81-3.38 23.52-10.32 28.813-18.094 5.29-7.773 6.53-15.74.062-27.03-13.84-24.154-28.63-50.166-24.5-77.282 28.037 16.267 58.335 11.598 77.156-5.563 19.28-17.577 26.135-48.276 10.125-77.593 79.474-47.578 156.44-86.004 256.064-92.094 3.965.776 8.044.766 11.906-.53.022-.01.04-.025.063-.032.688-.024 1.37-.042 2.062-.063l-.375-.594c.75-.336 1.494-.707 2.22-1.155 6.83-4.218 9.65-11.82 10.342-19.28.693-7.463-.39-15.725-2.687-24.907-4.592-18.366-14.277-40.386-28.125-62.782-13.848-22.396-29.212-40.93-43.594-53.25-7.19-6.16-14.108-10.812-21.094-13.53-3.492-1.36-7.256-2.246-11-2.282zM375.188 34c.148-.01.326-.01.53 0 .82.043 2.094.296 4.063 1.063 3.94 1.532 9.573 5.047 15.72 10.312 12.293 10.53 26.843 27.85 39.844 48.875 13 21.026 21.982 41.773 25.906 57.47 1.962 7.846 2.61 14.454 2.22 18.655-.39 4.2-1.468 5.066-1.564 5.125-.095.06-1.343.595-5.28-.938-3.94-1.532-9.542-5.047-15.688-10.312-12.294-10.53-26.874-27.85-39.875-48.875-13.002-21.026-21.983-41.773-25.907-57.47-1.962-7.846-2.577-14.454-2.187-18.655.39-4.2 1.435-5.035 1.53-5.094.036-.022.24-.125.688-.156zM187.155 302.875c7.386 19.413 1.56 36.125-10.094 46.75-13.57 12.373-35.423 16.472-58.468 1.156 4.427-8.25 11.1-16.105 20.22-23.217 11.695-9.123 27.59-17.28 48.342-24.688z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M266.033 32.42l-85.238 85.238v19.799L285.832 32.42h-19.799zm41.528 3.728L184.523 159.186l168.291 168.29L475.852 204.44 307.56 36.15zm172.02 190.02L374.542 331.205h19.799l85.238-85.238v-19.799zm-239.903 13.627l-9.9 9.9 32.527 32.528 9.9-9.9-32.527-32.528zm-22.627 22.627l-23.528 23.527h47.055l-23.527-23.527zm-41.528 41.527l-27.255 27.256h65.054l27.256-27.256h-65.055zm-45.255 45.256l-27.254 27.254h65.054l27.254-27.254h-65.054zm-27.254 45.254l23.527 23.527 23.527-23.527h-47.054zm-21.729 3.728l-9.898 9.899 32.527 32.527 9.898-9.898-32.527-32.527zm-38.767 18.899l-7.504 22.512 37.388 37.388 22.512-7.504v-12.414L54.93 417.086H42.518z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M256.438 19.375c-47.71 0-95.422 14.41-136.094 43.22 13.022 15.09 26.314 30.127 39.156 44.468 16.038-11.682 32.482-18.857 48.688-22.282l9.875-9.874 6.625-6.625 6.593 6.626 7.72 7.72c78.735 5.644 140.54 95.133 101.406 175.53l118.5 118.5c54.447-90.673 42.59-209.88-35.625-288.094C377.17 42.45 316.806 19.376 256.44 19.376zM66.5 27.063L29.53 64.03c37.95 29.834 80.152 65.906 115 96.845l7.407 6.594-7 7-47.375 47.374L117.25 241.5l34.5-34.5 268.125 268.156 77.344 19.28-21.845-74.78-26.977-26.978.04-.053-117.75-117.75-.032.045L207.25 151.5l37.094-37.094-19.656-19.656-46.47 46.438-6.968 6.937-6.563-7.28C133.5 106.334 96.644 64.837 66.5 27.062zm-1.28 90.062C-1.735 209.41 6.38 339.035 89.593 422.25c52.93 52.93 124.633 75.448 193.562 67.625-131.5.997-246.804-128.563-207.125-263.156l-4.874-4.876 6.594-6.625 3.25-3.25c7.028-18.512 17.076-37.017 30.5-55.22-14.87-12.992-30.55-26.433-46.28-39.625zm120.374 46.03c12.283 0 22.22 9.968 22.22 22.25 0 2.224-.332 4.35-.94 6.376l236.94 236.97-13.19 13.188L194.47 205.813c-2.72 1.185-5.72 1.843-8.876 1.843-12.284 0-22.25-9.964-22.25-22.25 0-12.285 9.966-22.25 22.25-22.25z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M40.598 20.316c-11.602 0-21.008 9.406-21.008 21.008 0 11.602 9.406 21.006 21.008 21.006 1.788 0 3.524-.226 5.18-.646l54.972 54.97-46.223 46.223 46.924 65.783 15.216-10.85-28.316-39.7 18.29-18.29 186.083 272.387 2.203 1.084c53.664 26.42 111.6 49.15 183.537 58.05l11.496 1.424-1.044-11.54c-6.375-70.503-30.856-128.572-58.082-183.845l-1.088-2.21L157.08 109.38l18.432-18.433 39.586 28.395 10.892-15.186-65.652-47.09-46.373 46.373-53.992-53.993c1.05-2.5 1.63-5.242 1.63-8.123 0-11.602-9.404-21.008-21.005-21.008zM143.63 122.828l271.49 184.988c.395.807.78 1.617 1.175 2.424l-9.844 28.38-259.538-191.436L338.066 406.8l-33.15 10.13-184.83-270.557 23.545-23.545zm127.327 147.45L418.13 379.3l11.85-49.017 37.204 135.32-135.317-37.205 49.014-11.856-109.923-146.26z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="transparent" opacity="0"></path><g class="" style="touch-action: none;" transform="translate(0,0)"><path fill="#000000" opacity="0.54" d="M77.85 11.848l9.535 70.648-69.418-11.174 41.508 56.07-11.127 322.715c-11.712 13.235-20.716 28.85-25.823 47.914 74.198-55.834 152.88-71.602 223.606-101.383l-35.913-35.914c-53.122 25.232-105.774 42.49-142.547 71.347l9.674-280.54 8.06 10.888 2.2 4.47h71.304L358.723 394.03c15.618-13.627 29.605-28.41 42.66-44.645l-229.877-193.78V84.226l-11.86-9.165 273.594-10.66c-29.99 36.36-46.84 89.07-71.39 142.416l36.558 36.56c29.22-70.24 45.014-148.09 100.262-221.507-18.54 4.97-33.69 13.015-46.604 23.603l-.02-.506-315.437 12.29-58.76-45.41zm24.613 42.638l50.355 38.916v54.795H99.236l-.607-.146-38.357-50.988 49 7.89-6.81-50.466zm248.103 167.48c-8.162 13.275-17.044 25.835-26.586 37.727l30.727 25.903c11.16-8.75 22.568-17.176 34.06-25.432l-38.2-38.2zm100.006 89.74C414.826 368.52 375.184 412.43 315.88 447.67c59.143 20.683 118.488 37.302 178.8 43.98-8.706-60.66-23.977-120.562-44.108-179.94zm-184.08 5.774c-13.42 10.98-27.58 21.186-42.414 30.674l37.47 37.47c8.748-14.57 18.62-27.954 29.327-40.43l-24.383-27.714z"></path></g><!-- react-empty: 6 --></svg>
@@ -0,0 +1,40 @@
package conf

import (
"io/ioutil"

"github.com/imdario/mergo"
yaml "gopkg.in/yaml.v2"
)

// Conf holds the configuration structure
type Conf struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Debug bool `yaml:"debug"`
}

// C is the main configuration exported
var C Conf

// Defaults fills the configuration with some sane defaults
func (c *Conf) Defaults() error {
return mergo.Merge(c, Conf{
Host: "127.0.0.1",
Port: 8080,
})
}

// Load loads a yaml file into the C configuration struct
func Load(fp string) error {
var err error
var conf []byte

if conf, err = ioutil.ReadFile(fp); err != nil {
return err
}
if err = yaml.Unmarshal(conf, &C); err != nil {
return err
}
return C.Defaults()
}

0 comments on commit 9c616af

Please sign in to comment.
You can’t perform that action at this time.