Skip to content

Commit

Permalink
Merge pull request luong-komorebi#21 from luongvo209/master
Browse files Browse the repository at this point in the history
Catching up to master:
  • Loading branch information
SaintFenix authored Jun 26, 2018
2 parents a886cda + 6af76fa commit d0c1d7b
Show file tree
Hide file tree
Showing 8 changed files with 1,469 additions and 182 deletions.
139 changes: 86 additions & 53 deletions README.md

Large diffs are not rendered by default.

102 changes: 52 additions & 50 deletions README_es-ES.md

Large diffs are not rendered by default.

1,234 changes: 1,234 additions & 0 deletions README_fr-FR.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions README_pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ Ele foi projetado principalmente para ajudar a recuperar partições perdidas e/
- [Kakoune](http://kakoune.org/) - Kakoune code ediotr - Vim inspired.  Faster as in less keystrokes.  Multiple selections.  Orthogonal design. Has a strong focus on interactivity. [![Open-Source Software][OSS Icon]](https://github.com/mawww/kakoune)
- [Kate](https://kate-editor.org/get-it/) - Kate is a multi-document editor part of KDE since release 2.2. [![Open-Source Software][OSS Icon]](https://kate-editor.org/build-it/)
- [Komodo Edit](https://github.com/Komodo/KomodoEdit) - Free and open source multilanguage development environment. [![Open-Source Software][OSS Icon]](https://github.com/Komodo/KomodoEdit)
- [Gnome Builder](https://wiki.gnome.org/Apps/Builder) - IDE poderoso para o desenvolvimento moderno C / C ++ / Bash / JavaScript, feito pela Gnome Team. Um dos melhores IDE para desenvolvimento C / C ++ (Cmake integrado).
- [Lighttable](http://lighttable.com/) - The next generation code editor! Support live coding. [![Open-Source Software][OSS Icon]](https://github.com/LightTable/LightTable)
- [Spacemacs](http://spacemacs.org) - A community-driven Emacs distribution. [![Open-Source Software][OSS Icon]](https://github.com/syl20bnr/spacemacs)
- [Sublime](https://www.sublimetext.com/) - A very capable text editor with advanced search capabilities, and many powerful plugins to improve its functionality.
Expand Down Expand Up @@ -690,6 +691,8 @@ Ele foi projetado principalmente para ajudar a recuperar partições perdidas e/
- [Seahorse](https://wiki.gnome.org/Apps/Seahorse) - Gnome frontend for GnuPG[![Open-Source Software][OSS Icon]](https://wiki.gnome.org/Apps/Seahorse)
- [Tcpdump](http://www.tcpdump.org/) - TCP Debugging/Capture Tool[![Open-Source Software][OSS Icon]](http://www.tcpdump.org/#source)
- [Update-IPsets](https://iplists.firehol.org) - A manager for all cybercrime IP feeds that can download, convert and install netfilter `ipsets`. [![Open-Source Software][OSS Icon]](https://github.com/firehol/blocklist-ipsets)
- [ClamAV](https://www.clamav.net/) - Clam Anti Virus
- [Uktools](https://github.com/usbkey9/uktools) - Mantenha seu sistema atualizado com o último kernel disponível. Possibilidade de limpar o kernel antigo também.

### Compartilhamento de arquivos
- [aria2](https://aria2.github.io/) - aria2 is a lightweight multi-protocol & multi-source command-line download utility. [![Open-Source Software][OSS Icon]](https://github.com/aria2/aria2)
Expand Down
106 changes: 57 additions & 49 deletions README_zh-CN.md

Large diffs are not rendered by default.

22 changes: 12 additions & 10 deletions auto_sort/asort.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from __future__ import print_function
import os
import shutil
import re


README_FILE = '../README.md'
Expand All @@ -20,6 +21,7 @@
BEGIN = '## Applications'
END = '## Setup'

regex = re.compile(r"[^[]*\[([^]]*)\]")

def main():
global README_FILE
Expand Down Expand Up @@ -47,23 +49,23 @@ def main():
# sort_enable = False

if sort_enable:
line = line.strip()

# each item starts with a character '-' (maybe '*' and '+')
if line.startswith(('-', '*', '+')):
# each item starts with a character '-'
if line.startswith(('-')):
line = line.strip()
items.append(line)
elif line.startswith('#'):
sort_enable = False if END in line else True

# When no more items, blank line or new header
elif line is '\n':
# when we meet the next header, we should stop adding new item to the list.
for item in sorted(items, key=lambda x: x.upper()):
for item in sorted(items, key=lambda x: regex.findall(x.upper())[len(regex.findall(x.upper()))-1]):
# write the ordered list to the temporary file.
print(item, file=outfile)
print('', file=outfile)
items.clear()

# remember to put the next header in the temporary file.
print(line, file=outfile)
print(line, end='', file=outfile)
elif line.startswith('#'):
sort_enable = False if END in line else True
print(line, end='', file=outfile)
else:
print(line, end='', file=outfile)
else:
Expand Down
23 changes: 13 additions & 10 deletions auto_sort/asort_es-ES.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from __future__ import print_function
import os
import shutil
import re


README_FILE = '../README_es-ES.md'
Expand All @@ -20,6 +21,7 @@
BEGIN = '## Aplicaciones'
END = '## Configurar'

regex = re.compile(r"[^[]*\[([^]]*)\]")

def main():
global README_FILE
Expand Down Expand Up @@ -47,23 +49,23 @@ def main():
# sort_enable = False

if sort_enable:
line = line.strip()

# each item starts with a character '-' (maybe '*' and '+')
if line.startswith(('-', '*', '+')):
# each item starts with a character '-'
if line.startswith(('-')):
line = line.strip()
items.append(line)
elif line.startswith('#'):
sort_enable = False if END in line else True

# When no more items, blank line or new header
elif line is '\n':
# when we meet the next header, we should stop adding new item to the list.
for item in sorted(items, key=lambda x: x.upper()):
for item in sorted(items, key=lambda x: regex.findall(x.upper())[len(regex.findall(x.upper()))-1]):
# write the ordered list to the temporary file.
print(item, file=outfile)
print('', file=outfile)
items.clear()

# remember to put the next header in the temporary file.
print(line, file=outfile)
print(line, end='', file=outfile)
elif line.startswith('#'):
sort_enable = False if END in line else True
print(line, end='', file=outfile)
else:
print(line, end='', file=outfile)
else:
Expand All @@ -75,3 +77,4 @@ def main():

if __name__ == '__main__':
main()

22 changes: 12 additions & 10 deletions auto_sort/asort_zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from __future__ import print_function
import os
import shutil
import re


README_FILE = '../README_zh-CN.md'
Expand All @@ -20,6 +21,7 @@
BEGIN = '## 应用'
END = '## 设置'

regex = re.compile(r"[^[]*\[([^]]*)\]")

def main():
global README_FILE
Expand Down Expand Up @@ -47,23 +49,23 @@ def main():
# sort_enable = False

if sort_enable:
line = line.strip()

# each item starts with a character '-' (maybe '*' and '+')
if line.startswith(('-', '*', '+')):
# each item starts with a character '-'
if line.startswith(('-')):
line = line.strip()
items.append(line)
elif line.startswith('#'):
sort_enable = False if END in line else True

# When no more items, blank line or new header
elif line is '\n':
# when we meet the next header, we should stop adding new item to the list.
for item in sorted(items, key=lambda x: x.upper()):
for item in sorted(items, key=lambda x: regex.findall(x.upper())[len(regex.findall(x.upper()))-1]):
# write the ordered list to the temporary file.
print(item, file=outfile)
print('', file=outfile)
items.clear()

# remember to put the next header in the temporary file.
print(line, file=outfile)
print(line, end='', file=outfile)
elif line.startswith('#'):
sort_enable = False if END in line else True
print(line, end='', file=outfile)
else:
print(line, end='', file=outfile)
else:
Expand Down

0 comments on commit d0c1d7b

Please sign in to comment.