Skip to content

Instantly share code, notes, and snippets.

@auneri
auneri / pipwin.py
Last active June 25, 2019 16:09
Downloads wheels from http://www.lfd.uci.edu/~gohlke/pythonlibs by name.
"""python -m pipwin pycuda-2016.1.2+cuda7518-cp34-cp34m-win_amd64.whl"""
from __future__ import absolute_import, division, print_function
import argparse
import os
import shutil
import tempfile
import sys
@auneri
auneri / line_profiler_cell_magic.py
Created February 5, 2016 19:53
IPython cell magic for the line_profiler
from __future__ import absolute_import, division, print_function
import inspect
import linecache
import os
from IPython.core import magic
from IPython.core import page
from line_profiler import LineProfiler
from six.moves import StringIO
@auneri
auneri / website.html
Last active June 28, 2021 09:14
Better motherfucking website template.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1, h2, h3 {
line-height: 1.2;
}
body {
margin: 40px auto;
max-width: 650px;