Skip to content

Instantly share code, notes, and snippets.

View keizo042's full-sized avatar

Koichi Nakanishi keizo042

  • japanese company
  • Japan
View GitHub Profile
class Greeding
@@hello =nil
def self.hello=(word)
@@hello = word
end
def hello
@@hello
end
end

quic frame degin idea

We couldn’t find that file to show.
We couldn’t find that file to show.
Theorem plus_comm : forall n m : nat,
n + m = m + n.
Proof.
intros.
induction n.
induction m.
reflexivity.
// 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
@keizo042
keizo042 / pi.go
Last active April 13, 2016 17:39
package main
import (
"fmt"
"strconv"
)
type N (chan interface{})
type Z int
Scanning dependencies of target tnzcore
[ 0%] Building CXX object tnzcore/CMakeFiles/tnzcore.dir/__/common/tcore/tdata.cpp.o
clang: warning: -Wl,-install_name,@rpath/libtnzcore.dylib: 'linker' input unused
In file included from /Users/keizo/product/opentoonz/toonz/sources/common/tcore/tdata.cpp:4:
In file included from /Users/keizo/product/opentoonz/toonz/sources/include/tconvert.h:76:
In file included from /Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qstring:1:
In file included from /Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:43:
/Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qrefcount.h:48:22: error: expected ';' at end of
declaration list
inline bool ref() Q_DECL_NOTHROW {
@keizo042
keizo042 / vcl.c
Last active March 12, 2016 04:41
/* ---===### include/vdef.h ###===--- */
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2012 Fastly Inc
* Copyright (c) 2006-2015 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
* Author: Rogier 'DocWilco' Mulhuijzen <rogier@fastly.com>
r = Resolv.new
addr = r.getaddress "google.com"
puts r.getname addr
puts r.getnames addr