Skip to content

Instantly share code, notes, and snippets.

@font-face {
font-family: "Profont Nerd Font";
font-style: normal;
font-weight: 400;
src: url('https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/ProFont/profontiix/complete/ProFont%20IIx%20Nerd%20Font%20Complete%20Mono.ttf') format('truetype');
}
@trws
trws / apprentice.js
Created November 20, 2019 15:00
Blink/hterm compatible version of apprentice.vim
t.prefs_.set('color-palette-overrides', [ "#1C1C1C", "#AF5F5F", "#5F875F", "#87875F", "#5F87AF", "#5F5F87", "#5F8787", "#6C6C6C", "#444444", "#FF8700", "#87AF87", "#FFFFAF", "#8FAFD7", "#8787AF", "#5FAFAF", "#FFFFFF" ]);
t.prefs_.set('foreground-color', "#BCBCBC");
t.prefs_.set('background-color', "#262626");
t.prefs_.set('cursor-color', 'rgba(208,208,208,0.5)');
@trws
trws / svimrc
Last active October 20, 2017 17:39
svim safari config
unmap "d"
unmap "u"
map "d" quit
map "u" lastClosedTab
let hintcharacters = "1234567890";
map "ctrl+d" scrollPageDown
map "ctrl+u" scrollPageUp
tell application "Google Chrome"
repeat with windowId from 1 to counts windows
if title of window windowId contains "tom.scogland@gmail.com - Gmail" then
activate window windowId
end if
end repeat
end tell
void *alloc2d(size_t item_size, size_t len1, size_t len2){
void ** arr = (void**)malloc(len1*sizeof(void*));
for(int i=0; i<len1; i++){
arr[i] = malloc(len2*item_size);
}
return arr;
}