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
int cnt = 0; | |
var list = from i in new int[] { 1, 2, } | |
select i + (++cnt); | |
Console.WriteLine("BP!"); // <-- breakpoint at this line | |
// watch 'results view' of "list" variable! | |
list.ToList().ForEach(x => Console.WriteLine(x)); |
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
# dummy client | |
import asyncio | |
import logging | |
import socket | |
ip = "127.0.0.1" | |
@asyncio.coroutine | |
def test_conn(loop): | |
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
def _get_free_connection(self): | |
""" | |
Return the next protocol instance that's not in use. | |
(A protocol in pubsub mode or doing a blocking request is considered busy, | |
and can't be used for anything else.) | |
""" | |
self._shuffle_connections() | |
for c in self._connections: | |
if c.protocol.is_connected and not c.protocol.in_use: |
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
Verifying that +kernel is my openname (Bitcoin username). https://onename.com/kernel |