Skip to content

Instantly share code, notes, and snippets.

View zchee's full-sized avatar
😩
want to Go knowledge...

Koichi Shiraishi zchee

😩
want to Go knowledge...
View GitHub Profile
# Thanks to this post:
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x
$ brew install cabextract
$ cd ~/Downloads
$ mkdir consolas
$ cd consolas
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
$ cabextract PowerPointViewer.exe
$ cabextract ppviewer.cab
[deoplete] Traceback (most recent call last):
[deoplete] File "/Users/zchee/.cache/nvim/dein/.dein/rplugin/python3/deoplete/deoplete.py", line 46, in completion_begin
[deoplete] complete_position, candidates = self.gather_candidates(context)
[deoplete] File "/Users/zchee/.cache/nvim/dein/.dein/rplugin/python3/deoplete/deoplete.py", line 74, in gather_candidates
[deoplete] results = self.gather_results(context)
[deoplete] File "/Users/zchee/.cache/nvim/dein/.dein/rplugin/python3/deoplete/deoplete.py", line 125, in gather_results
[deoplete] context['candidates'] = source.gather_candidates(context)
[deoplete] File "/Users/zchee/.cache/nvim/dein/.dein/rplugin/python3/deoplete/sources/file.py", line 39, in gather_candidates
[deoplete] p = self.__longest_path_that_exists(context, context['input'])
[deoplete] File "/Users/zchee/.cache/nvim/dein/.dein/rplugin/python3/deoplete/sources/file.py", line 61, in __longest_path_that_exists
@zchee
zchee / interp.go
Created June 11, 2016 06:01 — forked from elliott5/interp.go
Go Interpreter (in 35 lines) - CURRENTLY NOT WORKING
// NOT WORKING AS AT 14-JAN-14 DUE TO API CHANGES
//
// written for the Go London User Group meeting of 21st November 2013 by Elliott Stoneham
// uses code.google.com/p/go.tools/ssa/interp which warns “It is not, and will never be, a production-quality Go interpreter.”
// main() code adapted from the example given in code.google.com/p/go.tools/ssa
// requires go version 1.2
//
package main
import (
diff -r 8c8cdda36022 src/popupmnu.c
--- a/src/popupmnu.c Wed Aug 14 14:18:41 2013 +0200
+++ b/src/popupmnu.c Thu Aug 15 22:06:10 2013 +0900
@@ -639,7 +639,7 @@
{
/* Return cursor to where we were */
validate_cursor();
- redraw_later(SOME_VALID);
+ redraw_win_later(curwin, REDRAW_TOP);
diff --git a/src/edit.c b/src/edit.c
index abe26fb..b1536fc 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2826,7 +2826,6 @@ ins_compl_upd_pum(void)
if (compl_match_array != NULL)
{
h = curwin->w_cline_height;
- update_screen(0);
if (h != curwin->w_cline_height)
package main
import (
"fmt"
"net"
"os"
"strconv"
"syscall"
)
@zchee
zchee / endian.h
Created June 7, 2016 03:52 — forked from yinyin/endian.h
BSD/Linux-like <endian.h> for MacOS X
#ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__
#define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1
/** compatibility header for endian.h
* This is a simple compatibility shim to convert
* BSD/Linux endian macros to the Mac OS X equivalents.
* It is public domain.
* */
#ifndef __APPLE__
" dein
set runtimepath+=$HOME/src/github.com/Shougo/deoplete.nvim
set runtimepath+=$HOME/src/github.com/zchee/deoplete-jedi
set completeopt+=noinsert,noselect
set completeopt-=preview
hi Pmenu gui=NONE guifg=#c5c8c6 guibg=#373b41
hi PmenuSel gui=reverse guifg=#c5c8c6 guibg=#373b41
package main
import "github.com/derekparker/delve/service/rpc2"
const addr = "localhost:41222" // d:4 l:12 v:22
func pointerStruct() {
client := rpc2.NewClient(addr)
bp, _ := client.GetBreakpoint(-1)
@zchee
zchee / build-llvm.bash
Last active April 25, 2025 03:21
Build llvm for OS X
#!/bin/bash
set -e
# Building LLVM on OSX CMake setup script
#
# Required:
# - clang by Xcode6 or later
# - cmake
# - ninja
#