Skip to content

Instantly share code, notes, and snippets.

View scajanus's full-sized avatar

Sakari Cajanus scajanus

View GitHub Profile
% http://typophile.com/node/65144
% Lines starting with a percent sign (%) are comments. LaTeX will
% not process those lines. Similarly, everything after a percent
% sign in a line is considered a comment. To produce a percent sign
% in the output, write \% (backslash followed by the percent sign).
% ==================================================================
% Usage instructions:
% ------------------------------------------------------------------
% The file is heavily commented so that you know what the various
% commands do. Feel free to remove any comments you don't need from
@scajanus
scajanus / gist:8336217
Created January 9, 2014 15:44
Jamie Lewis's/Sin Leung's chicken
8 chicken breasts (4lbs). Pat dry and drop into a crock pot after you've mixed
2 cups of ketchup, 1C maple syrup, 4TBSP each spicy mustard, brown sugar, and
worchestershire sauce, 2tsp each chili powder and garlic powder and a splash of
lemon in it. I stirred the chicken breasts a bunch on low, then at about the 4
hour mark pulled the chicken apart and let it simmer for another 2 hours on
low. Let it sit at warm for at least another hour to get the chicken totally
saturated with the sauce, and you're in hog heaven.
<!DOCTYPE html>
<html>
<head>
<script src="http://www.w3schools.com/xml/loadxmldoc.js"></script>
<body>
<script>
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
@scajanus
scajanus / HighlightYank.vim
Last active December 26, 2015 19:49
Highlight last yank until cursor is moved
hi LastYank guifg=#FFAAAA ctermbg=15
function! AddHL(reg)
call matchadd('LastYank', getreg(a:reg))
endfunction
au CursorMoved * call clearmatches()
nnoremap yaw yaw:call AddHL(v:register)<CR>
"etc. A plugin called yankring has an example loop for doing the mappings
function! AddHLMark()
lyta build 1032 % env CFLAGS="-I$HOME/local/include" -LDFLAGS="-L$HOME/local/lib" cmake .. -DPREFIX=$HOME/local -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for include files HAVE_LANGINFO_CODESET
-- Looking for include files HAVE_LANGINFO_CODESET - found
-- Looking for include files HAVE_SYS_RESOURCE_H
-- Looking for include files HAVE_SYS_RESOURCE_H - found
# tmpfs is a temporary filesystem that resides in memory and/or your swap partition(s), depending on how much you fill it up. Mounting directories as tmpfs can be an effective way of speeding up accesses to their files, or to ensure that their contents are automatically cleared upon reboot.
tmpfs /tmp tmpfs nodev,nosuid 0 0
tmpfs /home/sca/downloads tmpfs uid=1000,gid=1000,rw,size=512M,nodev,nosuid,mode=756 0 0
I had my aims all muddled the fuck up- I started thinking about the destination,
rather than the journey, and in doing so, I fucked up my motivations irrevocably.
When doing something for material gain, you activate the nucleus accumbens in
your brain. That's essentially the pleasure center in the brain, but it requires ever-
increasing amounts of stimulation and is generally harder to activate than other
parts. Doing something for fun, however, activates the posterior superior temporal
sulcus, which is the part of the brain responsible for social interactions (also known
as the altruism center), in addition to biological movement. They can't function at
the same time, so you basically have to pick activating one and sticking with it,
and I picked incorrectly.(Brafman 140)
\usepackage[style=authoryear-comp,backend=biber,natbib=true]{biblatex}
\addbibresource{sources.bib}
\begin{document}
\printbibliography
\end{document}
nnoremap <expr> zt winline()-winheight(0)/3>0? winline()-winheight(0)/3 . '<C-e>' : winline()-1 . '<C-e>'
g/^/if !(line('.')%2) | s/^\(\S*\s\)\{2}// | endif
g/^/join