Skip to content

Instantly share code, notes, and snippets.

Avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
View picotls.diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 923ae3d..527e293 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,8 +125,10 @@ IF (OPENSSL_FOUND AND NOT (OPENSSL_VERSION VERSION_LESS "1.0.1"))
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
ADD_LIBRARY(picotls-openssl lib/openssl.c)
TARGET_LINK_LIBRARIES(picotls-openssl ${OPENSSL_CRYPTO_LIBRARIES} picotls-core ${CMAKE_DL_LIBS})
- ADD_EXECUTABLE(cli t/cli.c lib/pembase64.c)
- TARGET_LINK_LIBRARIES(cli picotls-openssl picotls-core)
View 0-README.md
$ time node main1.js > /dev/null
real    6.379
system  0.843
user    2.187
$ time node main2.js > /dev/null
real 4.608
View fizzbuzz.cxx
#include "runtime/exceptions.hpp"
#include "runtime/global_io.hpp"
#include "runtime/global_json.hpp"
#include "runtime/global_symbol.hpp"
#include "runtime/js_value.hpp"
#include <coroutine>
int prog() {
View fib-rust.asm
.text
.def @feat.00;
.scl 3;
.type 0;
.endef
.globl @feat.00
.set @feat.00, 0
.file "fib.11100cec-cgu.0"
.def _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17ha71540ff8e38b0edE;
.scl 3;
@mattn
mattn / create_union_enum.zig
Last active Jul 14, 2022 — forked from hnakamur/create_union_enum.zig
create union enum in Zig
View create_union_enum.zig
const std = @import("std");
const expect = std.testing.expect;
const cell = struct {
v1: ?*Variant,
v2: ?*Variant,
};
const Variant = union(enum) {
int: i32,
View index.html
<style>
#container {
display: inline-block;
margin-left: 200px;
margin-top: 200px;
}
#container img {
margin: 50px;
}
</style>
@mattn
mattn / README.md
Last active Mar 5, 2022
技術系 Twitter コミュニティ
View README.md

移動しました!

View fizzbuzz.c
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <time.h>
#include "genann.h"
static void
bin(int n, double* d) {
int i;
memset(d, 0, sizeof(double)*10);
View go-gonum.go
package main
import (
"fmt"
"log"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)
View Program.cs
using System;
namespace foo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}