-
Notifications
You must be signed in to change notification settings - Fork 0
/
names_class.py
47 lines (46 loc) · 1.35 KB
/
names_class.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class Language_Names:
'''
Replace the un-formatted name that is generated by Local Time Tracker with something more pretty and accurate.
**DONT** use emojies, matplotlib doesn't like them. There are workaround's, but there 'hacky' and require you to change defualt font path.
'python':'snek lang'
will replace every occurence of 'python' to 'snek lang'.
'''
def __init__(self):
self.Names: dict = {
'python': 'Python',
'javascript': 'JavaScript',
'typescript': 'TypeScript',
'csharp': 'C#',
'c': 'C',
'r': 'R',
'go': 'GO',
'ruby': 'Ruby',
'swift': 'Swift',
'kotlin': 'Kotlin',
'haskell': 'Haskell',
'cpp': 'C++',
'java': 'Java',
'markdown': '.md',
'txt':'.txt',
'Log':'.log',
'json':'.json',
'jsonc':'.jsonc',
'yaml':'.yaml',
'gitignore':'.gitignore'
}
self.Programming_Names: list = [
'python',
'javascript',
'typescript',
'csharp',
'cpp',
'c',
'r',
'go',
'ruby',
'swift',
'kotlin',
'haskell',
'cpp',
'java'
]