This file contains 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
# usage: provide a list (Array) of package objects | |
# package.version must contain the version string, e.g. "1.0.0e-1ubuntu3.4" | |
# Method 1: simple | |
# blow up all numbers | |
def sort_packages list | |
list.map do |x| | |
[ x, x.version.gsub(/[0-9]+/){|z| "%010x" % z} ] | |
end. | |
sort{|x,y| x[1] <=> y[1]}. |
This file contains 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
Personal most used commands in vim (VSCode, Atom, ... any editor really) | |
# motion.txt | |
y c d ... yank / change / delete | |
v V ... visual mode character-wise/Line-wise | |
< > ... indent and outdent | |
/ ? ... search forward or backwards, | |
eg "/word" => go to "word" |
This file contains 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
⏪🎄 | |
🤫🌃👼🌃 | |
0🎄 | |
🔴👃🏽🦌 | |
❄⚪👗 | |
🤫🌨 | |
0😀 | |
🧒🏽🧒🏻🏃🏽♂️ | |
🚗🏡4🎄 | |
🛎🔔🛎🛎 |
OlderNewer