Skip to content

Instantly share code, notes, and snippets.

diff --git a/base/views.py b/base/views.py
index 18b2147..49521c8 100644
--- a/base/views.py
+++ b/base/views.py
@@ -53,7 +53,7 @@ class SignupView(View):
user.set_password(user.password)
user.save()
- player = Player(user=user)
+ player = Player(user=user, email=user_form.cleaned_data['email'])
This file has been truncated, but you can view the full file.
0:00:00.001000: Ready
0:00:00: play_one_game class=PlayerClass.IRONCLAD
0:00:00.001002: receive_game_state_update
0:00:00: {"available_commands":["start","state"],"ready_for_command":true,"in_game":false}
0:00:00: end_receive_game_state_update started_floor1=False stopped_floor1=False
0:00:00: start IRONCLAD 0
0:00:00.906321: receive_game_state_update
0:00:00: {"available_commands":["choose","key","click","wait","state"],"ready_for_command":true,"in_game":true,"game_state":{"choice_list":["talk"],"screen_type":"EVENT","screen_state":{"event_id":"Neow Event","body_text":"","options":[{"choice_index":0,"disabled":false,"text":"[Talk]","label":"Talk"}],"event_name":"Neow"},"seed":5247023877202912666,"deck":[{"exhausts":false,"cost":1,"name":"Strike","id":"Strike_R","type":"ATTACK","uuid":"f13b8c06-328c-4cd5-b205-4a43afb99e83","upgrades":0,"rarity":"BASIC","has_target":true},{"exhausts":false,"cost":1,"name":"Strike","id":"Strike_R","type":"ATTACK","uuid":"ec79f404-928a-4665-9a29-8369e66e9dab","upgrades":0,"rarit
@jonathanpaulson
jonathanpaulson / protobuf.hs
Created May 8, 2014 20:54
Haskell Protocol Buffers
{-
Implements binary encoding and decoding of protocol buffers
as specified in:
https://developers.google.com/protocol-buffers/docs/encoding
https://developers.google.com/protocol-buffers/docs/proto
TODO:
Handle [packed=true]
Parse .proto file
@jonathanpaulson
jonathanpaulson / pow.java
Created September 9, 2012 23:19
My blog
/* Fully recursive */
public int pow(int b, int e) {
if(b == 0) return 1;
if(e%2 == 0) return pow(b*b, e/2);
return b*pow(b, e-1);
}
/* tail recursive */
public int pow(int b, int e) { return _pow(b,e,1); }
public int _pow(int b, int e, int ans) {