Skip to content

Instantly share code, notes, and snippets.

View whitelynx's full-sized avatar
😸

David H. Bronke whitelynx

😸
View GitHub Profile
@whitelynx
whitelynx / test-gdal-vrt-output.py
Created February 6, 2014 21:57
A simple (slightly broken) implementation of writing a VRT file from Python, using GDAL.
#!/usr/bin/env python2
"""A simple (slightly broken) implementation of writing a VRT file from Python, using GDAL.
Adapted from sample code at: http://gis.stackexchange.com/questions/44003/python-equivalent-of-gdalbuildvrt#answer-44048
"""
## Options ##
x_size, y_size = 512, 512
source_path = 'test.tif'
source_band = 1
@whitelynx
whitelynx / query-func-classification.js
Last active August 29, 2015 14:01
OmegaDB examples/comments
//// Functions that return... ////
// ...queries: //
row.join('government.dim_state', {state_code: row.field('loc_state')})
// ...selectors: //
row.field('loc_state')
row.join('government.dim_state', {state_code: row.field('loc_state')}).field('state_abbrev')
// ...filters: //
// ---------------------------------------------------------------------------------------------------------------------
// PromiseProxy - A proxy object that wraps a promise, and exposes `pending`, `result` and `error` properties. This is
// most useful when setting results of promises on the scope directly, so you can work with them in your templates.
//
// @module promise-proxy.js
// ---------------------------------------------------------------------------------------------------------------------
function PromiseProxyFactory(promise)
{
var proxy = {
@whitelynx
whitelynx / PKGBUILD
Created March 28, 2012 17:36
ArchLinux PKGBUILD for jimenezrick/vimerl
# Maintainer: Pawel 'kTT' Salata <rockplayer.pl@gmail.com>
# Contributor: David H. Bronke <whitelynx@gmail.com>
pkgname=vim-erlang-git
pkgver=20120328
pkgrel=1
pkgdesc="The Erlang plugin for Vim"
arch=(any)
url="https://github.com/jimenezrick/vimerl"
license=('GPL')
public class Deferred<T>
{
protected Logger logger = null;
protected EventWaitHandle waitForResult = null;
protected HashSet<Deferred<T>> dependentDeferreds = null;
public string name
{
@whitelynx
whitelynx / gist:5065654
Last active December 14, 2015 09:29
Updated PKGBUILD for twmn - changed 'qt' dependency to 'qt4', and changed 'qmake' command to 'qmake4'
# Maintainer: Bolivar Stephen <bolivar.stephen@gmail.com>
pkgname=twmn
pkgver=20130301
pkgrel=1
pkgdesc="A notification system for tiling window managers"
arch=(any)
url="https://github.com/sboli/twmn"
license=('LGPL3')
groups=
@whitelynx
whitelynx / gist:5065776
Created March 1, 2013 16:24
twmn: makepkg build errors when extra/qt3 3.3.8b-2 and extra/qt4 4.8.4-11 are installed
~/p/twmn > makepkg
==> Determining latest git revision...
-> Version found: 20130301
==> Making package: twmn 20130301-1 (Fri Mar 1 10:13:58 CST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Entering fakeroot environment...
==> Starting build()...
@whitelynx
whitelynx / gist:5065842
Last active December 14, 2015 09:38
Updated PKGBUILD for qgis - removed 'qt' dependency (would have been 'qt4', but is provided by 'qwt') and added -DQT_QMAKE_EXECUTABLE=qmake4 to fix builds on systems with more than one version of qt installed
# Maintainer: Lantald < lantald at gmx.com
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
# Contributor: Eric Forgeot < http://esclinux.tk >
pkgname=qgis
pkgver=1.8.0
pkgrel=4
pkgdesc='Quantum GIS is a Geographic Information System (GIS) that supports vector, raster & database formats'
@whitelynx
whitelynx / gist:5065907
Created March 1, 2013 16:39
vim-qt-git: error downloading qvim.svg
~/p/vim-qt-git > makepkg
==> Determining latest git revision...
-> Version found: 20130301
==> Making package: vim-qt-git 20130301-1 (Fri Mar 1 10:38:20 CST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found qvim.desktop
-> Downloading qvim.svg...
% Total % Received % Xferd Average Speed Time Time Time Current
@whitelynx
whitelynx / gist:5065997
Created March 1, 2013 16:50
vim-qt-git: python configure error and build error with 'rcc'
~/p/vim-qt-git > makepkg
==> Determining latest git revision...
-> Version found: 20130301
==> Making package: vim-qt-git 20130301-1 (Fri Mar 1 10:46:43 CST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found qvim.desktop
-> Found qvim.svg
==> Validating source files with md5sums...