Skip to content

Instantly share code, notes, and snippets.

View gka's full-sized avatar
🐢

Gregor Aisch gka

🐢
View GitHub Profile
@gka
gka / pbclient.py
Created July 29, 2012 19:43
Simple PyBossa client
#
# simple pybossa client
#
_opts = dict()
import requests
import json
@gka
gka / GitHub.css
Created August 8, 2012 08:23
Mou Github Style
* {
margin: 0;
padding: 0;
}
body {
font: 14px helvetica,arial,freesans,clean,sans-serif;
color: black;
line-height: 1.6;
background-color: #ffffff;
❯ brew tap homebrew/dupes
❯ brew tap josegonzalez/homebrew-php
❯ brew install php54
==> Installing php54 dependency: libxml2
==> Downloading ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz
######################################################################## 100,0%
######################################################################## 100,0%==> ./configure --prefix=/usr/local/Cellar/libxml2/2.8.0 --without-python
==> make
==> make install
❯ brew doctor ✹
Warning: Experimental support for using Xcode without the "Command Line Tools".
You have only installed Xcode. If stuff is not building, try installing the
"Command Line Tools for Xcode" package.
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
@gka
gka / partg-2003.txt
Created August 14, 2012 17:34
PartG/2003
---
id: partg
adopted_at: 2003-06-28
published_at: 2003-06-29
effective_since: 2003-01-01
bgbl_part: 1
bgbl_no: 42
bgbl_page: 2268
---
@gka
gka / map.yaml
Created August 23, 2012 07:53
United States, w/o Alaska and Hawaii
proj:
id: laea
lon0: -100
layers:
usa:
src: shp/ne/10m_admin_1_states_provinces_shp.shp
filter:
and:
- ISO: USA
- ['Postal', 'not in', ['AK', 'HI']] # without Alaska and Hawaii
@gka
gka / config.yaml
Created August 23, 2012 09:09
United States, w/o Great Lakes
proj:
id: laea
lon0: -100
layers:
usa:
src: shp/ne/10m_admin_1_states_provinces_shp.shp
filter:
and:
- ISO: USA
- ['Postal', 'not in', ['AK', 'HI']] # without Alaska and Hawaii
@gka
gka / gist:3666005
Created September 7, 2012 12:51 — forked from jarek-foksa/gist:2648095
SVGElement.prototype.innerSVG shim
Object.defineProperty(SVGElement.prototype, 'innerSVG', {
get: function() {
var $node, $temp;
$temp = document.createElement('div');
$node = this.cloneNode(true);
$temp.appendChild($node);
return $temp.innerHTML;
},
set: function(markup) {
var $element, $temp, _i, _len, _ref, _results;
@gka
gka / config.json
Created September 9, 2012 10:49
Map of France departements
{
"proj": { "id": "laea" },
"layers": {
"departments": {
"src": "shp/gadm/FRA_adm2.shp",
"simplify": 1,
"attributes": {
"name": "NAME_2",
"id": "ID_2"
},
@gka
gka / README.md
Created September 19, 2012 13:05
Comparing Map Projections