import sys, os, django
sys.path.append('/path/to/My/Project')
os.environ['DJANGO_SETTINGS_MODULE'] = 'MyProject.settings'
django.setup()
- procedure
$ sudo pacman -S opencv
$ sudo pip install numpy
- check
$ python
>>> import cv2
This file contains 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
# See | |
# http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#available-options | |
CELERY_APP="App name" | |
CELERYD_NODES="worker" | |
CELERYD_OPTS="" | |
CELERY_BIN="/usr/bin/celery" | |
CELERYD_PID_FILE="/var/run/celery/%n.pid" | |
CELERYD_LOG_FILE="/var/log/celery/%n.log" | |
CELERYD_LOG_LEVEL="INFO" |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
int N, M; | |
cin >> N >> M; | |
for (int s=0; s<N+M-1; s++) { | |
int i, j; |
I hereby claim:
- I am riku179 on github.
- I am riku179 (https://keybase.io/riku179) on keybase.
- I have a public key ASC4_kzjVL0Y1RNuMzwu9k1hVpvtJs582vRoqvUGRa5pcQo
To claim this, I am signing this object: