View fw.go
package main
import (
"fmt"
"log"
"os"
"path/filepath"
"strings"
"github.com/go-ole/go-ole"
View gist:0221d5a928ed76bfe7b6496e2c188fee
###########################################################
## Do NOT use this node dump for any purpose other than ##
## debug and research. Compatibility is not guaranteed. ##
###########################################################
# @ NODE_SCOPE (line: 1)
# +- nd_tbl: :a
# +- nd_args:
# | (null node)
# +- nd_body:
View gist:5df218f6d8cdf06a0c0ade718a55258d
diff --git a/autoload/quickrun/runner/job.vim b/autoload/quickrun/runner/job.vim
index 96e0921..9184f68 100644
--- a/autoload/quickrun/runner/job.vim
+++ b/autoload/quickrun/runner/job.vim
@@ -23,7 +23,7 @@ endfunction
function! s:runner.run(commands, input, session) abort
let command = join(a:commands, ' && ')
- let cmd_arg = s:is_win ? ['cmd.exe', '/c', command]
+ let cmd_arg = s:is_win ? "cmd.exe /c ^" . command
View gengo.vim
scriptencoding utf-8
function! s:gengo(str)
let s = join([
\"┌─┐ (゚)(゚) ",
\"│平│彡   と ",
\"つ成│ノ    -、",
\"└─⊂    フ "], "\n")
let t = split(a:str, '\zs')
echo tr(tr(s, '', t[0]), '', t[1])
View _result.txt
BenchmarkPrimeNumber1-4 2000000 1096 ns/op
BenchmarkPrimeNumber1-4 2000000 1089 ns/op
BenchmarkPrimeNumber1-4 2000000 1094 ns/op
BenchmarkPrimeNumber1-4 2000000 1089 ns/op
BenchmarkPrimeNumber1-4 2000000 1117 ns/op
BenchmarkPrimeNumber1-4 2000000 1123 ns/op
BenchmarkPrimeNumber1-4 2000000 1164 ns/op
BenchmarkPrimeNumber1-4 2000000 1091 ns/op
BenchmarkPrimeNumber1-4 2000000 1087 ns/op
BenchmarkPrimeNumber1-4 2000000 1094 ns/op
View reading-vimrc.cmd
@echo off
setlocal
set URL=http://vim-jp.org/reading-vimrc/json/next.json
rundll32.exe url.dll,FileProtocolHandler https://gitter.im/vim-jp/reading-vimrc
for /f %%i in ('curl -s %URL% ^| jq -r .[].vimrcs[].url') do (
rundll32.exe url.dll,FileProtocolHandler %%i
)
View gist:3bc46f6618c7d170dec403d8c05be7fb
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 846a914..917fdad 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -410,6 +410,7 @@ static void f_timer_stopall(typval_T *argvars, typval_T *rettv);
static void f_tolower(typval_T *argvars, typval_T *rettv);
static void f_toupper(typval_T *argvars, typval_T *rettv);
static void f_tr(typval_T *argvars, typval_T *rettv);
+static void f_trim(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_FLOAT
View gist:95fef8b7c81ce37ed2fff2a110cc7f78
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 1257aa0..7ce18bc 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -288,6 +288,7 @@ static void f_py3eval(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_PYTHON
static void f_pyeval(typval_T *argvars, typval_T *rettv);
#endif
+static void f_rand(typval_T *argvars, typval_T *rettv);
static void f_range(typval_T *argvars, typval_T *rettv);
View gist:3dea45366d1733abeb0839faafa2b53f
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 1257aa0..1eca09c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -288,6 +288,7 @@ static void f_py3eval(typval_T *argvars, typval_T *rettv);
#ifdef FEAT_PYTHON
static void f_pyeval(typval_T *argvars, typval_T *rettv);
#endif
+static void f_rand(typval_T *argvars, typval_T *rettv);
static void f_range(typval_T *argvars, typval_T *rettv);
View foo.js
var s1 = "http://"
var s2 = "ftp://"
var s3 = "htts://"
var total = 100000000;
var n;
var start;
n = 0;
start = Date.now();
for (var i = 0; i < total; i++) {