Skip to content

Instantly share code, notes, and snippets.

🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
Block or report user

Report or block mattn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.go
package main
import (
"fmt"
"strconv"
"github.com/mitchellh/go-z3"
)
func main() {
View main.go
package main
import (
"flag"
"fmt"
"image/png"
"io/ioutil"
"log"
"math"
"os"
@mattn
mattn / conda.cmd
Created Mar 15, 2019
Windows だと conda activate tensorflow が動かないのでそれっぽく動く様にする為のバッチファイル
View conda.cmd
@echo off
if "%1" equ "activate" (
call %LOCALAPPDATA%\Continuum\miniconda3\Scripts\%1.bat %2 %3 %4 %5 %6 %7 %8 %9
) else (
call %LOCALAPPDATA%\Continuum\miniconda3\Scripts\conda.exe %*
)
@mattn
mattn / Makefile
Last active Apr 7, 2019
Using libfacedetection with video capture
View Makefile
SRCS = \
libfacedetectcnn-example.cpp \
../src/facedetectcnn.cpp \
../src/facedetectcnn-floatdata.cpp \
../src/facedetectcnn-int8data.cpp \
../src/facedetectcnn-model.cpp
OBJS = $(subst .cc,.o,$(subst .cxx,.o,$(subst .cpp,.o,$(SRCS))))
View extend-blob.diff
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 0ad8d84cf..e3093649d 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3607,6 +3607,51 @@ f_extend(typval_T *argvars, typval_T *rettv)
copy_tv(&argvars[0], rettv);
}
}
+ else if (argvars[0].v_type == VAR_LIST && argvars[1].v_type == VAR_BLOB)
+ {
View slow.go
package main
import (
"flag"
"os"
"time"
)
func main() {
var n int
View slow.go
package main
import (
"flag"
"os"
"time"
)
func main() {
var n int
View kernel.json
{
"argv": [
"python",
"c:/Users/mattn/AppData/Roaming/jupyter/kernels/vimkernel/vimkernel.py",
"-f",
"{connection_file}"
],
"display_name": "Vim"
}
@mattn
mattn / main.go
Created Dec 12, 2018
go-libvterm を使ったサンプル
View main.go
package main
import (
"image"
"image/color"
"image/draw"
"image/png"
"log"
"os"
View Makefile
SRCS = \
pow.c
OBJS = $(subst .c,.o,$(SRCS))
CFLAGS = -fPIC
LIBS = -shared -lm -ldl
TARGET = libpow.so
.SUFFIXES: .c .o
You can’t perform that action at this time.