Skip to content

Instantly share code, notes, and snippets.

View romgrk's full-sized avatar
♥️
hey

Rom Grk romgrk

♥️
hey
View GitHub Profile
/*
* gtk4.js
*/
const gi = require('.')
const GLib = gi.require('GLib', '2.0')
const Gtk = gi.require('Gtk', '4.0')
gi.startLoop()
@romgrk
romgrk / fzy.py
Created February 26, 2021 14:41
Python port of FZY
#
# License: MIT
# ported from: https://github.com/jhawthorn/fzy.js
#
from typing import List
SCORE_MIN = -100
SCORE_MAX = +1.0 * 99999999999999999999
@romgrk
romgrk / attach-comments.js
Created February 21, 2021 16:19
Attach comments to meriyah's AST
// npm i estree-walker@2
const { walk } = require('estree-walker')
// These node types will not get any comments attached to them
const skipNodes = new Set([
'Identifier',
])
/**
* Attach comments to the next node after the comment's location
@romgrk
romgrk / plugin-roxterm.vim
Created November 20, 2020 12:56
roxterm nvim with persistent dimensions
if $NVIM_IN_ROXTERM != '1'
finish
end
augroup roxterm
au VimLeave * :call roxterm#save_dimensions()
augroup end
function! roxterm#save_dimensions () abort
diff --git a/src/windows/window-manager.ts b/src/windows/window-manager.ts
index be87fe9..8e5538b 100644
--- a/src/windows/window-manager.ts
+++ b/src/windows/window-manager.ts
@@ -32,7 +32,16 @@ const getWindowById = (windowId: number) => {
const getInstanceWindows = (id = instances.current) =>
[...windows.values()].filter((win) => win.id.startsWith(`i${id}`))
+let webglTimeout: any;
+
mkdir -p build
touch build/.ran-third-party-cmake
ninja -C .deps
ninja: Entering directory `.deps'
[3/3] cd /home/romgrk/github/neovim/.deps && /usr/bin/cmake -E touch .third-party
ninja -C build
ninja: Entering directory `build'
[1/6] cd /home/romgrk/github/neovim && /home/romgrk/github/neovim/.deps/usr/bin/luajit scripts/update_version_stamp.lua build/config/auto/versiondef_git.h v0.5.0
ninja -C build functionaltest
ninja: Entering directory `build'
/*
* fzy.js
*/
var SCORE_MIN = -Infinity;
var SCORE_MAX = Infinity;
var SCORE_GAP_LEADING = -0.005
var SCORE_GAP_TRAILING = -0.005
var SCORE_GAP_INNER = -0.01
@romgrk
romgrk / nvim.log
Created October 22, 2020 06:50
nvim.log
INFO 2020-10-22T02:49:35.049 1148971 channel_create_event:204: new channel 56 (function gitgutter#process_buffer[10]..<SNR>226_setup_path[3]..gitgutter#utility#set_repo_path[12]..gitgutter#async#execute:11) : {"id": 56, "mode": "bytes", "stream": "job"}
INFO 2020-10-22T02:49:35.058 1148971 on_process_exit:392: exited: pid=1149221 status=128 stoptime=0
INFO 2020-10-22T02:49:35.983 1148971 channel_create_event:204: new channel 57 (function <SNR>191_on_refresh_event[4]..hexokinase#v2#scraper#on:43) : {"id": 57, "mode": "bytes", "stream": "job"}
INFO 2020-10-22T02:49:36.039 1148971 channel_create_event:204: new channel 58 (function <SNR>192_on_bufenter[9]..gitgutter#process_buffer[10]..<SNR>226_setup_path[3]..gitgutter#utility#set_repo_path[12]..gitgutter#async#execute:11) : {"id": 58, "mode": "bytes", "stream": "job"}
INFO 2020-10-22T02:49:36.040 1148971 on_process_exit:392: exited: pid=1149222 status=0 stoptime=0
INFO 2020-10-22T02:49:36.047 1148971 on_process_exit:392: exited: pid=1149227 status=128 stop
/*
* event-memory-leak.js
*/
const gi = require('.')
const Gtk = gi.require('Gtk', '3.0')
const Cairo = gi.require('cairo')
const Pango = gi.require('Pango')
const PangoCairo = gi.require('PangoCairo')
/*
* convert-datahub-to-experiments.js
*/
const fs = require('fs')
const resolveTerm = require('./resolve-term')
const util = require('util')
util.inspect.defaultOptions = { depth: 4 }
if (process.argv.length < 3) {