I hereby claim:
- I am ayourtch on github.
- I am ayourtch (https://keybase.io/ayourtch) on keybase.
- I have a public key whose fingerprint is 53D8 1901 106A 392C 2D40 9F00 163C C42D 427C 2DBC
To claim this, I am signing this object:
| function default_page(page, req, resp, params) | |
| local form = { | |
| { "text", name = "textfield", id = "stTagInput", autocomplete = "off", class = "input-text", | |
| value = params.test, title = "this is a text" }, | |
| { "submit", value = "set", class = "input-btn" }, | |
| method = "post", action = "post", id = "UpdateForm" | |
| } | |
| page.myform = form |
| -- http://lua-users.org/lists/lua-l/2002-04/msg00180.html | |
| require 'socket' | |
| local header = | |
| [[HTTP/1.1 200 OK | |
| Date: Fri, 19 Apr 2002 20:37:57 GMT | |
| Server: Apache/1.3.23 (Darwin) mod_ssl/2.8.7 OpenSSL/0.9.6b | |
| Cache-Control: max-age=60 | |
| Expires: Fri, 19 Apr 2002 20:38:57 GMT |
| diff --git a/Makefile b/Makefile | |
| index 2d269fe..07ee2e9 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -107,4 +107,4 @@ sqlite3: | |
| cd $(SQLITE3_DIR) && $(MAKE) | |
| zeromq: | |
| - cd $(ZEROMQ_DIR) && $(MAKE) | |
| + cd $(ZEROMQ_DIR) && ./configure --prefix=$(PREFIX) && $(MAKE) |
| -- Andrew Yourtchenko - Programming Challange from Erann Gat: | |
| -- http://www.flownet.com/ron/papers/lisp-java/ | |
| -- Given a list of words and a list of phone numbers, find all the ways that | |
| -- each phone number can be expressed as a list of words. | |
| -- No batteries included. We have to define our own split() function. | |
| function string:split(sep) | |
| local sep, fields = sep or ":", {} | |
| local pattern = string.format("([^%s]+)", sep) | |
| self:gsub(pattern, function(c) fields[#fields+1] = c end) |
| void bt() { | |
| enum { BT_SIZE = 10 }; // Whatever big enough. | |
| int i; | |
| void *btbuf[BT_SIZE]; | |
| int btsize = backtrace(btbuf, BT_SIZE); | |
| printf("Backtrace entries: %d\n", btsize); | |
| for(i=0; i<btsize; i++) { | |
| printf("%d: %p\n", i, btbuf[i]); | |
| } | |
| } |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| void checkzero(char *p, int size) { | |
| while(--size) { | |
| if(p[size]) { | |
| printf("%p is non-zero at offset %d, the value is 0x%02hhx\n", | |
| p, size, p[size]); |
| ctrl-z | |
| bg | |
| touch /tmp/stdout | |
| touch /tmp/stderr | |
| gdb -p $! | |
| # In GDB | |
| p dup2(open("/tmp/stdout", 1), 1) | |
| p dup2(open("/tmp/stderr", 1), 2) |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <netdb.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> | |
| #include <pthread.h> |
| # Oona Rรคisรคnen 2013 | |
| @emoji = qw( ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ท ๐ธ | |
| ๐น ๐บ ๐ป ๐ผ ๐ฝ ๐พ ๐ฟ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ | |
| ๐ฌ ๐ญ ๐ฎ ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ถ ๐ท ๐ธ ๐น ๐บ ๐ป | |
| ๐ผ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ ๐ | |
| ๐ ๐ ๐ก ๐ข ๐ฃ ๐ค ๐ฅ ๐ฆ ๐ง ๐จ ๐ฉ ๐ช ๐ซ ๐ฌ ๐ญ ๐ฎ | |
| ๐ฏ ๐ฐ ๐ฑ ๐ฒ ๐ณ ๐ด ๐ต ๐ท ๐ธ ๐น ๐บ ๐ป ๐ฝ ๐พ ๐ฟ ๐ |
I hereby claim:
To claim this, I am signing this object: