Skip to content

Instantly share code, notes, and snippets.

View SkyLeite's full-sized avatar
🏳️‍⚧️

Sky Leite SkyLeite

🏳️‍⚧️
View GitHub Profile
elif message.content.startswith('!game'):
gamename = message.content.split(' ', 1)[1]
game = discord.Game(name=gamename)
await client.change_status(game, idle=False)
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))
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!

Hello world!

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'

Decisions!

Editor

  1. Which one? VSCode, Sublime, Vim

  2. Which plugins? VSCode: ESLint Vim: Deoplete

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'
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'
# 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;
}