This file contains hidden or 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
import nrepl | |
c = nrepl.connect("nrepl://localhost:8888") | |
c.write({"op": "eval", "code": "(+ 2 3)"}) |
This file contains hidden or 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
b'd4:code' | |
b'7:(+ 2 3)2:op4:evale' | |
Future/Task exception was never retrieved | |
future: Task(<handle_sess>)<exception=AttributeError("'BencodeProtocol' object has no attribute 'reader'",)> | |
Traceback (most recent call last): | |
File "/home/gbe/sourcecode/HyREPL/HyREPL/server.py", line 32, in handle_sess | |
msg = list(nrepl.decode(data.decode()))[0] | |
IndexError: list index out of range | |
During handling of the above exception, another exception occurred: |
This file contains hidden or 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
$ cat test.hy | |
(defmain [&rest args] | |
(print "foo")) | |
$ hy test.hy | |
Traceback (most recent call last): | |
File "/usr/local/bin/hy", line 9, in <module> | |
load_entry_point('hy==0.10.0', 'console_scripts', 'hy')() | |
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 295, in hy_main | |
sys.exit(cmdline_handler("hy", sys.argv)) | |
File "/usr/local/lib/python2.7/site-packages/hy/cmdline.py", line 283, in cmdline_handler |
This file contains hidden or 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
cache=8192 | |
# cache=65535 | |
cache-min=10 | |
stop-xscreensaver=yes | |
heartbeat-cmd="xscreensaver-command -deactivate >&- 2>&- &" | |
menu=yes | |
fontconfig=yes |
This file contains hidden or 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
! make CapsLock work as modbutton3 | |
keycode 66 = Hyper_L | |
clear lock | |
clear mod3 | |
clear mod4 | |
add mod3 = Hyper_L | |
add mod4 = Super_L Super_R |
This file contains hidden or 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
import pickle | |
class Test(object): | |
def __init__(self, idx): | |
self.foo = 100 * idx | |
self.bar = 200 * idx | |
if __name__ == "__main__": | |
l = [] | |
for x in range(20): |
This file contains hidden or 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
diff -r e9301fef1b63 config.def.h | |
--- a/config.def.h Sat Oct 27 00:01:15 2012 +0200 | |
+++ b/config.def.h Mon Oct 29 10:20:23 2012 +0100 | |
@@ -1,9 +1,8 @@ | |
static const Bool wmborder = True; | |
-static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; | |
+static const char font[] = "DejaVu Sans Mono:pixelsize=14:antialias=true:autohint=true"; | |
static const char normbgcolor[] = "#cccccc"; | |
static const char normfgcolor[] = "#000000"; | |
static const char pressbgcolor[] = "#0000cc"; |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyMNboVjcpBuUl0VvL1esm89a7MplR4LuN8CSxCVWdMeQFUErDI49EP3Vokfcms0ULDeGeeaoF4c1oEOZ6NcxDR9iJ0pxCrd2JAgfOGmi5eV5O7qX5DgKODeVH/ltJMgIP1dfhBANet4iIu8m87s9XRyqLRCcCFhXJP1jNSS6qkhiZ20tB73jM/uh0tHdVxh8iUt4fgA0b2mgd/NSDl49vQN2FOs7KI3xck/ZVQx+hEQNcZAD7BZWVPgGodJRdPnIwGr3YBxi+XqPHUVQ3K0GM8RfR1ptQvIt3J8FG4kFclB2jWtJ1g55xO5VRfeDS6OmxgvpQ1yO3XtOFRszQFuxvw== gregor@hydrogen |
This file contains hidden or 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
Index: arch/amd64/amd64/identcpu.c | |
=================================================================== | |
RCS file: /cvs/src/sys/arch/amd64/amd64/identcpu.c,v | |
retrieving revision 1.41 | |
diff -u -r1.41 identcpu.c | |
--- arch/amd64/amd64/identcpu.c 9 Oct 2012 09:16:09 -0000 1.41 | |
+++ arch/amd64/amd64/identcpu.c 23 Oct 2012 10:27:44 -0000 | |
@@ -210,6 +210,8 @@ | |
void via_nano_setup(struct cpu_info *ci); |
This file contains hidden or 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 <stdlib.h> | |
#include <fcntl.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#define CHILDREN 50 | |
void | |
spin(void) { | |
while (1) { |