-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
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 numpy as np | |
| from scipy.sparse import csr_matrix | |
| import torch | |
| __author__ = 'Andrea Esuli' | |
| Acsr = csr_matrix([[1, 2, 0], [0, 0, 3], [4, 0, 5]]) | |
| print('Acsr',Acsr) | |
| Acoo = Acsr.tocoo() |
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
| docker exec -it container-name redis-cli FLUSHALL |
Start your rethinkdb instance with this flag:
--bind all (or bind=all in the configuration file for your instance)
Block external access to the web UI with these two commands:
sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP
sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT
Install nginx:
sudo apt-get install nginx
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
| # -o- coding: utf-8 -o- | |
| # ISO639 python dict | |
| # oficial list in http://www.loc.gov/standards/iso639-2/php/code_list.php | |
| ISO639_2 = { | |
| 'ab': 'Abkhaz', | |
| 'aa': 'Afar', | |
| 'af': 'Afrikaans', | |
| 'ak': 'Akan', | |
| 'sq': 'Albanian', |
NewerOlder

