Skip to content

Instantly share code, notes, and snippets.

View davidosomething's full-sized avatar
🍼
I have a baby.

David O'Trakoun davidosomething

🍼
I have a baby.
View GitHub Profile
@davidosomething
davidosomething / balance.lua
Last active July 20, 2023 15:46
balance sibling pane sizes in wezterm (not working)
--- Get panes that are on the same axis as the tab's active pane
---@param axis 'y'|'x'
---@param tab table
---@return table siblings
local function get_axis_siblings(axis, tab)
local initial = tab:active_pane()
local siblings = { initial }
local prev_dir = axis == "x" and "Left" or "Up"
local next_dir = axis == "x" and "Right" or "Down"
@davidosomething
davidosomething / .tern-project
Created October 6, 2016 07:07
tern-lint test
{
"ecmaVersion": 6,
"libs": [
"browser",
"jquery"
],
"loadEagerly": [
"**/*.js"
],
"dontLoad": [
@davidosomething
davidosomething / gtkd-3.3.1-1-x86_64-build.log
Created May 21, 2016 05:32
gtkd-3.3.1-1-x86_64-build.log
ldc -O -m64 -Isrc -c src/atk/HyperlinkImplIF.d -ofsrc/atk/HyperlinkImplIF.o
ldc -O -m64 -Isrc -c src/atk/NoOpObjectFactory.d -ofsrc/atk/NoOpObjectFactory.o
ldc -O -m64 -Isrc -c src/atk/EditableTextIF.d -ofsrc/atk/EditableTextIF.o
ldc -O -m64 -Isrc -c src/atk/Socket.d -ofsrc/atk/Socket.o
ldc -O -m64 -Isrc -c src/atk/ComponentIF.d -ofsrc/atk/ComponentIF.o
ldc -O -m64 -Isrc -c src/atk/StreamableContentT.d -ofsrc/atk/StreamableContentT.o
ldc -O -m64 -Isrc -c src/atk/NoOpObject.d -ofsrc/atk/NoOpObject.o
ldc -O -m64 -Isrc -c src/atk/GObjectAccessible.d -ofsrc/atk/GObjectAccessible.o
ldc -O -m64 -Isrc -c src/atk/ActionT.d -ofsrc/atk/ActionT.o
ldc -O -m64 -Isrc -c src/atk/ValueT.d -ofsrc/atk/ValueT.o

Keybase proof

I hereby claim:

  • I am davidosomething on github.
  • I am davidosomething (https://keybase.io/davidosomething) on keybase.
  • I have a public key whose fingerprint is 54A4 98C8 429C C549 08A0 8F30 20DD 3828 8CA0 D3F4

To claim this, I am signing this object:

@davidosomething
davidosomething / function-type-test.js
Created February 12, 2016 05:39
Various function styles for testing
/*eslint-env es6*/
// ES6 generator function
var anonymousGeneratorFunctionExpression = function* (arg1, arg2) {
};
var namedGeneratorFunctionExpression = function* namedGenerator(arg1, arg2) {
};
/**
* gulp js
*/
/*eslint-env node, es6*/
'use strict';
const fs = require('fs');
const path = require('path');
@davidosomething
davidosomething / markdown.vim
Last active January 26, 2016 00:03
Repeat bullet
" after/ftplugin/markdown.vim
setlocal comments=fb:*,b:-,fb:+,n:> commentstring=>\ %s
setlocal formatoptions+=r
@davidosomething
davidosomething / README.md
Last active April 12, 2017 09:37
Nightwatch/Selenium test vs CasperJS/PhantomJS test

This is roughly the same test run in both casper and nightwatch.

@davidosomething
davidosomething / easyclipring.vim
Created November 19, 2015 00:13
PUM for easyclip yanks
scriptencoding UTF-8
" ============================================================================
" EasyClip ring
" Requires vim-easyclip installed
" Press <Leader>cr to get a pop-up menu to select a yank
" ============================================================================
function! YanksToArray()
let yanks_array = []
@davidosomething
davidosomething / tryfix.vim
Created November 17, 2015 20:25
Try to fix loclist associations
let t:dko_fixing = 0
let t:dko_moving = 0
let t:dko_correcting = 0
let t:dko_last_window = winnr()
" Remember what window you came from when you leave a normal buffer
function! s:DKO_Remember_Window()
if &buftype != '' | return | endif