Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Jackson puremourning

  • England, UK
View GitHub Profile
View gist:e6c3faa3473dd8073d76
swagger: "2.0"
info:
title: ycmd
description: |-
ycmd is a code-completion & code-comprehension server
## General Notes
- All strings going into and out of the server are UTF-8 encoded.
- All line and column numbers are 1-based, not 0-based. They are also byte
@puremourning
puremourning / build
Created Feb 20, 2017
Put these into a directory (e.g. $HOME/Development/temp/ios), chmod +x build and ./build
View build
clang -x c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -gmodules -fmodules-cache-path=$PWD/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=$PWD/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DDEBUG=1 -isy
@puremourning
puremourning / Vagrantfile
Created Jun 10, 2017
Setting up a Vagrant VM for CentOS 7
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "parallels/centos-7.3"
#config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "public_network"
config.vm.provider "parallels" do |v|
View keybase.md

Keybase proof

I hereby claim:

  • I am puremourning on github.
  • I am puremourning (https://keybase.io/puremourning) on keybase.
  • I have a public key ASAArW3ExQo71rDY9lDVJntzw4V69cBl-X6Nkm8pKLT3kgo

To claim this, I am signing this object:

View gist:74c5e88a78bf926a5fd903d3b6c4bf81
# Master
2017-08-28 11:22:55
------------------------------------------------------------------------------------------------------------------
Benchmark Time CPU Iterations
------------------------------------------------------------------------------------------------------------------
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1 740 ns 740 ns 902772
IdentifierCompleterFixture/CandidatesWithCommonPrefix/2 1296 ns 1295 ns 542211
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4 2191 ns 2190 ns 321885
IdentifierCompleterFixture/CandidatesWithCommonPrefix/8 3803 ns 3802 ns 182322
@puremourning
puremourning / master.md
Created Aug 31, 2017
DLLDefines benchmark macOS
View master.md

Master

------------------------------------------------------------------------------------------------------------------
Benchmark                                                                           Time           CPU Iterations
------------------------------------------------------------------------------------------------------------------
IdentifierCompleterFixture/CandidatesWithCommonPrefix/1                           776 ns        776 ns     832719
IdentifierCompleterFixture/CandidatesWithCommonPrefix/2                          1328 ns       1328 ns     515487
IdentifierCompleterFixture/CandidatesWithCommonPrefix/4                          2223 ns       2222 ns     309970
IdentifierCompleterFixture/CandidatesWithCommonPrefix/8                          3808 ns       3808 ns     181840
View .log
!ENTRY org.eclipse.jdt.ls.core 1 0 2017-09-12 18:36:06.710
!MESSAGE >> shutdown
!ENTRY org.eclipse.jdt.ls.core 1 0 2017-09-12 18:36:07.103
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is stopping:
!ENTRY org.eclipse.jdt.ls.core 1 0 2017-09-12 18:36:07.114
!MESSAGE Thread[Signal Dispatcher,9,system]
Thread[Framework stop,5,main]
at java.lang.Thread.dumpThreads(Native Method)
View .ycm_extra_conf.py
import subprocess
import os
platform_layer = [
'handmade_platform.h',
'handmade_shared.h',
'SDL2/SDL.h',
'SDL2/SDL_opengl.h',
'stdio.h',
@puremourning
puremourning / rfc.md
Last active Feb 12, 2019
RFC: Parameter hints popup menu
View rfc.md

TL;DR

This RFC proposes introducing a second popup menu in insert mode to display method argument hints, current parameter, etc. similar to a number of IDEs and editors. The proposal is to allow scripts to control this (such as on insert of ( and ) characters) and for it to be non-interractive and not to interfere with insert-mode completion.

The purpose of the RFC is to guage the appetite from Bram and the community for such a feature, and to discuss the design/functional behaviours prior to

@puremourning
puremourning / ycmd-log-exception.log
Created Jan 3, 2018
jdt.ls exception loading grade project
View ycmd-log-exception.log
project being openend:
https://github.com/puremourning/ycmd-1/tree/java-language-server/ycmd/tests/java/testdata/simple_gradle_project
ycmd.handlers: INFO: Received event notification
ycmd.handlers: DEBUG: Event name: FileReadyToParse
ycmd.completers.all.identifier_completer: INFO: Adding buffer identifiers for file: C:\projects\ycmd\ycmd\tests\java\testdata\simple_maven_project\src\main\java\com\test\test.java
ycmd.completers.java.java_completer: INFO: Looking for jdt.ls
ycmd.completers.java.java_completer: DEBUG: Found launchers: ['C:\\projects\\ycmd\\third_party\\eclipse.jdt.ls\\org.eclipse.jdt.ls.product\\target\\repository\\plugins\\org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar']
ycmd.completers.java.java_completer: DEBUG: Found launchers: ['C:\\projects\\ycmd\\third_party\\eclipse.jdt.ls\\org.eclipse.jdt.ls.product\\target\\repository\\plugins\\org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar']
ycmd.completers.java.java_completer: INFO: Starting jdt.ls Language Server...
You can’t perform that action at this time.