Skip to content

Instantly share code, notes, and snippets.

View thriveth's full-sized avatar

T. Emil Rivera-Thorsen thriveth

View GitHub Profile
@thriveth
thriveth / gist:5216313
Last active December 15, 2015 06:29
Conky rc file, slightly modified version of the conky-hardy found on noobslab.
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.6
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
@thriveth
thriveth / Twilight.vim
Last active December 13, 2015 22:59
Clone for Vim of the TextMate color scheme Twilight. Made automatically with [http://coloration.sickill.net/](Coloration) and modded to fix a few remaining eyesores: * More subdued error messages. * Stronger, but not too strong, highlighting of Search and IncSearch terms. * Different folding colors * Tweaked to change folding colors, search and …
" Vim color file
" Converted from Textmate theme Twilight using Coloration v0.3.2 (http://github.com/sickill/coloration)
" Tweaked to change folding colors, search and incsearch highlight and better Tructure / Special colors
" (That is, closer to the original)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
@thriveth
thriveth / gist:4114981
Created November 19, 2012 23:55
TeX example to use in Vim tutorial
\begin{description}
\item[Item1]{Something I feel like telling about}
\item[Item1]{Something else I also feel like telling about}
%... Many items go here
\end{description}
@thriveth
thriveth / gist:4112851
Created November 19, 2012 18:54
Keymap in Vim to scroll while keeping the cursor vertically centered in the window.
" Alt+j/k scrolls text up/down while
" keeping the cursor in center line.
nnoremap <A-j> jzz
nnoremap <A-k> kzz
@thriveth
thriveth / gist:2842131
Created May 31, 2012 09:07
Sherpa.astro.ui module fails to load
In [33]: import sherpa.astro.ui as ui
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/disk/caleuche_1/trive/Arbejde/LARS-COS/<ipython console> in <module>()
/home/trive/Softwarebuild/python_packages/lib/python2.6/site-packages/sherpa/astro/ui/__init__.py in <module>()
19
20 import sherpa.all
---> 21 import sherpa.astro.all