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
// when depoyment | |
// | |
// $ gcc sample.c main.c -o sample | |
// when testing | |
// | |
// $ gcc -DDEBUG sample.c test/test_main.c -o test/test | |
#include <stdio.h> | |
#define FAIL 1 |
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
Theorem plus_comm : forall n m : nat, | |
n + m = m + n. | |
Proof. | |
intros. | |
induction n. | |
induction m. | |
reflexivity. |
quic frame degin idea
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
class Greeding | |
@@hello =nil | |
def self.hello=(word) | |
@@hello = word | |
end | |
def hello | |
@@hello | |
end | |
end |
/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/openssl/buffering.rb:125:in `sysread': end of file reached (EOFError)
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/openssl/buffering.rb:125:in `readpartial'
from /usr/local/lib/ruby/gems/2.4.0/gems/twitter-6.1.0/lib/twitter/streaming/connection.rb:21:in `stream'
from /usr/local/lib/ruby/gems/2.4.0/gems/twitter-6.1.0/lib/twitter/streaming/client.rb:119:in `request'
from /usr/local/lib/ruby/gems/2.4.0/gems/twitter-6.1.0/lib/twitter/streaming/client.rb:92:in `user'
from /usr/local/lib/ruby/gems/2.4.0/gems/t-3.1.0/lib/t/stream.rb:146:in `timeline'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/local/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
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
module Main where | |
import Network.QUIC | |
-- Dummy Code : Simple QUIC Client to Echo Server | |
main = do | |
manager <- newManager defaultManagerSettings | |
ctx <- handshake manager "loclahost" 8080 | |
send ctx "1st hello" |
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
newManager :: ManagerSetting -> IO Manager | |
newManager = undefined | |
open :: Manager -> String -> Int -> IO Context | |
open = undefined | |
connect :: Context -> IO () | |
connect = undefined |
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
a |