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
enum FOO { | |
A = 1; | |
B = 2; | |
} | |
message Message { | |
optional bool bool_value = 1; | |
optional float float_value = 2; | |
optional int32 int_value = 3; | |
optional string string_value = 4; |
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
from queryset_sequence import QuerySetSequence | |
class MyQuerySetSequence(QuerySetSequence): | |
INHERITED_ATTRS = [ | |
'_cloning', | |
# Public methods that return QuerySets. | |
'filter', | |
'exclude', | |
'order_by', |
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
AsyncServer asyncServer = new AsyncServer(); | |
AsyncHttpServer httpServer = new AsyncHttpServer(); | |
AsyncHttpClient httpClient = new AsyncHttpClient(asyncServer); | |
ExecutorService executorService = Executors.newCachedThreadPool(); | |
httpServer.get(".*", new HttpServerRequestCallback() { | |
@Override | |
public void onRequest(final AsyncHttpServerRequest request, final AsyncHttpServerResponse response) { | |
executorService.execute(new Runnable() { | |
@Override |
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
09-14 22:36:25.928 Thread[pool-1-thread-6,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET CALLBACK com.koushikdutta.async.Util$8@fea50b1 | |
09-14 22:36:25.929 Thread[AsyncServer,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET READ | |
09-14 22:36:25.929 Thread[pool-1-thread-6,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET CALLBACK null | |
09-14 22:36:25.929 Thread[pool-1-thread-6,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET CALLBACK com.koushikdutta.async.Util$2@5407996 | |
09-14 22:36:25.929 Thread[AsyncServer,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET READ | |
09-14 22:36:25.930 Thread[AsyncServer,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET READ | |
09-14 22:36:25.930 Thread[AsyncServer,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET READ | |
09-14 22:36:25.930 Thread[AsyncServer,5,main]:Socket[address=/127.0.0.1,port=41559,localPort=50025] SET READ | |
09-14 22:36:25. |
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
AsyncServer asyncServer = new AsyncServer(); | |
AsyncHttpServer httpServer = new AsyncHttpServer(); | |
AsyncHttpClient httpClient = new AsyncHttpClient(asyncServer); | |
httpServer.get(".*", new HttpServerRequestCallback() { | |
@Override | |
public void onRequest(final AsyncHttpServerRequest request, final AsyncHttpServerResponse response) { | |
final AsyncHttpGet proxyRequest = new AsyncHttpGet("http://remotehost/" + request.getPath()); | |
String remoteHost = proxyRequest.getHeaders().get("Host"); | |
proxyRequest.getHeaders().addAll(request.getHeaders()); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<layouts> | |
<layout> | |
<name>Symbol</name> | |
<language></language> | |
<keyboard> | |
<!-- row1 --> | |
<key id="48"> | |
<char>)</char> | |
</key> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<layoutmap> | |
<map> | |
<!-- Common section which is used when no <controls> tags defined in following maps --> | |
<layout>Common</layout> | |
<controls>48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90</controls> | |
</map> | |
<map> | |
<layout>Symbol</layout> | |
<!-- |
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
# -*- coding: utf-8 -*- | |
import gc | |
import objgraph | |
import tornado | |
import tornado.httpclient | |
def main(): | |
client = tornado.httpclient.HTTPClient() | |
try: |
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
From d525162f0eb34d6203338fcf843a774af0f16838 Mon Sep 17 00:00:00 2001 | |
From: Vladlen Y. Koshelev <vlad.kosh@gmail.com> | |
Date: Fri, 9 Mar 2012 01:56:55 +0400 | |
Subject: [PATCH 3/3] * ansi -> unicode fs transaction functions | |
--- | |
esky/fstransact/win32txf.py | 10 +++++----- | |
1 files changed, 5 insertions(+), 5 deletions(-) | |
diff --git a/esky/fstransact/win32txf.py b/esky/fstransact/win32txf.py |
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
From 9c22490b0e4219c4bcbaa8e746ce88f595f4a75c Mon Sep 17 00:00:00 2001 | |
From: Vladlen Y. Koshelev <vlad.kosh@gmail.com> | |
Date: Fri, 9 Mar 2012 00:41:07 +0400 | |
Subject: [PATCH 2/3] - file names decoding | |
--- | |
esky/fstransact/win32txf.py | 10 +++++----- | |
1 files changed, 5 insertions(+), 5 deletions(-) | |
diff --git a/esky/fstransact/win32txf.py b/esky/fstransact/win32txf.py |
NewerOlder