This file contains hidden or 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
function toYAML(src, pad=0, nested_list=false){ | |
function f(i, nested_list, size){ | |
if (i == 0 && !nested_list) return `\r\n${" ".repeat(size)}` | |
else if(i != 0) return `${" ".repeat(size)}` | |
return "" | |
} | |
var tabsize = 2 | |
var dst = "" | |
if(Array.isArray(src)){ | |
src.forEach(function(s, i){ |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Problem statement: Find the three digit number | |
147 - One digit is right but in the wrong place | |
189 - One digit is right and in its place | |
964 - Two digits are correct but both are in the wrong place | |
523 - All digits are wrong | |
286 - One digit is right but in the wrong place | |
""" |
This file contains hidden or 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
folder=mwc_$(date +%s%N) | |
mkdir $folder | |
cd $folder | |
sudo apt-get -qq --assume-yes install minify npm | |
eval npm install \ | |
@material/mwc-button \ | |
@material/mwc-checkbox \ | |
@material/mwc-circular-progress \ |
NewerOlder