I hereby claim:
- I am jerzyspendel on github.
- I am jerzyspendel (https://keybase.io/jerzyspendel) on keybase.
- I have a public key ASDK8dwWk0c-AiD13NJjahsfR9IrwjVXvfZhg2TWSmHb1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am jerzyspendel on github. | |
* I am jspendel (https://keybase.io/jspendel) on keybase. | |
* I have a public key ASACvfljuurEJUttggLMn8AR4CAXC7crEGjkY7do3G9iYwo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{
import random | |
PAPER, ROCK, SCISSORS = 1, 2, 3 | |
def show_menu(): | |
print('1. Wcisnij 1 żeby rozpocząć grę') | |
print('2. Wciśnij 2, aby zakończyć') | |
print() |
server { | |
listen 80; | |
charset utf-8; | |
client_max_body_size 75M; | |
location /ws { | |
proxy_pass http://127.0.0.1:5001; | |
} |
server { | |
listen 80; | |
charset utf-8; | |
client_max_body_size 75M; | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|ipa|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$ { | |
root /srv/nook/backend/nook-app/public; | |
} |
server { | |
listen 80; | |
server_name nook.dev.skygate.pl; | |
charset utf-8; | |
client_max_body_size 75M; | |
location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|ipa|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|html|htm)$ { | |
root /srv/nook/backend/nook-app/public; | |
} |
class TaggedItemSerializer(serializers.ModelSerializer): | |
def __init__(self, *args, **kwargs): | |
serializers.ModelSerializer.__init__(self, *args, **kwargs) | |
self.content_object = TaggedItemRelatedField(read_only=True, context=self.context) | |
tag = TagSerializer() | |
#content_object = TaggedItemRelatedField(read_only=True, context=self.context) wywalić | |
content_type = serializers.SerializerMethodField() | |
class Meta: | |
model = TaggedItem |
'use strict'; | |
var io = require('socket.io')() | |
io.on('connection', function(socket) { | |
console.log('poloczono'); | |
socket.on('hello', function(data) { | |
console.log(data); | |
socket.emit('hello', data); | |
}); | |
}); |