Skip to content

Instantly share code, notes, and snippets.

View alexlouden's full-sized avatar
🐶
👋

Alex Louden alexlouden

🐶
👋
View GitHub Profile
@alexlouden
alexlouden / index.html
Last active December 11, 2017 07:41
Icon font sass
<i class="icon-star"></i>

Keybase proof

I hereby claim:

  • I am alexlouden on github.
  • I am alexlouden (https://keybase.io/alexlouden) on keybase.
  • I have a public key whose fingerprint is 4C0B 565D 15A9 4295 95C0 C4D3 0AA5 79A2 F938 FFB2

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rm -rf build
mkdir build
cd build
cmake \
-G "Unix Makefiles" \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D CUDA_FAST_MATH=1 \
-D WITH_CUBLAS=1 \
@alexlouden
alexlouden / form_prefix.py
Last active May 9, 2016 03:00
Django prefixed form with data
from django import forms
class PersonForm(forms.Form):
name = forms.CharField(required=True)
## Initial data = valid
f = PersonForm({'name': 'Alex'})
f.is_valid()
@alexlouden
alexlouden / icon_mixin.sass
Created December 18, 2013 10:28
Sass mixin for icon font definitions (and search-replace from expanded sass definition)
@mixin icon($name, $code)
.icon-#{$name}:before
content: "#{$code}"
// Usage:
+icon(heart, \e600)
// Compiles to:
.icon-heart:before {
content: "\e600";
https://github.com/cyberdelia/heroku-geo-buildpack.git#1.1
https://github.com/heroku/heroku-buildpack-python.git#v29
@alexlouden
alexlouden / circle.yml
Created December 16, 2013 23:51
Circle CI configuration for PostGIS
database:
post:
- psql -c "CREATE EXTENSION postgis;" -d circle_test
# psql:
# CREATE DATABASE mydatabase;
# \connect mydatabase
# CREATE EXTENSION postgis;
# GEOS from buildpack
try:
GEOS_LIBRARY_PATH = os.path.join(os.environ['GEOS_LIBRARY_PATH'], 'libgeos_c.so')
GDAL_LIBRARY_PATH = os.path.join(os.environ['GDAL_LIBRARY_PATH'], 'libgdal.so')
except: