mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
initial octave support (#121)
This commit is contained in:
parent
280af1b597
commit
8fcb4ddd4e
@ -698,7 +698,7 @@ Some languages has the one-liners-cheat sheet, `1line`:
|
||||
|
||||
![cheat.sh usage](http://cheat.sh/files/supported-languages-c++.png)
|
||||
|
||||
At the moment, cheat.sh covers the 55 following programming languages (alphabetically sorted):
|
||||
At the moment, cheat.sh covers the 57 following programming languages (alphabetically sorted):
|
||||
|
||||
|Prefix |Language |Basics|One-liners|Weirdness|StackOverflow|
|
||||
|-----------|----------|------|----------|---------|-------------|
|
||||
@ -739,6 +739,7 @@ At the moment, cheat.sh covers the 55 following programming languages (alphabeti
|
||||
|`lua/` |Lua |✓ | | |✓ |
|
||||
|`matlab/` |MATLAB |✓ | | |✓ |
|
||||
|`ocaml/` |OCaml |✓ | | |✓ |
|
||||
|`octave/` |Octave |✓ | | |✓ |
|
||||
|`perl/` |Perl |✓ |✓ | |✓ |
|
||||
|`perl6/` |Perl 6 |✓ |✓ | |✓ |
|
||||
|`php/` |PHP |✓ | | |✓ |
|
||||
|
@ -552,6 +552,12 @@ class LearnMatlabAdapter(LearnXYAdapter):
|
||||
_filename = "matlab.html.markdown"
|
||||
_splitted = False
|
||||
|
||||
class LearnOctaveAdapter(LearnXYAdapter):
|
||||
"Learn Octave in Y Minutes"
|
||||
prefix = "octave"
|
||||
_filename = "matlab.html.markdown"
|
||||
_splitted = False
|
||||
|
||||
class LearnKotlinAdapter(LearnXYAdapter):
|
||||
"""
|
||||
Learn Kotlin in Y Minutes
|
||||
|
@ -132,5 +132,5 @@ class Rosetta(Adapter):
|
||||
return False
|
||||
|
||||
def __init__(self):
|
||||
Adapter.__init__()
|
||||
Adapter.__init__(self)
|
||||
self._rosetta_code_name = self._load_rosetta_code_names()
|
||||
|
@ -45,6 +45,7 @@ LEXER = {
|
||||
"mongo" : pygments.lexers.JavascriptLexer,
|
||||
"objective-c": pygments.lexers.ObjectiveCppLexer,
|
||||
"ocaml" : pygments.lexers.OcamlLexer,
|
||||
"octave" : pygments.lexers.OctaveLexer,
|
||||
"perl" : pygments.lexers.PerlLexer,
|
||||
"perl6" : pygments.lexers.Perl6Lexer,
|
||||
"php" : pygments.lexers.PhpLexer,
|
||||
@ -95,6 +96,7 @@ LANGUAGE_ALIAS = {
|
||||
'wolfram' : 'mathematica',
|
||||
'mma' : 'mathematica',
|
||||
'wolfram-mathematica': 'mathematica',
|
||||
'm' : 'octave',
|
||||
}
|
||||
|
||||
VIM_NAME = {
|
||||
@ -203,6 +205,7 @@ SUBLIME_FT_NAME = {
|
||||
VIM_FT_NAME = {
|
||||
'asm': 'assembler',
|
||||
'javascript': 'js',
|
||||
'octave': 'matlab',
|
||||
}
|
||||
|
||||
VSCODE_FT_NAME = {
|
||||
|
Loading…
Reference in New Issue
Block a user