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
#include <cstdio> | |
#include <math.h> | |
class C { | |
public: | |
C() {} | |
C(double) { printf("hello world\n"); } | |
}; | |
int main(int argc, char** argv) |
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
package test; | |
interface Wrap { | |
static interface Builder { | |
public <T> Wrap build(T o); | |
} | |
public void say(); | |
} | |
public class Test { |
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
$ perl -I../SQL-Maker/lib -MSQL::Maker -e 'warn $SQL::Maker::VERSION' | |
1.15 at -e line 1. | |
$ perl -I../SQL-Maker/lib -Ilib t/002_common/001_insert.t | |
# Subtest: insert mock_basic data/ insert method | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@@@@@ Teng 's Exception @@@@@ | |
Reason : DBD::SQLite::st execute failed: datatype mismatch at lib/Teng.pm line 277. | |
SQL : INSERT INTO "mock_basic" | |
("name", "id") |
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
#include <stddef.h> | |
#include <stdio.h> | |
typedef struct { | |
size_t x; | |
size_t y; | |
} S; | |
static S next(S s) | |
{ |
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
num-threads: 4 | |
port: 8080 | |
files: | |
/: examples/doc_root | |
request-timeout: 10 | |
mime-types: | |
txt: text/plain | |
html: text/html | |
gif: image/gif | |
png: image/png |
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
$ uname -a | |
Linux ubuntu1404 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
$ ls -l htdocs/ | |
total 4 | |
-rw-rw-r-- 1 kazuho kazuho 6 Sep 19 18:30 index.html | |
$ git diff conf/ | |
diff --git a/conf/trusterd.conf.rb b/conf/trusterd.conf.rb | |
index 0f39292..9570e09 100644 | |
--- a/conf/trusterd.conf.rb | |
+++ b/conf/trusterd.conf.rb |
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
$ uname -a | |
Linux ubuntu1404 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
$ cat gt.c | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) | |
{ |
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
$ cat gt.c | |
#include <pthread.h> | |
#include <stddef.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <unistd.h> | |
static void *doit(void* _unused) | |
{ |
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
diff --git a/examples/simple.c b/examples/simple.c | |
index ae359b9..3391f34 100644 | |
--- a/examples/simple.c | |
+++ b/examples/simple.c | |
@@ -208,14 +208,12 @@ int main(int argc, char **argv) | |
#endif | |
/* disabled by default: uncomment the block below to use HTTPS instead of HTTP */ | |
- /* | |
ssl_ctx = h2o_ssl_new_server_context("server.crt", "server.key", h2o_http2_tls_identifiers); |
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
$ cat ipv4addr.c | |
#include <stdio.h> | |
struct ct_printf_t { | |
char *str; | |
size_t off; | |
}; | |
struct ct_printf_t ct_printf_init(char *str) | |
{ |