Skip to content

Instantly share code, notes, and snippets.

View da-x's full-sized avatar
🐧

Dan Aloni da-x

🐧
View GitHub Profile
@da-x
da-x / c_insert_include_for_tag.vim
Created November 27, 2017 16:00
Insert #include for a C declaration in Vim
"
" CInsertIncludeForTag
"
" Search for the filename containing the prototype of the function or
" type definition for a C tag, and insert '#include <filename>' in the
" current file where there is the marker `i`.
"
function! CInsertIncludeForTag()
redir => l:matches
@da-x
da-x / Code from 1996 - XEDIT.PAS
Last active November 14, 2016 21:06
Code from 1996 - XEDIT.PAS
Uses dans, sunit, crt, DOS, mgdrive, danmath,clocks, newgraph;
Const
vers = '0.01';
editorname = 'DAedit';
VersO = editorname + ' ' + vers;
StyleS1 : Array [1..15] Of String [4] = (
'_/*#', '_/*', '/*#', '_*#', '_/#', '_*', '*#', '*/', '/#', '/_', '#_', '_', '/', '#', '*');
StyleS2 : Array [1..15] Of String [4] = (
'#*/_', '*/_', '#*/', '#*_', '#/_', '*_', '#*', '/*', '#/', '_/', '_#', '_', '/', '#', '*');
@da-x
da-x / Uranium.md
Last active October 3, 2015 07:32
How much Uranium is needed to stop the Earth from rotating, ballpark
@da-x
da-x / gist:41cde932279be590e6a6
Created August 30, 2015 13:08
Show git log only on the current file using magit
(defun my/magit-file-log-y ()
(interactive)
(magit-file-log (buffer-file-name))
)
(global-unset-key (kbd "M-f")) ;; forward-word
(global-set-key (kbd "M-f") 'my/magit-file-log-y)