Skip to content

Instantly share code, notes, and snippets.

View philippbosch's full-sized avatar

Philipp Bosch philippbosch

View GitHub Profile
@philippbosch
philippbosch / mauer.kml
Created May 23, 2011 11:43
Mauerverlauf (KML)
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
<Folder>
<Folder>
<Placemark>
<MultiGeometry>
<LineString>
<extrude>1</extrude>
<tessellate>1</tessellate>
@philippbosch
philippbosch / requirements.txt
Created May 30, 2011 18:19
Flask on dotcloud
Flask
require "chunky_png"
require "base64"
module Sass::Script::Functions
def background_noise(kwargs = {})
opts = {}
Sass::Util.map_hash({
"intensity" => [0..1, "", :Number, Sass::Script::Number.new(0.5) ],
"opacity" => [0..1, "", :Number, Sass::Script::Number.new(0.08)],
"size" => [1..512, "px", :Number, Sass::Script::Number.new(200) ],
@philippbosch
philippbosch / README.md
Created July 26, 2011 18:53
Small bash script to fetch the latest version of some JS libraries from the net and store it locally

latest

latest is a small bash script that fetches the latest version of a JavaScript library from the net and stores it in a local file.

Installation

Copy latest to a directory in your path, e.g. /usr/local/bin or ~/bin.

Usage

@philippbosch
philippbosch / redmine_heroku_deploy.sh
Created August 7, 2011 12:13 — forked from brototyp/redmine_heroku_deploy
Deploy Redmine to Heroku
#!/bin/bash
set -e
REDMINE_URL="http://rubyforge.org/frs/download.php/75097/redmine-1.2.1.tar.gz"
S3_ACCESS_KEY_ID=""
S3_SECRET_ACCESS_KEY=""
S3_BUCKET_NAME=""
HEROKU_APP_NAME=""
@philippbosch
philippbosch / workon.scpt
Created August 11, 2011 10:22
«Work On» Alfred extension
on alfred_script(q)
tell application "iTerm"
activate
try
set _term to last terminal
on error
set _term to (make new terminal)
end try

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@philippbosch
philippbosch / poly.kml
Created November 4, 2011 10:43
KML Polygon Test
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Folder>
<Placemark>
<name>politische Grenze</name>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
@philippbosch
philippbosch / mauerverlauf.kml
Created November 4, 2011 14:43
Mauerverlauf komplett
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Folder>
<Placemark>
<name>Grenzmauer 1c</name>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>
@philippbosch
philippbosch / innerstaedtischer-verlauf.kml
Created November 4, 2011 15:55
innerstädtischer Mauerverlauf
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Folder>
<Placemark>
<name>Westside</name>
<Polygon>
<extrude>1</extrude>
<altitudeMode>relativeToGround</altitudeMode>
<outerBoundaryIs>