Skip to content

Instantly share code, notes, and snippets.

View watiko's full-sized avatar
🎯
Focusing

watiko watiko

🎯
Focusing
View GitHub Profile
diff --git a/src/eval.c b/src/eval.c
index ef0ea5e..2668f3d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -8073,11 +8073,13 @@ static struct fst
{"argidx", 0, 0, f_argidx},
{"arglistid", 0, 2, f_arglistid},
{"argv", 0, 1, f_argv},
+#ifdef FEAT_FLOAT
+ {"asin", 1, 1, f_asin}, /* WJMc */
diff --git src/gui.c src/gui.c
index 57c2b20..f091fb8 100644
--- src/gui.c
+++ src/gui.c
@@ -1975,6 +1975,9 @@ gui_write(s, len)
#endif
gui_mch_flush(); /* In case vim decides to take a nap */
+#if defined(FEAT_GUI_MACVIM)
+ gui_macvim_flush();
-- Test for linebreak and list option in utf-8 mode
local helpers = require('test.functional.helpers')
local clear = helpers.clear
local dedent = helpers.dedent
local eq = helpers.eq
local expect = helpers.expect
local feed = helpers.feed
local nvim = helpers.meths
local source = helpers.source
@watiko
watiko / vim-cmdline-autoload-complete.patch
Created March 28, 2016 14:05
Vim cmdline autoload variable completion
diff --git a/src/eval.c b/src/eval.c
index ea7f909..2ced3b6 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3399,6 +3399,12 @@ set_context_for_expression(
got_eq = TRUE;
xp->xp_context = EXPAND_EXPRESSION;
}
+ else if ((c == '#')
+ && xp->xp_context == EXPAND_EXPRESSION)
@watiko
watiko / README.md
Last active December 1, 2017 20:48 — forked from yuroyoro/README.md
Sentryをdocker-composeで。
  1. docker run --rm sentry config generate-secret-key で SECRET_KEY を生成する
  2. SECRET_KEY を環境変数にいれる export SENTRY_SECRET_KEY="your generated secret key"
  3. docker-compose up -d でサービスあげる
  4. docker-compose run --rm sentry sentry upgrade で初期設定する
  5. docker-compose restart で再起動
  6. Go http://localhost:9000 and get sentry!
@watiko
watiko / kubernetes-envFrom-env.yml
Created June 11, 2018 16:02
Kubernetes envFrom with env
apiVersion: v1
kind: ConfigMap
metadata:
name: myconf
data:
TEST_KEY: my-value
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
@watiko
watiko / 00_timeline.md
Created August 16, 2018 14:02 — forked from south37/00_timeline.md
ISUCON Cheat Sheet
@watiko
watiko / spacemacs-cheshe.md
Created August 24, 2018 05:02 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
namespace Ext {
export enum A {
One = 'one',
Two = 'two',
Three = 'three',
}
export namespace B {
export type Type = typeof One | typeof Two | typeof Three
export const One = 'one'
@watiko
watiko / README.go
Created November 25, 2018 06:23
Go without Tooling System
## セットアップ
```bash
$ mkdir bin
$ go run tools.go
```
## 実行
```bash