Hello world!
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
| elif message.content.startswith('!game'): | |
| gamename = message.content.split(' ', 1)[1] | |
| game = discord.Game(name=gamename) | |
| await client.change_status(game, idle=False) |
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
| import re | |
| string = 'Ship01: Shironia\nShip02: Vopar\nShip03: -\nShip04: -\nShip05: -\nShip06: -\nShip07: Vopar\nShip08: -\nShip09: Amduscia\nShip10: -\n'.splitlines() | |
| test = re.compile('(?:Ship\d\d):\s([^-]*)') | |
| for line in string: | |
| t = test.match(line) | |
| #print(line) | |
| if t.group(1) is not '': | |
| print(t.group(1)) |
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
| import re | |
| string = 'Ship01: Shironia\nShip02: Vopar\nShip03: -\nShip04: -\nShip05: -\nShip06: -\nShip07: Vopar\nShip08: -\nShip09: Amduscia\nShip10: -\n'.splitlines() | |
| test = re.compile('(?:Ship\d\d):\s([^-]*)') | |
| for line in string: | |
| t = test.match(line) | |
| #print(line) | |
| if t.group(1) is not '': | |
| print(t.group(1)) |
Hello world!
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
| call plug#begin() | |
| Plug 'rafi/awesome-vim-colorschemes' | |
| Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
| Plug 'Shougo/neosnippet' | |
| Plug 'Shougo/neosnippet-snippets' | |
| Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } | |
| Plug 'ervandew/supertab' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'neomake/neomake' | |
| Plug 'mhartington/nvim-typescript' |
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
| call plug#begin() | |
| Plug 'rafi/awesome-vim-colorschemes' | |
| Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
| Plug 'Shougo/neosnippet' | |
| Plug 'Shougo/neosnippet-snippets' | |
| Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } | |
| Plug 'ervandew/supertab' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'neomake/neomake' | |
| Plug 'mhartington/nvim-typescript' |
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
| call plug#begin() | |
| Plug 'rafi/awesome-vim-colorschemes' | |
| Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
| Plug 'Shougo/neosnippet' | |
| Plug 'Shougo/neosnippet-snippets' | |
| Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } | |
| Plug 'ervandew/supertab' | |
| Plug 'jiangmiao/auto-pairs' | |
| Plug 'neomake/neomake' | |
| Plug 'mhartington/nvim-typescript' |
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
| # Ensure you update at least the server_name variables to match your own | |
| # transcode cache | |
| proxy_cache_path /tmp/funkwhale-transcode levels=1:2 keys_zone=transcode:10m max_size=1g inactive=7d; | |
| # domain | |
| upstream funkwhale-api { | |
| # depending on your setup, you may want to udpate this | |
| server localhost:5000; | |
| } |