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
javascript:void((function(d){if(self!=top||d.getElementById('toolbar')&&d.getElementById('toolbar').getAttribute('data-resizer'))return%20false;d.write('<!DOCTYPE%20HTML><html%20style="opacity:0;"><head><meta%20charset="utf-8"></head><body><a%20data-viewport="320x480"%20data-icon="mobile"%20title="Mobile%20(e.g.%20Apple%20iPhone)">Mobile%20(e.g.%20Apple%20iPhone)</a><a%20data-viewport="320x568"%20data-icon="mobile"%20data-version="5"%20title="Apple%20iPhone%205">Apple%20iPhone%205</a><a%20data-viewport="375x667"%20data-icon="mobile"%20data-version="6"%20title="Apple%20iPhone%206">Apple%20iPhone%206</a><a%20data-viewport="414x736"%20data-icon="mobile"%20data-version="6p"%20title="Apple%20iPhone%206p">Apple%20iPhone%206p</a><a%20data-viewport="600x800"%20data-icon="small-tablet"%20title="Small%20Tablet">Small%20Tablet</a><a%20data-viewport="768x1024"%20data-icon="tablet"%20title="Tablet%20(e.g.%20Apple%20iPad%202-3rd,%20mini)">Tablet%20(e.g.%20Apple%20iPad%202-3rd,%20mini)</a><a%20data-viewport="1280x800"%20dat |
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
# | |
# Check if an Array could be sorted by One-Swap. | |
# | |
# Extend Array Class... | |
class Array | |
def sorted? | |
# each_cons(2).all? { |a, b| (a <=> b) <= 0 } | |
self == self.sort | |
end |
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
# Convert Decimals to Roman numerals... | |
# | |
module Roman | |
ROMAN_STEPS = | |
{ | |
'M' => 1000, 'CM' => 900, | |
'D' => 500, 'CD' => 400, | |
'C' => 100, 'XC' => 90, | |
'L' => 50, 'XL' => 40, | |
'X' => 10, 'IX' => 9, |
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
.vs.monaco-editor .ced-TextEditorDecorationType12-4::after { | |
color: mediumaquamarine !important; | |
/* background-color: mediumaquamarine; */ | |
/* text-shadow: 8px -1px 0px black; */ | |
/* box-shadow: inset 0 0 1px black; */ | |
} |
OlderNewer