Skip to content

Instantly share code, notes, and snippets.

@k-takata
k-takata / vim-commit-counts.txt
Last active Sep 16, 2021
Vim commit counts and Japanese contributors
View vim-commit-counts.txt
2010 年から 2021-09-15 時点までの年ごとのコミット数およびパッチ数ランキング
日本人と思われる人には行頭に * でマーク
2010 7.2.326 - 7.3.094
638 commits
25 (Dominique Pelle)
12 (Lech Lorens)
11 (Sergey Khorev)
View mingw-make-deps.diff
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -177,6 +177,7 @@ CROSS_COMPILE = i586-pc-mingw32msvc-
endif
DEL = rm
MKDIR = mkdir -p
+TOUCH = touch
DIRSLASH = /
else
View stdiotest.c
#include <windows.h>
int main(int argc, char *argv[])
{
HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE);
HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
char buf[256];
DWORD cb;
ReadFile(hstdin, buf, sizeof(buf), &cb, NULL);
View sakura_lang.diff
diff --git a/sakura_lang_en_US/Makefile b/sakura_lang_en_US/Makefile
index 0949faa3..4de6510b 100644
--- a/sakura_lang_en_US/Makefile
+++ b/sakura_lang_en_US/Makefile
@@ -23,6 +23,9 @@ endif
# If empty, it will be output to the default directory.
OUTDIR =
+# The directory where sakura_core is built.
+COREBUILDDIR =
View test49-mswin.diff
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -1326,9 +1326,6 @@ MAIN_TARGET = $(VIM).exe
# Target to run individual tests.
VIMTESTTARGET = $(VIM).exe
-OLD_TEST_OUTFILES = \
- $(SCRIPTS_FIRST)
-
all: $(MAIN_TARGET) \
View if_python_39.diff
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -203,6 +203,9 @@ typedef PySliceObject PySliceObject_T;
# define PySys_GetObject py3_PySys_GetObject
# define PySys_SetArgv py3_PySys_SetArgv
# define PyType_Ready py3_PyType_Ready
+# if PY_VERSION_HEX >= 0x03090000
+# define PyType_GetFlags py3_PyType_GetFlags
+# endif
#undef Py_BuildValue
@k-takata
k-takata / Makefile
Last active Mar 13, 2020
hashtable benchmark
View Makefile
all: khash_test.exe khash_test_strkey.exe st_test.exe st_test_strkey.exe
!if "$(Platform)"=="x64"
SIZEOF_VOIDP=8
!else
SIZEOF_VOIDP=4
!endif
khash_test.exe: khash_test.c khash.h
cl /O2 khash_test.c
View lambda-bench.vim
let num = 1000000
let l = range(num)
let start = reltime()
call map(l, {-> v:val * 2})
echo start->reltime()->reltimestr()
let l = range(num)
let start = reltime()
call map(l, "v:val * 2")
@k-takata
k-takata / dl-ag.py
Created Feb 27, 2020
Download the latest silver searcher Win32 from the GitHub releases
View dl-ag.py
#!/usr/bin/python3
# Download the latest silver searcher Win32 from the GitHub releases
import argparse
import calendar
import io
import json
import os
import sys