Skip to content

Instantly share code, notes, and snippets.

View romgrk's full-sized avatar
♥️
hey

Rom Grk romgrk

♥️
hey
View GitHub Profile
call plug#begin('~/.config/nvim/bundle')
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
Plug 'reasonml-editor/vim-reason-plus'
call plug#end()
2018-02-06T15:02:59.640243634-05:00 DEBUG languageclient::languageclient - state.id: 4 ==> 5
2018-02-06T15:02:59.640314318-05:00 INFO languageclient::languageclient - => {"jsonrpc":"2.0","method":"eval","params":["[!!get(g:, 'LanguageClient_diagnosticsEnable', v:true), get(g:, 'LanguageClient_diagnosticsList', 'Quickfix'), get(g:, 'LanguageClient_diagnosticsDisplay', {}), get(g:, 'LanguageClient_windowLogMessageLevel', 'Warning')]"],"id":5}
2018-02-06T15:02:59.640414414-05:00 INFO languageclient::languageclient - <= {"id": 5, "jsonrpc": "2.0", "result": [1, "Quickfix", {}, "Warning"]}
2018-02-06T15:02:59.640604491-05:00 DEBUG languageclient::languageclient - state.serverCommands.ocaml: null ==> ["ocaml-language-server","--stdio"]
2018-02-06T15:02:59.640625900-05:00 DEBUG languageclient::languageclient - state.serverCommands.reason: null ==> ["ocaml-language-server","--stdio"]
2018-02-06T15:02:59.640630039-05:00 DEBUG languageclient::languageclient - state.loadSettings: false ==> true
2018-02-06T15:02:59.6409
@romgrk
romgrk / generate.go
Last active February 13, 2018 22:36
//
// example.go
// Copyright (C) 2018 romgrk <romgrk@arch>
//
// Distributed under terms of the MIT license.
//
package main
@romgrk
romgrk / surround-function.vim
Last active September 18, 2021 18:53
Adds ability to manipulate function calls with vim-surround
" This lets vim-surround be able to surround a motion with a function-call,
" but it's not smart enough to handle delete-surrounding & change-surrounding,
" so it's handled by the functions below
let surround_{char2nr("f")} = "\1func: \1(\r)"
" Mappings
nmap dsf :call DSurroundFunc()<CR>
@romgrk
romgrk / IGVBrowser.js
Last active July 12, 2019 19:20
React integration of IGV.js browser
/*
* IGVBrowser.js
* MIT License (c) romgrk 2018
*/
/* global igv */
/*
Must be imported manually:
<!-- IGV.js -->
// npm install csv-string rimraf
const fs = require('fs')
const path = require('path')
const CSV = require('csv-string')
const rimraf = require('rimraf')
const args = process.argv.slice(2)
const input = args[0]
const output = args[1]
#######################################
SLURM FAKE PROLOGUE (MUGQIC)
mer jan 10 07:50:45 PST 2018
JobId=4053085 JobName=merge_trimmomatic_stats
UserId=mbourgey(3006517) GroupId=mbourgey(3006517) MCS_label=N/A
Priority=676519 Nice=0 Account=rrg-bourqueg-ad_cpu QOS=normal
JobState=RUNNING Reason=None Dependency=(null)
Requeue=0 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
RunTime=00:00:00 TimeLimit=1-00:00:00 TimeMin=N/A
SubmitTime=2018-01-10T07:47:31 EligibleTime=2018-01-10T07:50:42
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# https://python-gtk-3-tutorial.readthedocs.io/en/latest/label.html
# https://developer.gnome.org/gtk3/stable/
import argparse
import gi
gi.require_version('Gtk', '3.0')
@romgrk
romgrk / data-hub.js
Created May 15, 2018 15:46
IHEC data hub hub_description
{
"hub_description": {
"taxon_id": Integer,
"assembly": String,
"publishing_group": String,
"email": String,
"date": String, // format: yyyy-mm-dd
"description": String, // one-sentence description of the datahub
"description_url": String, // URL to description of the datahub. Document must be in markdown format
"lab_description_url": String, // URL to description of the lab. Document must be in markdown format
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 rgregoir <rgregoir@laurier>
#
# Distributed under terms of the MIT license.
def FlagsForFile(filename, **kwargs):